remove deprecated method sys_see()

This commit is contained in:
Ivor Barhansky 2023-01-10 20:58:20 +02:00
parent 2947b59172
commit c071d2d293
6 changed files with 10 additions and 23 deletions

View File

@ -607,17 +607,13 @@ class User
if (!$type) {
if (($this->info['align'] > 0 || $this->info['clan'] > 0 || $this->info['level'] > 12) && $this->info['align'] != 2) {
$r = ($this->info['level'] - 6) * 0.04;
if (date('m') >= 6 || date('m') <= 8) {
$r = round($r * 2, 2);
} elseif (date('w') == 0 || date('w') == 6) {
if (date('m') >= 6 || date('m') <= 8 || date('w') == 0 || date('w') == 6) {
$r = round($r * 2, 2);
}
$r = $r . ' ЕКР.';
} else {
$r = $this->info['level'];
if (date('m') >= 6 || date('m') <= 8) {
$r = round($r * 2, 2);
} elseif (date('w') == 0 || date('w') == 6) {
if (date('m') >= 6 || date('m') <= 8 || date('w') == 0 || date('w') == 6) {
$r = round($r * 2, 2);
}
$r = $r . ' КР.';
@ -625,17 +621,13 @@ class User
} else {
if (($this->info['align'] > 0 || $this->info['clan'] > 0 || $this->info['level'] > 12) && $this->info['align'] != 2) {
$r = ($this->info['level'] - 6) * 0.04;
if (date('m') >= 6 || date('m') <= 8) {
$r = round($r * 2, 2);
} elseif (date('w') == 0 || date('w') == 6) {
if (date('m') >= 6 || date('m') <= 8 || date('w') == 0 || date('w') == 6) {
$r = round($r * 2, 2);
}
$r = [2, $r];
} else {
$r = $this->info['level'];
if (date('m') >= 6 || date('m') <= 8) {
$r = round($r * 2, 2);
} elseif (date('w') == 0 || date('w') == 6) {
if (date('m') >= 6 || date('m') <= 8 || date('w') == 0 || date('w') == 6) {
$r = round($r * 2, 2);
}
$r = [1, $r];
@ -903,12 +895,6 @@ class User
return $e;
}
/**@deprecated do nothing */
public function sys_see($type): string
{
return '';
}
public static function start(): User
{
if (!isset(self::$flag_one)) {
@ -10311,6 +10297,7 @@ LIMIT 1'
}
if ($u['admin'] > 0) {
mysql_query(
'UPDATE `stats` SET
`tactic1` = 25,

View File

@ -236,7 +236,7 @@ if (($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' || isset($CRON_CORE))
$i++;
}
$atk1 = 0;
$rsys = $u->sys_see(0);
$rsys = '';
if ($rsys != '') {
$js .= $rsys;
}

View File

@ -188,7 +188,7 @@
$i++;
}
$atk1 = 0;
if(!isset($CRON_CORE)) {$rsys = $u->sys_see(0);}
if(!isset($CRON_CORE)) {$rsys = '';}
if($rsys != '') {
$js .= $rsys;
}

View File

@ -183,7 +183,7 @@
$i++;
}
$atk1 = 0;
if(!isset($CRON_CORE)) {$rsys = $u->sys_see(0);}
if(!isset($CRON_CORE)) {$rsys = '';}
if($rsys != '') {
$js .= $rsys;
}

View File

@ -215,7 +215,7 @@ if (isset($CRON_CORE) && (isset($_POST['atack'], $_POST['block']) || (isset($_PO
$i++;
}
$atk1 = 0;
$rsys = $u->sys_see(0);
$rsys = '';
if ($rsys != '') {
$js .= $rsys;
}

View File

@ -220,7 +220,7 @@ if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' || isset($CRON_CORE))
}
$atk1 = 0;
if (!isset($CRON_CORE)) {
$rsys = $u->sys_see(0);
$rsys = '';
}
if ($rsys != '') {
$js .= $rsys;