<?php

if(!empty($_GET["set"]) && file_exists("include/themes/" . $_GET["set"])) {
	setcookie("advancedban-panel_theme", $_GET["set"], time( ) + (30 * 60 * 60 * 24), "/");
} elseif(isset($_GET["default"])) {
	setcookie("advancedban-panel_theme", "", time( ) - (30 * 60 * 60 * 24), "/");
}

header("Location: ../../" . (isset($_GET["redirect"]) ? $_GET["redirect"] : "")); die("Redirecting...");
<?php

if(!empty($_GET["set"]) && file_exists("include/themes/" . $_GET["set"])) {
	setcookie("advancedban-panel_theme", $_GET["set"], time( ) + (30 * 60 * 60 * 24), "/");
} elseif(isset($_GET["default"])) {
	setcookie("advancedban-panel_theme", "", time( ) - (30 * 60 * 60 * 24), "/");
}

header("Location: " . ($__public["mod_rewrite"] === true ? "../../" : "./")); die("Redirecting...");

Fix redirecting with mod_rewrite disabled
Fix redirecting with mod_rewrite disabled