release 1.3.12

This commit is contained in:
Newcomer1989
2020-09-22 18:56:47 +02:00
parent 3ab200784d
commit 3a333716a2
54 changed files with 845 additions and 1195 deletions

View File

@@ -1,26 +1,5 @@
<?PHP
ini_set('session.cookie_httponly', 1);
ini_set('session.use_strict_mode', 1);
if(in_array('sha512', hash_algos())) {
ini_set('session.hash_function', 'sha512');
}
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") {
ini_set('session.cookie_secure', 1);
if(!headers_sent()) {
header("Strict-Transport-Security: max-age=31536000; includeSubDomains; preload;");
}
}
session_start();
require_once('../other/config.php');
require_once('../other/session.php');
require_once('../other/load_addons_config.php');
$addons_config = load_addons_config($mysqlcon,$lang,$cfg,$dbname);
if(!isset($_SESSION[$rspathhex.'tsuid'])) {
set_session_ts3($mysqlcon,$cfg,$lang,$dbname);
}
require_once('_preload.php');
if(count($_SESSION[$rspathhex.'multiple']) > 1 && !isset($_SESSION[$rspathhex.'uuid_verified'])) {
$err_msg = sprintf($lang['stag0006'], '<a href="verify.php">', '</a>'); $err_lvl = 3;
@@ -43,12 +22,12 @@ if(count($_SESSION[$rspathhex.'multiple']) > 1 && !isset($_SESSION[$rspathhex.'u
krsort($cfg['rankup_definition']);
$nextgrp = '';
foreach ($cfg['rankup_definition'] as $time => $groupid) {
$actualgrp = $time;
if ($activetime > $time) {
foreach ($cfg['rankup_definition'] as $rank) {
$actualgrp = $rank['time'];
if ($activetime > $rank['time']) {
break;
} else {
$nextgrp = $time;
$nextgrp = $rank['time'];
}
}
if($actualgrp==$nextgrp) {
@@ -101,7 +80,6 @@ if(count($_SESSION[$rspathhex.'multiple']) > 1 && !isset($_SESSION[$rspathhex.'u
function get_percentage($max_value, $value) {
return (round(($value/$max_value)*100));
}
require_once('nav.php');
?>
<div id="page-wrapper">
<?PHP if(isset($err_msg)) error_handling($err_msg, $err_lvl);
@@ -154,8 +132,8 @@ require_once('nav.php');
<p class="text-right"><?PHP echo $dbdata_fetched['uuid']; ?></p>
<p class="text-right"><?PHP echo $_SESSION[$rspathhex.'tsconnections']; ?></p>
<p class="text-right"><?PHP echo $_SESSION[$rspathhex.'tscreated']; ?></p>
<p class="text-right"><?PHP echo $count_total; ?></p>
<p class="text-right"><?PHP echo $active_count; ?></p>
<p class="text-right" title=<?PHP echo '"',$dbdata_fetched['count'],' sec.">',$count_total; ?></p>
<p class="text-right" title=<?PHP echo '"',($dbdata_fetched['count'] - $dbdata_fetched['idle']),' sec.">',$active_count; ?></p>
<p class="text-right"><?PHP echo $achievements_done .' / 8'; ?></p>
</div>
<div class="clearfix"></div>
@@ -376,6 +354,6 @@ require_once('nav.php');
</div>
</div>
</div>
<?PHP require_once('footer.php'); ?>
<?PHP require_once('_footer.php'); ?>
</body>
</html>