[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / ecrire / req / sqlite2.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2016 *
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 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);
31 }
32 }
33
34 function spip_versions_sqlite2()
35 {
36 return _sqlite_charger_version(2) ? 2 : false;
37 }
38 ?>