Ignore:
Timestamp:
Feb 22, 2010, 2:05:32 PM (14 years ago)
Author:
cljosse
Message:

[Mail_supervisor] Limitation of the number of address IP shown by page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/include/save_info.php

    r4888 r4938  
    5959                         array_push($liste_bl,$row);
    6060                                }
    61 //================ Liste IP ==============                     
     61//================ Liste IP ==============             
     62$req = mysql_query('SELECT count(distinct(`IP`)) FROM '.HISTORY_TABLE.'    ');
     63$nbip =  array_pop(mysql_fetch_row($req)) ;
     64
     65
    6266             $query = '
    6367    SELECT DISTINCT     H.`id`,
     
    7781        }
    7882       
    79         $query .= '
     83        $query .= '     
     84        GROUP by H.`IP`
     85        ORDER by `id` DESC
     86        LIMIT '.(int)($params['per_page']*$params['start']).','.(int)$params['per_page'].'
    8087       
    81         GROUP by H.`IP` ;
    82        
    83         ;'  ;//
     88        '   ;
    8489        $result = pwg_query($query);
    8590        $liste_ip=array();
Note: See TracChangeset for help on using the changeset viewer.