<page> <?php require 'header.php'; ?> <?php require_once dirname(__FILE__) . "/php/class.verification.php"; global $app; global $bdd; global $_TABLES; $content_html = "<content>\n <div class='verification'>\n <div class='message'>%%message%%</div>\n <div class='redirection'>Vous allez ĂȘtre redirigĂ© vers la page d'accueil dans <span class='redirection-time' time='5'></span></div>\n </div>\n </content>"; $key = $app->router()->getCurrentRoute()->getParams()['key']; if (!is_null($bdd) && !is_null($_TABLES)) { $objVerification = new Verification($bdd, $_TABLES); $message = $objVerification->getVerification($key); if (!empty($message)) { $content_html = str_replace('%%message%%', $message, $content_html); echo $content_html; } else { // 404 echo "404 Not Found"; } } else { error_log("BDD ERROR : " . $bdd); error_log("TABLES ERROR : " . $_TABLES); } ?> <?php require 'footer.php';