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;
17 include_spip('req/sqlite_generique');
19 $GLOBALS['spip_sqlite3_functions_1'] = _sqlite_ref_fonctions();
22 // http://doc.spip.org/@req_sqlite3_dist
23 function req_sqlite3_dist($addr, $port, $login, $pass, $db='', $prefixe='') {
24 return req_sqlite_dist($addr, $port, $login, $pass, $db, $prefixe, $sqlite_version=3);
28 // http://doc.spip.org/@spip_sqlite3_constantes
29 function spip_sqlite3_constantes(){
30 if (!defined('SPIP_SQLITE3_ASSOC')) {
31 define('SPIP_SQLITE3_ASSOC', PDO
::FETCH_ASSOC
);
32 define('SPIP_SQLITE3_NUM', PDO
::FETCH_NUM
);
33 define('SPIP_SQLITE3_BOTH', PDO
::FETCH_BOTH
);
37 function spip_versions_sqlite3()
39 return _sqlite_charger_version(3) ?
3 : false;