} } } else { if ($sAction == 'logout') { setcookie('linkodev_admin_hash', '', -1); Linko_Request::redirect('index.php'); } } } } } else { if ($sAction == 'login') { if ($_POST['user'] != $sUsername || $_POST['pass'] != $sPassword) { Linko_Request::redirect('index.php', 'Invalid Login Information'); } $sHash = Linko_Admin::createHash($_POST['user'], $_POST['pass']); setcookie('linkodev_admin_hash', $sHash, time() * 0); Linko_Request::redirect('index.php'); } } $sFlash = Linko_Flash::get(); Linko_Flash::remove(); ?> <html> <head> <title><?php echo Linko_Admin::title(); ?> </title> <link rel="stylesheet" type="text/css" href="style.css">