Changeset 21237 for extensions/whois_online/config.php
- Timestamp:
- Mar 6, 2013, 12:38:35 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/whois_online/config.php
r9145 r21237 146 146 // The whois_online table summary 147 147 if (isset($_GET['tab']) and $_GET['tab']=='monitor') { 148 $whois_status = mysql_fetch_assoc(pwg_query('SHOW TABLE STATUS LIKE "' . WHOIS_ONLINE_TABLE .'%" ;'));148 $whois_status = pwg_db_fetch_assoc(pwg_query('SHOW TABLE STATUS LIKE "' . WHOIS_ONLINE_TABLE .'%" ;')); 149 149 $whois_status['table'] = WHOIS_ONLINE_TABLE; 150 150 $whois_status['size'] = ($whois_status['Data_length'] + $whois_status['Index_length']) . ' bytes'; … … 169 169 if (!empty($result)) 170 170 { 171 while ($row = mysql_fetch_assoc($result))171 while ($row = pwg_db_fetch_assoc($result)) 172 172 { 173 173 $tpl[$row['session_id']] = $row['username']; … … 187 187 if (!empty($result)) 188 188 { 189 while ($row = mysql_fetch_assoc($result))189 while ($row = pwg_db_fetch_assoc($result)) 190 190 { 191 191 $tpl[$row['session_id']] = $row['username']; … … 218 218 'a:1:{s:6:"fields";a:5:{s:10:"date-after";s:10:"2009-09-09";s:11:"date-before";s:10:"2009-09-09";s:5:"types";a:4:{i:0;s:4:"none";i:1;s:7:"picture";i:2;s:4:"high";i:3;s:5:"other";}s:4:"user";s:2:"-1";s:17:"display_thumbnail";s:26:"display_thumbnail_hoverbox";}}' 219 219 .'\');'); 220 $conf_whois['Search id'] = mysql_insert_id();220 $conf_whois['Search id'] = pwg_db_insert_id(); 221 221 $conf['Whois Online'] = serialize($conf_whois); 222 222 pwg_query('REPLACE INTO ' . CONFIG_TABLE . " (param,value,comment) … … 224 224 } 225 225 // Get and Set to current date the stupid History search. 226 list($serialized_rules) = mysql_fetch_row(pwg_query('SELECT rules FROM '.SEARCH_TABLE.'226 list($serialized_rules) = pwg_db_fetch_row(pwg_query('SELECT rules FROM '.SEARCH_TABLE.' 227 227 WHERE id = '.$conf_whois['Search id'].';')); 228 228 $page['search'] = unserialize($serialized_rules); … … 234 234 // Most members ever online was 235 235 if (!isset($conf_whois['Users']['count']) or $conf_whois['Users']['count'] == 0) { 236 $count = mysql_fetch_assoc(pwg_query('SELECT MAX(`'. $conf['user_fields']['id'] .'`) AS `ctr` FROM ' . USERS_TABLE));236 $count = pwg_db_fetch_assoc(pwg_query('SELECT MAX(`'. $conf['user_fields']['id'] .'`) AS `ctr` FROM ' . USERS_TABLE)); 237 237 $conf_whois['Users']['count'] = $count['ctr']; 238 238 }
Note: See TracChangeset
for help on using the changeset viewer.