plugins/admin/SecurityLog.php
changeset 1013 8626bb38410f
parent 950 36289dcb5c8a
child 1081 745200a9cc2a
equal deleted inserted replaced
1012:d966be8d79a3 1013:8626bb38410f
    37   if ( !$q )
    37   if ( !$q )
    38     $db->_die();
    38     $db->_die();
    39   $row = $db->fetchrow();
    39   $row = $db->fetchrow();
    40   $db->free_result();
    40   $db->free_result();
    41   $count = intval($row['num']);
    41   $count = intval($row['num']);
    42   $q = $db->sql_unbuffered_query('SELECT action,date_string,author,edit_summary,time_id,page_text FROM '.table_prefix.'logs WHERE log_type=\'security\' ORDER BY time_id DESC, action ASC;');
    42   $q = $db->sql_query('SELECT action,date_string,author,edit_summary,time_id,page_text FROM '.table_prefix.'logs WHERE log_type=\'security\' ORDER BY time_id DESC, action ASC;');
    43   if ( !$q )
    43   if ( !$q )
    44     $db->_die();
    44     $db->_die();
    45    
    45    
    46   $html = paginate(
    46   $html = paginate(
    47       $q,
    47       $q,