mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-04 17:37:21 +00:00
fix: in-game Support login fails
This commit is contained in:
@@ -180,7 +180,7 @@ class Session {
|
|||||||
|
|
||||||
if($user && ($admin || isset($_SESSION['sessid']))) {
|
if($user && ($admin || isset($_SESSION['sessid']))) {
|
||||||
// check if this is not a support user, for who only messages and statistics are available
|
// check if this is not a support user, for who only messages and statistics are available
|
||||||
if ($user == 1) {
|
if ($user == 'Support') {
|
||||||
$req_file = basename($_SERVER['PHP_SELF']);
|
$req_file = basename($_SERVER['PHP_SELF']);
|
||||||
if (!in_array($req_file, ['nachrichten.php', 'logout.php', 'statistiken.php', 'rules.php', 'karte.php', 'karte2.php', 'spieler.php'])) {
|
if (!in_array($req_file, ['nachrichten.php', 'logout.php', 'statistiken.php', 'rules.php', 'karte.php', 'karte2.php', 'spieler.php'])) {
|
||||||
header('Location:nachrichten.php');
|
header('Location:nachrichten.php');
|
||||||
@@ -269,7 +269,9 @@ class Session {
|
|||||||
if($this->userarray['b4'] > $this->time) {
|
if($this->userarray['b4'] > $this->time) {
|
||||||
$this->bonus4 = 1;
|
$this->bonus4 = 1;
|
||||||
}
|
}
|
||||||
$this->CheckHeroReal();
|
if (!in_array($this->username, ['Support', 'Multihunter'])) {
|
||||||
|
$this->CheckHeroReal();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function SurfControl(){
|
private function SurfControl(){
|
||||||
|
|||||||
Reference in New Issue
Block a user