Skip to content

Commit b45feec

Browse files
committed
release 1.3.10
1 parent d196dfb commit b45feec

37 files changed

Lines changed: 260 additions & 540 deletions

install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?PHP
22
require_once('other/config.php');
3-
$rsversion = '1.3.9';
3+
$rsversion = '1.3.10';
44
?>
55
<!DOCTYPE html>
66
<html>
@@ -139,7 +139,7 @@ function install($type, $host, $user, $pass, $dbname, $lang, $mysqlcon, &$err_ms
139139
$count++;
140140
}
141141

142-
if($mysqlcon->exec("CREATE TABLE `$dbname`.`stats_user` (`uuid` char(28) CHARACTER SET utf8 COLLATE utf8_unicode_ci PRIMARY KEY,`removed` tinyint(1) NOT NULL default '0',`total_connections` smallint(5) NOT NULL default '0',`count_week` mediumint(8) UNSIGNED NOT NULL default '0',`count_month` mediumint(8) UNSIGNED NOT NULL default '0',`idle_week` mediumint(8) UNSIGNED NOT NULL default '0',`idle_month` mediumint(8) UNSIGNED NOT NULL default '0',`client_description` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,`base64hash` char(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,`client_total_up` bigint(15) NOT NULL default '0',`client_total_down` bigint(15) NOT NULL default '0',`active_week` mediumint(8) UNSIGNED NOT NULL default '0',`active_month` mediumint(8) UNSIGNED NOT NULL default '0')") === false) {
142+
if($mysqlcon->exec("CREATE TABLE `$dbname`.`stats_user` (`uuid` char(28) CHARACTER SET utf8 COLLATE utf8_unicode_ci PRIMARY KEY,`removed` tinyint(1) NOT NULL default '0',`total_connections` MEDIUMINT(8) UNSIGNED NOT NULL default '0',`count_week` mediumint(8) UNSIGNED NOT NULL default '0',`count_month` mediumint(8) UNSIGNED NOT NULL default '0',`idle_week` mediumint(8) UNSIGNED NOT NULL default '0',`idle_month` mediumint(8) UNSIGNED NOT NULL default '0',`client_description` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,`base64hash` char(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,`client_total_up` bigint(15) NOT NULL default '0',`client_total_down` bigint(15) NOT NULL default '0',`active_week` mediumint(8) UNSIGNED NOT NULL default '0',`active_month` mediumint(8) UNSIGNED NOT NULL default '0',`last_calculated` int(10) UNSIGNED NOT NULL default '0')") === false) {
143143
$err_msg .= $lang['isntwidbmsg'].$mysqlcon->errorCode()." ".print_r($mysqlcon->errorInfo(), true).'<br>'; $err_lvl = 2;
144144
$count++;
145145
}

jobs/bot.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function run_bot() {
452452

453453
if($db_cache['job_check']['reload_trigger']['timestamp'] == 1) {
454454
unset($db_cache['addon_assign_groups'],$db_cache['admin_addtime']);
455-
if(($get_db_data = $mysqlcon->query("SELECT * FROM `$dbname`.`addon_assign_groups`; SELECT * FROM `$dbname`.`admin_addtime`;")) === false) {
455+
if(($get_db_data = $mysqlcon->query("SELECT * FROM `$dbname`.`addon_assign_groups`; SELECT * FROM `$dbname`.`admin_addtime`; SELECT * FROM `$dbname`.`groups`;")) === false) {
456456
shutdown($mysqlcon,$cfg,1,"Select on DB failed: ".print_r($mysqlcon->errorInfo(), true));
457457
}
458458

@@ -467,6 +467,9 @@ function run_bot() {
467467
break;
468468
case 2:
469469
$db_cache['admin_addtime'] = $fetched_array;
470+
break;
471+
case 3:
472+
$db_cache['groups'] = $fetched_array;
470473
break 2;
471474
}
472475
$get_db_data->nextRowset();

jobs/calc_serverstats.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ function calc_serverstats($ts3,$mysqlcon,&$cfg,$dbname,$dbtype,$serverinfo,&$db_
328328
$server_used_slots = $serverinfo['virtualserver_clientsonline'] - $serverinfo['virtualserver_queryclientsonline'];
329329
$server_free_slots = $serverinfo['virtualserver_maxclients'] - $server_used_slots;
330330
$server_name = $mysqlcon->quote($serverinfo['virtualserver_name'], ENT_QUOTES);
331-
331+
$serverinfo['virtualserver_total_ping'] = round((substr($serverinfo['virtualserver_total_ping'], 0, strpos($serverinfo['virtualserver_total_ping'], '.')).".".substr($serverinfo['virtualserver_total_ping'], (strpos($serverinfo['virtualserver_total_ping'], '.') + 1), 4)));
332+
if($serverinfo['virtualserver_total_ping'] > 32767) $serverinfo['virtualserver_total_ping'] = 32767;
333+
332334
// Write stats/index and Nations, Platforms & Versions
333335
$sqlexec .= "UPDATE `$dbname`.`stats_server` SET `total_user`=$total_user,`total_online_time`=$total_online_time,`total_active_time`=$total_active_time,`total_inactive_time`=$total_inactive_time,`country_nation_name_1`='$country_nation_name_1',`country_nation_name_2`='$country_nation_name_2',`country_nation_name_3`='$country_nation_name_3',`country_nation_name_4`='$country_nation_name_4',`country_nation_name_5`='$country_nation_name_5',`country_nation_1`=$country_nation_1,`country_nation_2`=$country_nation_2,`country_nation_3`=$country_nation_3,`country_nation_4`=$country_nation_4,`country_nation_5`=$country_nation_5,`country_nation_other`=$country_nation_other,`platform_1`=$platform_1,`platform_2`=$platform_2,`platform_3`=$platform_3,`platform_4`=$platform_4,`platform_5`=$platform_5,`platform_other`=$platform_other,`version_name_1`='$version_name_1',`version_name_2`='$version_name_2',`version_name_3`='$version_name_3',`version_name_4`='$version_name_4',`version_name_5`='$version_name_5',`version_1`=$version_1,`version_2`=$version_2,`version_3`=$version_3,`version_4`=$version_4,`version_5`=$version_5,`version_other`=$version_other,`server_status`=$server_status,`server_free_slots`=$server_free_slots,`server_used_slots`=$server_used_slots,`server_channel_amount`={$serverinfo['virtualserver_channelsonline']},`server_ping`={$serverinfo['virtualserver_total_ping']},`server_packet_loss`={$serverinfo['virtualserver_total_packetloss_total']},`server_bytes_down`={$serverinfo['connection_bytes_received_total']},`server_bytes_up`={$serverinfo['connection_bytes_sent_total']},`server_uptime`={$serverinfo['virtualserver_uptime']},`server_id`={$serverinfo['virtualserver_id']},`server_name`=$server_name,`server_pass`={$serverinfo['virtualserver_flag_password']},`server_creation_date`={$serverinfo['virtualserver_created']},`server_platform`='{$serverinfo['virtualserver_platform']}',`server_weblist`={$serverinfo['virtualserver_weblist_enabled']},`server_version`='{$serverinfo['virtualserver_version']}',`user_today`=$user_today,`user_week`=$user_week,`user_month`=$user_month,`user_quarter`=$user_quarter;\n";
334336
}

jobs/calc_user.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ function calc_user($ts3,$mysqlcon,$lang,$cfg,$dbname,$allclients,$phpcommand,&$d
9898
$name = $mysqlcon->quote((mb_substr($client['client_nickname'],0,30)), ENT_QUOTES);
9999
$uid = htmlspecialchars($client['client_unique_identifier'], ENT_QUOTES);
100100
$sgroups = array_flip(explode(",", $client['client_servergroups']));
101+
if(strlen($client['client_country']) > 2 || $client['client_country'] == '') $client['client_country'] = 'XX';
102+
$client['client_platform'] = mb_substr($client['client_platform'],0,32);
103+
$client['client_version'] = mb_substr($client['client_version'],0,64);
101104

102105
if (!isset($multipleonline[$uid]) && $client['client_version'] != "ServerQuery" && $client['client_type']!="1") {
103106
$clientidle = floor($client['client_idle_time'] / 1000);

jobs/calc_userstats.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?PHP
22
function calc_userstats($ts3,$mysqlcon,$cfg,$dbname,&$db_cache) {
33
$starttime = microtime(true);
4+
$nowtime = time();
45
$sqlexec = '';
56

67
$job_begin = $db_cache['job_check']['calc_user_limit']['timestamp'];
@@ -64,10 +65,12 @@ function calc_userstats($ts3,$mysqlcon,$cfg,$dbname,&$db_cache) {
6465
$idle_month = 0;
6566
$active_month = 0;
6667
}
68+
6769
$clientdesc = $mysqlcon->quote($clientinfo['client_description'], ENT_QUOTES);
68-
$allupdateuuid .= "('$uuid',$count_week,$count_month,$idle_week,$idle_month,$active_week,$active_month,{$clientinfo['client_totalconnections']},'{$clientinfo['client_base64HashClientUID']}',{$clientinfo['client_total_bytes_uploaded']},{$clientinfo['client_total_bytes_downloaded']},$clientdesc),";
70+
if($clientinfo['client_totalconnections'] > 16777215) $clientinfo['client_totalconnections'] = 16777215;
71+
$allupdateuuid .= "('$uuid',$count_week,$count_month,$idle_week,$idle_month,$active_week,$active_month,{$clientinfo['client_totalconnections']},'{$clientinfo['client_base64HashClientUID']}',{$clientinfo['client_total_bytes_uploaded']},{$clientinfo['client_total_bytes_downloaded']},$clientdesc,$nowtime),";
6972
} catch (Exception $e) {
70-
if($e->getCode() == 512) {
73+
if($e->getCode() == 512 || $e->getCode() == 1281) {
7174
enter_logfile($cfg,6,"Client (uuid: ".$uuid." cldbid: ".$userstats['cldbid'].") known by Ranksystem is missing in TS database, perhaps its already deleted or cldbid changed. Try to search for client by uuid.");
7275
try {
7376
$getcldbid = $ts3->clientFindDb($uuid, TRUE);
@@ -101,7 +104,7 @@ function calc_userstats($ts3,$mysqlcon,$cfg,$dbname,&$db_cache) {
101104
$db_cache['job_check']['calc_user_limit']['timestamp'] = $job_end;
102105
if ($allupdateuuid != '') {
103106
$allupdateuuid = substr($allupdateuuid, 0, -1);
104-
$sqlexec .= "UPDATE `$dbname`.`job_check` SET `timestamp`=$job_end WHERE `job_name`='calc_user_limit';\nINSERT INTO `$dbname`.`stats_user` (`uuid`,`count_week`,`count_month`,`idle_week`,`idle_month`,`active_week`,`active_month`,`total_connections`,`base64hash`,`client_total_up`,`client_total_down`,`client_description`) VALUES $allupdateuuid ON DUPLICATE KEY UPDATE `count_week`=VALUES(`count_week`),`count_month`=VALUES(`count_month`),`idle_week`=VALUES(`idle_week`),`idle_month`=VALUES(`idle_month`),`active_week`=VALUES(`active_week`),`active_month`=VALUES(`active_month`),`total_connections`=VALUES(`total_connections`),`base64hash`=VALUES(`base64hash`),`client_total_up`=VALUES(`client_total_up`),`client_total_down`=VALUES(`client_total_down`),`client_description`=VALUES(`client_description`);\n";
107+
$sqlexec .= "UPDATE `$dbname`.`job_check` SET `timestamp`=$job_end WHERE `job_name`='calc_user_limit';\nINSERT INTO `$dbname`.`stats_user` (`uuid`,`count_week`,`count_month`,`idle_week`,`idle_month`,`active_week`,`active_month`,`total_connections`,`base64hash`,`client_total_up`,`client_total_down`,`client_description`,`last_calculated`) VALUES $allupdateuuid ON DUPLICATE KEY UPDATE `count_week`=VALUES(`count_week`),`count_month`=VALUES(`count_month`),`idle_week`=VALUES(`idle_week`),`idle_month`=VALUES(`idle_month`),`active_week`=VALUES(`active_week`),`active_month`=VALUES(`active_month`),`total_connections`=VALUES(`total_connections`),`base64hash`=VALUES(`base64hash`),`client_total_up`=VALUES(`client_total_up`),`client_total_down`=VALUES(`client_total_down`),`client_description`=VALUES(`client_description`),`last_calculated`=VALUES(`last_calculated`);\n";
105108
unset($allupdateuuid);
106109
} else {
107110
$sqlexec .= "UPDATE `$dbname`.`job_check` SET `timestamp`=$job_end WHERE `job_name`='calc_user_limit';\n";

jobs/check_db.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?PHP
22
function check_db($mysqlcon,$lang,$cfg,$dbname) {
3-
$cfg['version_latest_available'] = '1.3.9';
3+
$cfg['version_latest_available'] = '1.3.10';
44
enter_logfile($cfg,5,"Check Ranksystem database for updates...");
55

66
function check_double_cldbid($mysqlcon,$cfg,$dbname) {
@@ -330,11 +330,21 @@ function check_writable($cfg,$mysqlcon) {
330330
}
331331

332332
if(version_compare($cfg['version_current_using'], '1.3.9', '<')) {
333+
if($mysqlcon->exec("INSERT INTO `$dbname`.`job_check` (`job_name`,`timestamp`) VALUES ('get_avatars', '0'),('calc_donut_chars', '0'),('reload_trigger', '0');") === false) { } else {
334+
enter_logfile($cfg,4," [1.3.9] Added new job_check values.");
335+
}
336+
}
337+
338+
if(version_compare($cfg['version_current_using'], '1.3.10', '<')) {
333339
if($mysqlcon->exec("DELETE FROM `$dbname`.`admin_addtime`;") === false) { }
334340
if($mysqlcon->exec("DELETE FROM `$dbname`.`addon_assign_groups`;") === false) { }
335341

336-
if($mysqlcon->exec("INSERT INTO `$dbname`.`job_check` (`job_name`,`timestamp`) VALUES ('get_avatars', '0'),('calc_donut_chars', '0'),('reload_trigger', '0');") === false) { } else {
337-
enter_logfile($cfg,4," [1.3.9] Added new job_check values.");
342+
if($mysqlcon->exec("ALTER TABLE `$dbname`.`stats_user` ADD COLUMN `last_calculated` int(10) UNSIGNED NOT NULL default '0';") === false) { } else {
343+
enter_logfile($cfg,4," [1.3.10] Added new stats_user values.");
344+
}
345+
346+
if($mysqlcon->exec("ALTER TABLE `$dbname`.`stats_user` MODIFY COLUMN `total_connections` MEDIUMINT(8) UNSIGNED NOT NULL default '0';") === false) { } else {
347+
enter_logfile($cfg,4," [1.3.10] Adjusted table stats_user successfully.");
338348
}
339349

340350
if($mysqlcon->exec("CREATE INDEX `snapshot_id` ON `$dbname`.`user_snapshot` (`id`)") === false) { }

jobs/get_avatars.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ function get_avatars($ts3,$cfg,$dbname,&$db_cache) {
2323
unset($fsfilelist);
2424

2525
if (isset($tsfilelist)) {
26+
$downloadedavatars = 0;
2627
foreach($tsfilelist as $tsfile) {
28+
if($downloadedavatars > 9) break;
2729
$fullfilename = '/'.$tsfile['name'];
2830
$uuidasbase16 = substr($tsfile['name'],7);
2931
if (!isset($fsfilelistarray[$uuidasbase16.'.png']) || ($tsfile['datetime'] - $cfg['teamspeak_avatar_download_delay']) > $fsfilelistarray[$uuidasbase16.'.png']) {
@@ -34,6 +36,7 @@ function get_avatars($ts3,$cfg,$dbname,&$db_cache) {
3436
$transfer = TeamSpeak3::factory("filetransfer://" . $avatar["host"] . ":" . $avatar["port"]);
3537
$tsfile = $transfer->download($avatar["ftkey"], $avatar["size"]);
3638
$avatarfilepath = substr(__DIR__,0,-4).'avatars/'.$uuidasbase16.'.png';
39+
$downloadedavatars++;
3740
enter_logfile($cfg,5,"Download avatar: ".$fullfilename);
3841
if(file_put_contents($avatarfilepath, $tsfile) === false) {
3942
enter_logfile($cfg,2,"Error while writing out the avatar. Please check the permission for the folder 'avatars'");

jobs/handle_messages.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ function handle_messages(TeamSpeak3_Adapter_ServerQuery_Event $event, TeamSpeak3
130130
if((strstr($event["msg"], '!reloadgroups') || strstr($event["msg"], '!reloadicons')) && $admin == 1) {
131131
if($mysqlcon->exec("DELETE FROM `$dbname`.`groups`") === false) {
132132
enter_logfile($cfg,4,"handle_messages 14:".print_r($mysqlcon->errorInfo(), true));
133+
} else {
134+
if($mysqlcon->exec("UPDATE `$dbname`.`job_check` SET `timestamp`=1 WHERE `job_name`='reload_trigger';") === false) {
135+
enter_logfile($cfg,4,"handle_messages 15:".print_r($mysqlcon->errorInfo(), true));
136+
}
133137
}
134138
sendmessage($host, $cfg, $event["invokeruid"], $lang['msg0011'] ." ". $lang['msg0010']);
135139
return;

jobs/reset_rs.php

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function reset_rs($ts3,$mysqlcon,$lang,$cfg,$dbname,&$db_cache) {
1818

1919
krsort($cfg['rankup_definition']);
2020

21-
if (($all_clients = $mysqlcon->query("SELECT cldbid,uuid,name FROM `$dbname`.`user`")->fetchAll(PDO::FETCH_ASSOC|PDO::FETCH_UNIQUE)) === false) {
21+
if (($all_clients = $mysqlcon->query("SELECT `cldbid`,`uuid`,`name` FROM `$dbname`.`user`")->fetchAll(PDO::FETCH_ASSOC|PDO::FETCH_UNIQUE)) === false) {
2222
shutdown($mysqlcon,$cfg,1,"Select on DB failed: ".print_r($mysqlcon->errorInfo(), true));
2323
}
2424

@@ -201,23 +201,27 @@ function reset_rs($ts3,$mysqlcon,$lang,$cfg,$dbname,&$db_cache) {
201201
} else {
202202
$db_cache['job_check']['reset_webspace_cache']['timestamp'] = 2;
203203
enter_logfile($cfg,4," Started job '".$lang['wihladm33']."'");
204+
if ($mysqlcon->exec("DELETE FROM `$dbname`.`groups`;") === false) {
205+
enter_logfile($cfg,4," Executing SQL commands failed: ".print_r($mysqlcon->errorInfo(), true));
206+
} else {
207+
if($mysqlcon->exec("UPDATE `$dbname`.`job_check` SET `timestamp`=1 WHERE `job_name`='reload_trigger';") === false) {
208+
enter_logfile($cfg,4," Executing SQL commands failed: ".print_r($mysqlcon->errorInfo(), true));
209+
}
210+
}
204211
}
205-
212+
206213
$del_folder = array('avatars/','tsicons/');
207214
$err_cnt = 0;
208-
215+
209216
if (!function_exists('rm_file_reset')) {
210217
function rm_file_reset($folder,$cfg) {
211218
foreach(scandir($folder) as $file) {
212-
if ('.' === $file || '..' === $file || 'rs.png' === $file || is_dir($folder.$file)) {
213-
continue;
219+
if (in_array($file, array('.','..','check.png','placeholder.png','rs.png','servericon.png','100.png','200.png','300.png','500.png','600.png')) || is_dir($folder.$file)) continue;
220+
if(unlink($folder.$file)) {
221+
enter_logfile($cfg,4," File ".$folder.$file." successfully deleted.");
214222
} else {
215-
if(unlink($folder.$file)) {
216-
enter_logfile($cfg,4," File ".$folder.$file." successfully deleted.");
217-
} else {
218-
enter_logfile($cfg,2," File ".$folder.$file." couldn't be deleted. Please check the file permissions.");
219-
$err_cnt++;
220-
}
223+
enter_logfile($cfg,2," File ".$folder.$file." couldn't be deleted. Please check the file permissions.");
224+
$err_cnt++;
221225
}
222226
}
223227
}

jobs/update_groups.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
3535
$ts3groups = $ts3->serverGroupList();
3636

3737
// ServerIcon
38-
if ($serverinfo['virtualserver_icon_id'] < 0) {
39-
$sIconId = (pow(2, 32)) - ($serverinfo['virtualserver_icon_id'] * -1);
40-
} else {
41-
$sIconId = $serverinfo['virtualserver_icon_id'];
42-
}
38+
$sIconId = $serverinfo['virtualserver_icon_id'];
39+
$sIconId = ($sIconId < 0) ? (pow(2, 32)) - ($sIconId * -1) : $sIconId;
4340
$sIconFile = 0;
4441
$extension = '';
4542
if (!isset($db_cache['groups']['0']) || $db_cache['groups']['0']['iconid'] != $sIconId || (isset($iconarr["i".$sIconId]) && $iconarr["i".$sIconId] > $db_cache['groups']['0']['icondate'])) {
@@ -82,7 +79,7 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
8279
"icondate" => $sicondate,
8380
"sortid" => "0",
8481
"type" => "0",
85-
"ext" => $mysqlcon->quote($extension, ENT_QUOTES)
82+
"ext" => $extension
8683
);
8784
}
8885
unset($sIconFile,$sIconId);
@@ -111,6 +108,8 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
111108
} catch (Exception $e) {
112109
enter_logfile($cfg,2,$lang['errorts3'].$e->getCode().': '.sprintf($lang['upgrp0008'], $sgname, $sgid).$e->getMessage());
113110
}
111+
} else {
112+
$extension = $db_cache['groups'][$sgid]['ext'];
114113
}
115114
} elseif($iconid == 0) {
116115
foreach (glob(substr(dirname(__FILE__),0,-4) . "tsicons/" . $iconid . ".*") as $file) {
@@ -141,7 +140,7 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
141140
"icondate" => $iconarr["i".$iconid],
142141
"sortid" => $servergroup['sortid'],
143142
"type" => $servergroup['type'],
144-
"ext" => $mysqlcon->quote($extension, ENT_QUOTES)
143+
"ext" => $extension
145144
);
146145
}
147146
if($iconcount > 9 && $nobreak != 1) {
@@ -153,7 +152,7 @@ function update_groups($ts3,$mysqlcon,$lang,$cfg,$dbname,$serverinfo,&$db_cache,
153152
if (isset($updategroups)) {
154153
$sqlinsertvalues = '';
155154
foreach ($updategroups as $updatedata) {
156-
$sqlinsertvalues .= "({$updatedata['sgid']},{$updatedata['sgidname']},{$updatedata['iconid']},{$updatedata['icondate']},{$updatedata['sortid']},{$updatedata['type']},{$updatedata['ext']}),";
155+
$sqlinsertvalues .= "({$updatedata['sgid']},{$updatedata['sgidname']},{$updatedata['iconid']},{$updatedata['icondate']},{$updatedata['sortid']},{$updatedata['type']},{$mysqlcon->quote($updatedata['ext'], ENT_QUOTES)}),";
157156
$db_cache['groups'][$updatedata['sgid']]['sgidname'] = $updatedata['sgidname'];
158157
$db_cache['groups'][$updatedata['sgid']]['iconid'] = $updatedata['iconid'];
159158
$db_cache['groups'][$updatedata['sgid']]['icondate'] = $updatedata['icondate'];

0 commit comments

Comments
 (0)