Changeset 22120 for extensions


Ignore:
Timestamp:
Apr 10, 2013, 11:51:16 AM (12 years ago)
Author:
cljosse
Message:

[extensions] mail_superviseur update to piwigo 2.5

Location:
extensions/Mail_supervisor
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/Mail_supervisor/admin/mail_superv_admin.php

    r22118 r22120  
    265265                        WHERE id = '.$group_id.'
    266266                        ;';
    267             list($group_name) = mysqli_fetch_row(pwg_query($query));
     267            list($group_name) = pwg_db_fetch_row(pwg_query($query));
    268268        }   else {
    269269                $group_name="";
     
    338338            WHERE id = '.$_POST['group'].'
    339339            ;';
    340         list($group_name) = mysqli_fetch_row(pwg_query($query));
     340        list($group_name) = pwg_db_fetch_row(pwg_query($query));
    341341
    342342          array_push(
     
    358358  $result = pwg_query($query);
    359359//----------------------------------------------------------------
    360   while ($row = mysqli_fetch_array($result,MYSQL_ASSOC)) {   
     360  while ($row = pwg_db_fetch_array($result,MYSQL_ASSOC)) {   
    361361  $groups[$row['id']] = $row['name'];  }
    362362 //---------------------------------------------------------------
  • extensions/Mail_supervisor/include/fonctions.php

    r22118 r22120  
    154154
    155155        if (!empty($datas)) {
    156                 while ($group = mysqli_fetch_array($datas,MYSQL_ASSOC)){
     156                while ($group = pwg_db_fetch_array($datas,MYSQL_ASSOC)){
    157157                        if (!empty($group['email'])){
    158158                                //array_push($groups, format_email($group['username'], $group['email'] ));
     
    221221                $datas=pwg_query($query) ;
    222222                if (!empty($datas)) {
    223                         list($count) = mysqli_fetch_row($datas);
     223                        list($count) = pwg_db_fetch_row($datas);
    224224                }
    225225
     
    232232        $datas = pwg_query($query);
    233233        if (!empty($datas)) {
    234                 while ($row = mysqli_fetch_array($datas,MYSQL_ASSOC)){
     234                while ($row = pwg_db_fetch_array($datas,MYSQL_ASSOC)){
    235235                        array_push($data,$row);
    236236                }
     
    451451                $result = @pwg_query($query);
    452452        }
    453         $datas = mysqli_fetch_array($result,MYSQL_ASSOC);
     453        $datas = pwg_db_fetch_array($result,MYSQL_ASSOC);
    454454        $nb = $datas['total']|0;
    455455        //=======================================================================
     
    515515                        $result = @pwg_query($query);
    516516                }
    517                 $datas = mysqli_fetch_array($result,MYSQL_ASSOC);
     517                $datas = pwg_db_fetch_array($result,MYSQL_ASSOC);
    518518                $nb = $datas['total'];
    519519
    520                 $row  = mysqli_fetch_row(pwg_query($query));
     520                $row  = pwg_db_fetch_row(pwg_query($query));
    521521                $nb =  ($row[7]);
    522522                $erreur_message .= $ip0 . ' | ' .$ip . ' | ' . $pays . ' | ' . $region . ' | ' . $ville . ' ' . $nb . ' ==> ';
  • extensions/Mail_supervisor/include/save_info.php

    r22118 r22120  
    1313        ;";
    1414    //==============================================================================
    15   list($count) = mysqli_fetch_row(pwg_query($query));
     15  list($count) = pwg_db_fetch_row(pwg_query($query));
    1616  //==============================================================================
    1717  $valeurs=array( 'NULL',
     
    4949    $liste_bl = array();
    5050 $result = pwg_query($query);
    51         while ($row = mysqli_fetch_array($result,MYSQL_ASSOC))   {
     51        while ($row = pwg_db_fetch_array($result,MYSQL_ASSOC))   {
    5252                 array_push($liste_bl,$row);
    5353                }
    5454//================ Liste IP ==============
    5555$req = pwg_query('SELECT count(distinct(`IP`)) FROM '.HISTORY_TABLE.'    ');
    56 $op=mysqli_fetch_row($req);
     56$op=pwg_db_fetch_row($req);
    5757$nbip =  array_pop($op) ;
    5858
     
    7878    $result = pwg_query($query);
    7979    $liste_ip=array();
    80     while ($row = mysqli_fetch_array($result,MYSQL_ASSOC))   {
     80    while ($row = pwg_db_fetch_array($result,MYSQL_ASSOC))   {
    8181
    8282              array_push($liste_ip, $row);
  • extensions/Mail_supervisor/mail_super.inc.php

    r22118 r22120  
    352352                }
    353353                if ($result) {
    354                         $data = mysqli_fetch_array($result,MYSQL_ASSOC);
     354                        $data = pwg_db_fetch_array($result,MYSQL_ASSOC);
    355355                }
    356356                //====================================================================================
Note: See TracChangeset for help on using the changeset viewer.