[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / ecrire / req / sqlite3.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
16
17 include_spip('req/sqlite_generique');
18
19 $GLOBALS['spip_sqlite3_functions_1'] = _sqlite_ref_fonctions();
20
21
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);
25 }
26
27
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);
34 }
35 }
36
37 function spip_versions_sqlite3()
38 {
39 return _sqlite_charger_version(3) ? 3 : false;
40 }
41
42 ?>