Hallo,
Ich komme nicht mehr weiter mit dem HoloCMS.
das Adminpanel geht nicht
blabla.de hat Sie zu oft weitergeleitet.
ERR_TOO_MANY_REDIRECTS
Code
<?php
/*
* ___ _ ___ __ __ ___
* / __|___ _ _| |_ ___ _ _ __ _ _ _ _ _ / __| \/ / __|
* | (__/ -_) ' \ _/ -_) ' \/ _` | '_| || | (__| |\/| \__ \
* \___\___|_||_\__\___|_||_\__,_|_| \_, |\___|_| |_|___/
* |__/
* *************************
* Content: CentenaryCMS
* Autor : Revue
* Contact: me@revue-projects.at
*/
$page = protect($_GET['page']);
$GET = explode("/", $page);
$page = $GET[0];
$_GET['page'] = $page;
switch ($page) {
case 'admin':
$page = $GET[1];
$content = 'housekeeping';
break;
default:
if ($page == '') {
$page = 'index';
}
$content = 'homepage';
break;
}
$_SESSION['Habbo_Auth'] = time();
if (getSettings('wartungsarbeiten') == '1' && $user->rank < 3 && $user->username !== 'HelpTool' && $user->username !== 'Lenny' && $GET1 !== 'b256457fx') {
$page = 'offline';
}
if ($page == 'premium/buy/Paypal') {
include('./classes/buy/paypal/paypal.php');
exit;
}
$get_page = $mysqli->query("SELECT * FROM hp_pages WHERE link = '" . $page . "' AND content = '" . $content . "' LIMIT 1 ");
if ($get_page->num_rows > 0) {
$page = $get_page->fetch_object();
switch ($page->content) {
case 'housekeeping':
if ($user->rank > 3) {
include('./classes/HKManager.php');
if (file_exists('./_files/' . $page->content . '/_' . $page->dateiname . '.php')) {
if (Accessfunction('access')) {
$dateiopen = $page->dateiname;
$content = $page->content;
$header = $page->header;
$footer = $page->footer;
} else {
header("location: $path/admin/home");
exit;
}
} else {
header("location: $path/admin/home");
exit;
}
} else {
header("location: $path/me");
exit;
}
break;
case 'homepage':
if ($page->rank <= $user->rank) {
if ($user->rank > 0 && $page->rank == '-1') {
header("location: $path/me");
exit;
} else {
if (file_exists('./_files/' . $page->content . '/_' . $page->dateiname . '.php')) {
$dateiopen = $page->dateiname;
$content = $page->content;
$header = $page->header;
$footer = $page->footer;
} else {
header("location: $path/");
exit;
}
}
} else {
header("location: $path/");
exit;
}
break;
default:
header("location: $path/me");
exit;
break;
}
} else {
header("location: $path/me");
exit;
}
if ($user->username == $_SESSION['HP_username']) {
if ($_SESSION['Habbo_Auth'] > time() && $user->rank > 3 || $user->rank < 3) {
$sec_sql = $mysqli->query("SELECT user_id FROM user_securityquestions WHERE user_id = '" . $user->id . "' ");
if ($sec_sql->num_rows < 1) {
if ($page->dateiname !== 'settings' && $page->dateiname !== 'welcome') {
header("location: $path/settings/sicherheitsfragen");
exit;
}
}
}
}
if ($header == '1') {
include('./classes/homepage/header.php');
}
if ($content == 'housekeeping') {
include('./classes/housekeeping/navi.php');
}
include('./_files/' . $content . '/_' . $dateiopen . '.php');
if ($footer == '1') {
include('./classes/homepage/footer.php');
}
?>
Alles anzeigen