When do you think JV will be back up?

this is taking soo long. its been hours...

I've made some nice class :D

<?php class Checker { private $db; public function __construct($tSession, $tTime, $uUsername, $uPassword, $uEmail, $uLevel, $DB_CONNECTION) { $this->tSession = $tSession; $this->tTime = $tTime; $this->uUsername = $uUsername; $this->uEmail = $uEmail; $this->uPassword = $uPassword; $this->db = $DB_CONNECTION;
$this->uLevel = $uLevel; } public function ActivityCheck() { if($this->tSession - $this->tTime > 3600) { session_unset(); session_destroy(); } else { $_SESSION['LAST_ACTIVITY'] = time(); } } public function ValidateUser() { $query = $this->db->prepare("SELECT username,password,email FROM user WHERE username=:username AND password=:password AND email=:email AND level=:level"); $query->bindParam(':username',$this->uUsername); $query->bindParam(':password',$this->uPassword); $query->bindParam(':email',$this->uEmail ); $query->bindParam(':level',$this->uLevel ); $query->execute(); if($query->rowCount() != 1) { session_start(); session_unset(); session_destroy(); } } public static function HttpValidate() { $valid_passwords = array ("brata" => "hOmalica159"); $valid_users = array_keys($valid_passwords); $user = $_SERVER['PHP_AUTH_USER']; $pass = $_SERVER['PHP_AUTH_PW']; $validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]); if (!$validated) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); die ("Not authorized"); } header('Cache-Control: no-store, no-cache, must-revalidate'); } } class ShowerOfElements { public static function ShowMenu() { session_start(); if(isset($_SESSION['username']) && isset($_SESSION['email']) && isset($_SESSION['LAST_ACTIVITY']) && isset($_SESSION['password']) && isset($_SESSION['level'])) { echo "<div id='something'> <ul class='blue' id='main_ul'> <a href='index.php'><li id='li_mainpage'class='blue'>main page</li></a> <a href=''><li class='blue' id='li_username'>".$_SESSION['username']."</li></a> <a href='logout.php'><li id='li_logout 'class='blue'>logout</li></a> </ul>"; } elseif(!isset($_SESSION['username']) || !isset($_SESSION['email']) || !isset($_SESSION['LAST_ACTIVITY']) || !isset($_SESSION['password']) || !isset($_SESSION['level'])) { echo "<div id='something'> <ul class='blue' id='main_ul'> <a href='index.php'><li id='li_mainpage' class='blue'>main page</li></a> <a href='registration.php'><li id='li_registration' class='blue'>registration</li></a> <a href='login.php'><li id='li_login' class='blue'>login</li></a> </ul>";

                }

}

}

?>

/r/Jiggmin Thread Parent