3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2012 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined('_ECRIRE_INC_VERSION')) return;
15 include_spip('req/sqlite_generique');
17 $GLOBALS['spip_sqlite2_functions_1'] = _sqlite_ref_fonctions();
20 // http://doc.spip.org/@req_sqlite2_dist
21 function req_sqlite2_dist($addr, $port, $login, $pass, $db='', $prefixe='') {
22 return req_sqlite_dist($addr, $port, $login, $pass, $db, $prefixe, $sqlite_version=2);
25 // http://doc.spip.org/@spip_sqlite2_constantes
26 function spip_sqlite2_constantes(){
27 if (!defined('SPIP_SQLITE2_ASSOC')) {
28 define('SPIP_SQLITE2_ASSOC', SQLITE_ASSOC
);
29 define('SPIP_SQLITE2_NUM', SQLITE_NUM
);
30 define('SPIP_SQLITE2_BOTH', SQLITE_BOTH
);
34 function spip_versions_sqlite2()
36 return _sqlite_charger_version(2) ?
2 : false;