1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

création d'une classe store() pour gérer tout type de stockage : sqlite, file, mysql, etc.

This commit is contained in:
nicosomb 2013-04-19 15:46:04 +02:00
parent ff4d8c8c1e
commit 14890de35a
5 changed files with 262 additions and 130 deletions

View file

@ -8,26 +8,28 @@
* @license http://www.wtfpl.net/ see COPYING file
*/
define ('POCHE_VERSION', '0.11');
define ('POCHE_VERSION', '0.2');
if (!is_dir('db/')) {
@mkdir('db/',0705);
}
define ('DB_PATH', 'sqlite:./db/poche.sqlite');
define ('ABS_PATH', 'assets/');
define ('CONVERT_LINKS_FOOTNOTES', TRUE);
define ('DOWNLOAD_PICTURES', TRUE);
$storage_type = 'sqlite'; # sqlite or file
include 'db.php';
include 'functions.php';
require_once 'Readability.php';
require_once 'Encoding.php';
require_once 'rain.tpl.class.php';
require_once 'MyTool.class.php';
require_once 'Session.class.php';
require_once 'store/store.class.php';
require_once 'store/sqlite.class.php';
require_once 'store/file.class.php';
$db = new db(DB_PATH);
$store = new $storage_type();
# initialisation de RainTPL
raintpl::$tpl_dir = './tpl/';