aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/config.php
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-15 14:09:58 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-15 14:09:58 +0200
commitcf3180f6b8c552bbf7214d1ba72fbf1fc90ef861 (patch)
tree86d0cad24ed4891165d720a3bb19fffe6f55c73b /inc/config.php
parent358ab47957de18183aa3d3f7a62b631cd131f41f (diff)
downloadwallabag-cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861.tar.gz
wallabag-cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861.tar.zst
wallabag-cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861.zip
vérificatio CSRF et mise en page
Diffstat (limited to 'inc/config.php')
-rw-r--r--inc/config.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php
index 29a22507..84b86998 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -22,4 +22,12 @@ raintpl::$cache_dir = './cache/';
22raintpl::$base_url = get_poche_url(); 22raintpl::$base_url = get_poche_url();
23raintpl::configure('path_replace', false); 23raintpl::configure('path_replace', false);
24raintpl::configure('debug', false); 24raintpl::configure('debug', false);
25$tpl = new raintpl(); \ No newline at end of file 25$tpl = new raintpl();
26
27session_start();
28
29if (!isset($_SESSION['token_poche'])) {
30 $token = md5(uniqid(rand(), TRUE));
31 $_SESSION['token_poche'] = $token;
32 $_SESSION['token_time_poche'] = time();
33} \ No newline at end of file