release 1.3.23
This commit is contained in:
@@ -45,12 +45,12 @@ if(isset($getstring) && strstr($getstring, 'filter:online:')) {
|
||||
if(isset($getstring) && strstr($getstring, 'filter:actualgroup:')) {
|
||||
preg_match('/filter\:actualgroup\:(.*)\:/',$searchstring,$grpvalue);
|
||||
$searchstring = preg_replace('/filter\:actualgroup\:(.*)\:/','',$searchstring);
|
||||
$filter .= " AND `grpid`='".$grpvalue[1]."'";
|
||||
if(isset($grpvalue[1])) $filter .= " AND `grpid`='".$grpvalue[1]."'";
|
||||
}
|
||||
if(isset($getstring) && strstr($getstring, 'filter:country:')) {
|
||||
preg_match('/filter\:country\:(.*)\:/',$searchstring,$grpvalue);
|
||||
preg_match('/filter\:country\:(.*)\:/',$searchstring,$country);
|
||||
$searchstring = preg_replace('/filter\:country\:(.*)\:/','',$searchstring);
|
||||
$filter .= " AND `nation`='".$grpvalue[1]."'";
|
||||
if(isset($country[1])) $filter .= " AND `nation`='".$country[1]."'";
|
||||
}
|
||||
if(isset($getstring) && strstr($getstring, 'filter:lastseen:')) {
|
||||
preg_match('/filter\:lastseen\:(.*)\:(.*)\:/',$searchstring,$seenvalue);
|
||||
|
||||
@@ -57,6 +57,7 @@ require_once('_preload.php');
|
||||
<p><a href="//wenzhixin.net.cn" target="_blank" rel="noopener noreferrer">Bootstrap Show Password 1.0.3</a> - Copyright © 2014 zhixin wen</p>
|
||||
<p><a href="//github.com/1000hz/bootstrap-validator" target="_blank" rel="noopener noreferrer">Bootstrap Validator</a> - Copyright © 2016 Cina Saffary</p>
|
||||
<p><a href="//www.smarty.net/" target="_blank" rel="noopener noreferrer">Smarty PHP Template Engine 4.1.0</a> - Copyright © 2002-2022 New Digital Group, Inc.</p>
|
||||
<p><a href="//github.com/eternicode/bootstrap-datepicker" target="_blank" rel="noopener noreferrer">Datepicker for Bootstrap v1.9.0</a> - Copyright © 2019 UX Solutions</p>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
@@ -79,7 +80,6 @@ require_once('_preload.php');
|
||||
<p><?PHP echo sprintf($lang['stri0027'], '<a href="//warriortigers.hu" target="_blank">ExXeL</a> -'); ?></p>
|
||||
<p><?PHP echo sprintf($lang['stri0028'], '<a href="//grezhost.com" target="_blank">G. FARZALIYEV</a> -'); ?></p>
|
||||
<p><?PHP echo sprintf($lang['stri0029'], '<a href="//nick-slowinski.de" target="_blank">Nick Slowinski</a> -'); ?></p>
|
||||
<p><?PHP echo sprintf($lang['stri0030'], '<a href="//terrabot.de" target="_blank">JimmyNail</a> -'); ?></p>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -37,17 +37,19 @@ try {
|
||||
$order .= ", `{$cfg['stats_column_default_sort_2']}` ".$cfg['stats_column_default_order_2'];
|
||||
}
|
||||
|
||||
if($cfg['stats_column_online_day_switch'] == 1 || $cfg['stats_column_idle_day_switch'] == 1 || $cfg['stats_column_active_day_switch'] == 1 || $cfg['stats_column_online_week_switch'] == 1 || $cfg['stats_column_idle_week_switch'] == 1 || $cfg['stats_column_active_week_switch'] == 1 || $cfg['stats_column_online_month_switch'] == 1 || $cfg['stats_column_idle_month_switch'] == 1 || $cfg['stats_column_active_month_switch'] == 1) {
|
||||
$stats_user_tbl = ", `$dbname`.`stats_user`";
|
||||
$stats_user_where = " AND `stats_user`.`uuid`=`user`.`uuid`";
|
||||
} else {
|
||||
$stats_user_tbl = $stats_user_where = '';
|
||||
$arr_sort_options = sort_options($lang);
|
||||
$columns = '`user`.`uuid` `uuid`, `except`, `count`, `idle`, `online`, ';
|
||||
foreach ($arr_sort_options as $opt => $val) {
|
||||
if (($cfg[$val['config']] == 1 || $adminlogin == 1) && $val['option'] != 'uuid' && $val['option'] != 'active' && $val['option'] != 'count' && $val['option'] != 'idle') {
|
||||
$columns .= "`".$val['option']."`, ";
|
||||
}
|
||||
}
|
||||
$columns = substr($columns,0,-2);
|
||||
|
||||
if ($searchstring == '') {
|
||||
$dbdata = $mysqlcon->prepare("SELECT * FROM `$dbname`.`user`$stats_user_tbl WHERE 1=1$filter$stats_user_where ORDER BY $order LIMIT :start, :userproseite");
|
||||
$dbdata = $mysqlcon->prepare("SELECT {$columns} FROM `$dbname`.`user`, `$dbname`.`stats_user` WHERE `stats_user`.`uuid`=`user`.`uuid` {$filter} ORDER BY {$order} LIMIT :start, :userproseite");
|
||||
} else {
|
||||
$dbdata = $mysqlcon->prepare("SELECT * FROM `$dbname`.`user`$stats_user_tbl WHERE (`user`.`uuid` LIKE :searchvalue OR `user`.`cldbid` LIKE :searchvalue OR `user`.`name` LIKE :searchvalue) $filter$stats_user_where ORDER BY $order LIMIT :start, :userproseite");
|
||||
$dbdata = $mysqlcon->prepare("SELECT {$columns} FROM `$dbname`.`user`, `$dbname`.`stats_user` WHERE `stats_user`.`uuid`=`user`.`uuid` AND (`user`.`uuid` LIKE :searchvalue OR `user`.`cldbid` LIKE :searchvalue OR `user`.`name` LIKE :searchvalue) {$filter} ORDER BY {$order} LIMIT :start, :userproseite");
|
||||
$dbdata->bindValue(':searchvalue', '%'.$searchstring.'%', PDO::PARAM_STR);
|
||||
}
|
||||
|
||||
@@ -65,7 +67,7 @@ try {
|
||||
$err_msg = print_r($mysqlcon->errorInfo(), true); $err_lvl = 3;
|
||||
}
|
||||
|
||||
$sqlhis = $dbdata->fetchAll(PDO::FETCH_ASSOC|PDO::FETCH_UNIQUE);
|
||||
$sqlhis = $dbdata->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
if($adminlogin == 1) {
|
||||
switch ($keyorder) {
|
||||
@@ -117,6 +119,7 @@ try {
|
||||
$activetime = $value['count'];
|
||||
}
|
||||
$grpcount=0;
|
||||
|
||||
if($cfg['stats_column_next_server_group_switch'] != 1) {
|
||||
echo list_rankup($cfg,$lang,$sqlhisgroup,$value,$adminlogin,$nation,$grpcount);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user