39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
|
<?php
|
||
|
|
||
|
/***************************************************************************\
|
||
|
* SPIP, Systeme de publication pour l'internet *
|
||
|
* *
|
||
|
* Copyright (c) 2001-2019 *
|
||
|
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
|
||
|
* *
|
||
|
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
|
||
|
* Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
|
||
|
\***************************************************************************/
|
||
|
|
||
|
if (!defined('_ECRIRE_INC_VERSION')) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
include_spip('req/sqlite_generique');
|
||
|
|
||
|
$GLOBALS['spip_sqlite2_functions_1'] = _sqlite_ref_fonctions();
|
||
|
|
||
|
|
||
|
// http://code.spip.net/@req_sqlite2_dist
|
||
|
function req_sqlite2_dist($addr, $port, $login, $pass, $db = '', $prefixe = '') {
|
||
|
return req_sqlite_dist($addr, $port, $login, $pass, $db, $prefixe, $sqlite_version = 2);
|
||
|
}
|
||
|
|
||
|
// http://code.spip.net/@spip_sqlite2_constantes
|
||
|
function spip_sqlite2_constantes() {
|
||
|
if (!defined('SPIP_SQLITE2_ASSOC')) {
|
||
|
define('SPIP_SQLITE2_ASSOC', SQLITE_ASSOC);
|
||
|
define('SPIP_SQLITE2_NUM', SQLITE_NUM);
|
||
|
define('SPIP_SQLITE2_BOTH', SQLITE_BOTH);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
function spip_versions_sqlite2() {
|
||
|
return _sqlite_charger_version(2) ? 2 : false;
|
||
|
}
|