<?php require 'config/consts.php'; $page = NON_NAV; session_start(); require_once DOCUMENT_ROOT . 'classes/LoginHelper.php'; require_once DOCUMENT_ROOT . 'config/db.php'; $loginHelper = new LoginHelper($db); if ($loginHelper->IsLoggedIn()) { header('Location: ' . SITE_URL); exit; } /* Prevent form spoofing */ $spoof_proof = sha1(time() . chr(mt_rand(97, 122))); $_SESSION['spoof_proof'] = $spoof_proof; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <link rel="shortcut icon" href="<?php echo SSTATIC; ?> favicon.png" type="image/png"> <link rel="icon" href="<?php echo SSTATIC; ?> favicon.png" type="image/png">
<?php require 'config/consts.php'; $page = HOW_TO_PLAY; session_start(); require_once DOCUMENT_ROOT . 'classes/LoginHelper.php'; require_once DOCUMENT_ROOT . 'config/db.php'; /* Check if the user is logged in/Login the user if presence cookie is present */ $loginHelper = new LoginHelper($db); $loggedIn = $loginHelper->IsLoggedIn(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <link rel="shortcut icon" href="favicon.png" type="image/png"> <link rel="icon" href="<?php echo SSTATIC; ?> favicon.png" type="image/png"> <title>How to play Treasherlocked? - Treasherlocked 2.0</title> <meta name="description" content="Tutorial on how to play Treasherlocked." /> <meta name="keywords" content="how to play treasherlocked, how to play treasure hunt, treasherlocked tutorial" /> <link href="<?php echo SSTATIC; ?>