forked from wallabag/wallabag
vérificatio CSRF et mise en page
This commit is contained in:
@ -22,4 +22,12 @@ raintpl::$cache_dir = './cache/';
|
||||
raintpl::$base_url = get_poche_url();
|
||||
raintpl::configure('path_replace', false);
|
||||
raintpl::configure('debug', false);
|
||||
$tpl = new raintpl();
|
||||
$tpl = new raintpl();
|
||||
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['token_poche'])) {
|
||||
$token = md5(uniqid(rand(), TRUE));
|
||||
$_SESSION['token_poche'] = $token;
|
||||
$_SESSION['token_time_poche'] = time();
|
||||
}
|
||||
Reference in New Issue
Block a user