-include dirname(__FILE__).'/inc/poche/config.inc.php';
-
-#XSRF protection with token
-if (!empty($_POST)) {
- if (!Session::isToken($_POST['token'])) {
- die(_('Wrong token'));
- // TODO remettre le test
- }
- unset($_SESSION['tokens']);
+if (file_exists(__DIR__ . '/inc/poche/myconfig.inc.php')) {
+ require_once __DIR__ . '/inc/poche/myconfig.inc.php';