Ignore:
Timestamp:
Mar 6, 2013, 12:38:35 PM (11 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.5: replace mysql_* functions by pwg_db_* equivalent

disable whois online feature for search engine robots to avoid useless CPU usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/maintain.inc.php

    r6193 r21237  
    4444                pwg_query('DELETE FROM ' . WHOIS_ONLINE_TABLE);
    4545        }
    46         list($hits) = mysql_fetch_row(pwg_query('SELECT SUM(hit) FROM '.IMAGES_TABLE.';'));
     46        list($hits) = pwg_db_fetch_row(pwg_query('SELECT SUM(hit) FROM '.IMAGES_TABLE.';'));
    4747        $pags = floor($hits * 1.69); /* estimate : 1.69 is a frequent ratio between images hits and pages hits */
    4848        pwg_query('INSERT IGNORE INTO ' . WHOIS_ONLINE_TABLE . ' (`IP`, `hidden_IP`, `session_id`, `user_id`,`username`,`lang`,`permanent`,`last_access`,
Note: See TracChangeset for help on using the changeset viewer.