示例#1
0
				}
			);
		<?php 
}
?>
	}
</script>
<div class="body <?php 
echo $EVENT_MODE == 5 ? 'dark-body' : '';
?>
">
	<div class="main">
		<?php 
if ($CONFIG['active']) {
    if ($admin && $cookie_id) {
        ShowAdmin();
    } else {
        ShowHeadline();
        // Not logged in and not an announcement //
        if ($cookie_id == 0 && $EVENT_MODE !== 5) {
            ShowLogin();
        }
        switch ($EVENT_MODE) {
            case 0:
                // Inactive //
                ShowInactive();
                break;
            case 1:
                // Theme Suggestions //
                ShowSubmitIdea($cookie_id > 0);
                break;
示例#2
0
function PHPruAuth($login,$pass)
{
	$_SESSION["sess_login"] = md5(trim($_POST["login"])); 
	$_SESSION["sess_pass"] = md5(trim($_POST["password"]));
	$LOGIN = file ('admin.php');
	$zero = PhpruSearch('../..','rus');
	if ($_SESSION["sess_login"] === trim($LOGIN[0]) && $_SESSION["sess_pass"] === trim($LOGIN[1]))
	{
		$_SESSION["inside"] = 'true';
		ShowArea();
	}
	else
	{ 
		echo '<BR><P>Доступ закрыт!<BR><BR>Неверный логин или пароль.';
		ShowAdmin();
		exit;
	}
}