diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-15 14:09:58 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-15 14:09:58 +0200 |
commit | cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861 (patch) | |
tree | 86d0cad24ed4891165d720a3bb19fffe6f55c73b /inc/config.php | |
parent | 358ab47957de18183aa3d3f7a62b631cd131f41f (diff) | |
download | wallabag-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.php | 10 |
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/'; | |||
22 | raintpl::$base_url = get_poche_url(); | 22 | raintpl::$base_url = get_poche_url(); |
23 | raintpl::configure('path_replace', false); | 23 | raintpl::configure('path_replace', false); |
24 | raintpl::configure('debug', false); | 24 | raintpl::configure('debug', false); |
25 | $tpl = new raintpl(); \ No newline at end of file | 25 | $tpl = new raintpl(); |
26 | |||
27 | session_start(); | ||
28 | |||
29 | if (!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 | ||