Пример #1
0
 public static function redirect($sLoc, $sMsg = null)
 {
     if ($sMsg) {
         Linko_Flash::add($sMsg);
     }
     header("Location: " . $sLoc);
     exit;
 }
Пример #2
0
                }
            }
        }
    }
} 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">
</head>
<body>
<div id="header-wrapper">
	<div id="header">
    	<h1><?php 
echo Linko_Admin::title();