mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-13 20:39:46 +01:00
shorten some code + const convert
This commit is contained in:
@@ -15,9 +15,9 @@ $configHighscoresCountryBox = config('highscores_country_box');
|
|||||||
if(config('account_country') && $configHighscoresCountryBox)
|
if(config('account_country') && $configHighscoresCountryBox)
|
||||||
require SYSTEM . 'countries.conf.php';
|
require SYSTEM . 'countries.conf.php';
|
||||||
|
|
||||||
$list = isset($_GET['list']) ? $_GET['list'] : 'experience';
|
$list = $_GET['list'] ?? 'experience';
|
||||||
$page = isset($_GET['page']) ? $_GET['page'] : 1;
|
$page = $_GET['page'] ?? 1;
|
||||||
$vocation = isset($_GET['vocation']) ? $_GET['vocation'] : 'all';
|
$vocation = $_GET['vocation'] ?? 'all';
|
||||||
|
|
||||||
if(!is_numeric($page) || $page < 1 || $page > PHP_INT_MAX) {
|
if(!is_numeric($page) || $page < 1 || $page > PHP_INT_MAX) {
|
||||||
$page = 1;
|
$page = 1;
|
||||||
@@ -47,8 +47,8 @@ if($configHighscoresVocationBox && $vocation !== 'all')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
define('SKILL_FRAGS', -1);
|
const SKILL_FRAGS = -1;
|
||||||
define('SKILL_BALANCE', -2);
|
const SKILL_BALANCE = -2;
|
||||||
|
|
||||||
$skill = POT::SKILL__LEVEL;
|
$skill = POT::SKILL__LEVEL;
|
||||||
if(is_numeric($list))
|
if(is_numeric($list))
|
||||||
|
|||||||
Reference in New Issue
Block a user