hasExpired()) {
if ($config['TFSVersion'] != 'TFS_10') $tmp = highscore_getAll();
else $tmp = highscore_getAll_10(0, 30);
$cache->setContent($tmp);
$cache->save();
$array = isset($tmp[$skillid]) ? $tmp[$skillid] : $tmp[7];
} else {
$tmp = $cache->load();
$array = $tmp[$skillid];
}
if ($skillid < 9) {
// Design and present the list
if ($array) {
?>
scoreboard. Next update:
remainingTime() > 0) {
$hours = seconds_to_hours($cache->remainingTime());
$minutes = ($hours - (int)$hours) * 60;
$seconds = ($minutes - (int)$minutes) * 60;
if ($hours >= 1) {
echo (int)$hours .'h';
}
if ($minutes >= 1) {
echo ' '. (int)$minutes .'m';
}
if ($seconds >= 1) {
echo ' '. (int)$seconds .'s';
}
} else {
echo '0s';
}
?>. remainingTime());?>
Name: |
Level:Experience: | ';
else {
?>
Value: |
Vocation:';
}
?>
';
echo ''. $value['name'] .' | ';
if ($skillid == 7) echo ''. $value['level'] .' | ';
echo ''. $value['value'] .' | ';
if ($skillid == 7 || $skillid == 6 || $skillid == 5) {
echo ''. $value['vocation'] .' | ';
}
echo '';
}
// end foreach
}
?>
';
//Token::debug($_POST['token']);
echo 'Please clear your web cache/cookies OR use another web browser
';
}
}
/*
0 fist: SELECT (SELECT `name` from `players` WHERE `player_id`=`id`) AS `name`, `value` FROM `player_skills` WHERE `skillid`=0
1 club:
2 sword:
3 axe:
4 dist:
5 Shield:
6 Fish
7 Hardcoded experience
8 Hardcoded maglevel
*/
include 'layout/overall/footer.php'; ?>