[SPIP] +2.1.12
[velocampus/web/www.git] / www / ecrire / req / sqlite2.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2011 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
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 \***************************************************************************/
12
13 if (!defined('_ECRIRE_INC_VERSION')) return;
14
15 include_spip('req/sqlite_generique');
16
17 $GLOBALS['spip_sqlite2_functions_1'] = _sqlite_ref_fonctions();
18
19
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);
23 }
24
25 // http://doc.spip.org/@spip_sqlite2_constantes
26 function spip_sqlite2_constantes(){
27 define('SPIP_SQLITE2_ASSOC', SQLITE_ASSOC);
28 define('SPIP_SQLITE2_NUM', SQLITE_NUM);
29 define('SPIP_SQLITE2_BOTH', SQLITE_BOTH);
30 }
31
32 function spip_versions_sqlite2()
33 {
34 return _sqlite_charger_version(2) ? 2 : false;
35 }
36 ?>