getWhere("settings", array("name", "=", "donate")); if($donate_enabled[0]->value === "false"){ Redirect::to("/"); die(); } $donate_enabled = null; /* * Log the user in */ if(!$user->isLoggedIn()){ if(Input::exists()) { if(Token::check(Input::get('token'))) { $validate = new Validate(); $validation = $validate->check($_POST, array( 'username' => array('required' => true, 'isbanned' => true, 'isactive' => true), 'password' => array('required' => true) )); if($validation->passed()) { $user = new User(); $remember = (Input::get('remember') === 'on') ? true : false; $login = $user->login(Input::get('username'), Input::get('password'), $remember); if($login) { Session::flash('donate', '
Sorry, there was an unknown error whilst logging you in. Homepage
'; die(); } } } } } // Get currency $currency = $queries->getWhere("settings", array("name", "=", "donation_currency")); $currency = $currency[0]->value; ?>' . htmlspecialchars($latest[$x-1]->ign) . ' - ' . $queries->convertCurrency($currency) . $latest[$x-1]->price . '
'; } ?>