mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-22 20:46:10 +00:00
fix ban system 100% + replace the previous fix with better one + new admin panel by ZravianX version
This commit is contained in:
-16
@@ -127,32 +127,16 @@ if(isset($_GET['uid'])) {
|
||||
}
|
||||
else if (isset($_GET['s'])) {
|
||||
if($_GET['s'] == 1) {
|
||||
if($session->access!=BANNED){
|
||||
include("Templates/Profile/profile.tpl");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
if($_GET['s'] == 2) {
|
||||
if($session->access!=BANNED){
|
||||
include("Templates/Profile/preference.tpl");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
if($_GET['s'] == 3) {
|
||||
if($session->access!=BANNED){
|
||||
include("Templates/Profile/account.tpl");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
if($_GET['s'] == 4) {
|
||||
if($session->access!=BANNED){
|
||||
include("Templates/Profile/graphic.tpl");
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user