die; } else { # Twig is installed, put the error message in the template $tpl_file = Tools::getTplFile('error'); $tpl_vars = array_merge($tpl_vars, array('msg' => $poche->getNotInstalledMessage())); echo $poche->tpl->render($tpl_file, $tpl_vars); exit; } } # poche actions if (isset($_GET['login'])) { # hello to you $poche->login($referer); } elseif (isset($_GET['feed']) && isset($_GET['user_id'])) { $tag_id = isset($_GET['tag_id']) ? intval($_GET['tag_id']) : 0; $poche->generateFeeds($_GET['token'], filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT), $tag_id, $_GET['type']); } if (Session::isLogged()) { if (isset($_GET['logout'])) { # see you soon ! $poche->logout(); } elseif (isset($_GET['config'])) { # Update password $poche->updatePassword(); } elseif (isset($_GET['newuser'])) { $poche->createNewUser(); } elseif (isset($_GET['deluser'])) { $poche->deleteUser(); } elseif (isset($_GET['epub'])) { $poche->createEpub(); } elseif (isset($_GET['import'])) {