* @copyright 2013
* @license http://www.wtfpl.net/ see COPYING file
*/
+
+if (!is_dir('db/')) {
+ @mkdir('db/',0705);
+}
+
define ('DB_PATH', 'sqlite:./db/poche.sqlite');
+define ('ABS_PATH', 'assets/');
include 'db.php';
include 'functions.php';
}
# Traitement des paramètres et déclenchement des actions
+$view = (isset ($_REQUEST['view'])) ? htmlentities($_REQUEST['view']) : 'index';
$action = (isset ($_REQUEST['action'])) ? htmlentities($_REQUEST['action']) : '';
-$_SESSION['view'] = (isset ($_GET['view'])) ? htmlentities($_GET['view']) : 'index';
$_SESSION['sort'] = (isset ($_REQUEST['sort'])) ? htmlentities($_REQUEST['sort']) : 'id';
$id = (isset ($_REQUEST['id'])) ? htmlspecialchars($_REQUEST['id']) : '';
$url = (isset ($_GET['url'])) ? $_GET['url'] : '';
if ($action != '') {
action_to_do($action, $id, $url, $token);
-}
\ No newline at end of file
+}