.login-extra { font-weight: bold; font-family: Helvetica, sans-serif; font-size:16px; color: #FFF; text-shadow: 1px 1px 5px rgba(0,0,0,0.6); } .login-extra a { color: #CCC; } </style> </head> <body> <?php if (IsLoggedin()) { ?> <meta http-equiv="refresh" content="3;URL='/stream/'" /> <?php DisplayError(3); require_once __DIR__ . '/inc/footer.php'; die; // Prevent error after login } if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (!isset($_POST['username'], $_POST['password'])) { // $error = "Opps! Your username or password was not included."; $error = "Opps! Your e-mail or password was not included."; } else { $username = $__database->real_escape_string($_POST['username']); $password = $_POST['password'];
function IsOwnAccount() { global $subdomain, $_loginaccount; return IsLoggedin() && (strtolower($subdomain) == strtolower($_loginaccount->GetUsername()) || $_loginaccount->GetAccountRank() >= RANK_MODERATOR); }
<?php require_once __DIR__ . '/functions.php'; if (!IsLoggedin() || $_loginaccount->GetAccountRank() < RANK_ADMIN || !isset($_GET['page'])) { header('Location: http://' . $domain . '/'); die; } $page = stripslashes($_GET['page']); $page = str_replace('/', '', $page); $page = '../manage/' . $page . '.php'; if (!file_exists($page)) { header('Location: http://' . $domain . '/'); die; } //gosh dang it if (isset($_GET['ajax'])) { require_once $page; } if (isset($_GET['strings'])) { require_once $page; } if (isset($_GET['accounts'])) { require_once $page; } if (isset($_GET['characters'])) { require_once $page; } else { require_once __DIR__ . '/templates/header.template.php'; ?> <div class="row"> <div class="span3">
<?php require_once __DIR__ . '/functions.php'; if (!IsLoggedin() || !isset($_GET['page'])) { header('Location: http://' . $domain . '/'); die; } $page = stripslashes($_GET['page']); $page = str_replace('/', '', $page); $page = '../settings/' . $page . '.php'; if (!file_exists($page)) { header('Location: http://' . $domain . '/'); die; } require_once __DIR__ . '/templates/header.template.php'; ?> <div class="row"> <div class="span3"> <ul class="nav nav-list sidebar"> <?php require_once __DIR__ . '/templates/additional.menu.php'; ?> </ul> <br /> </div> <div class="span9"> <?php require_once $page; ?> </div>