Changeset 7099


Ignore:
Timestamp:
10/04/10 23:53:53 (9 years ago)
Author:
LucMorizur
Message:

Preparation for feature:1891; remove mysql_num_rows

Location:
extensions/event_cats
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/autolog_new.inc.php

    r4440 r7099  
    111111  (count($ec_lists['user_ids']) == 0) ? 'style = "display:none;"' : '' 
    112112); 
    113 $template->assign('ec_no_assoc', ((mysql_num_rows(pwg_query(" 
     113$template->assign('ec_no_assoc', ((pwg_db_num_rows(pwg_query(" 
    114114  SELECT * 
    115115  FROM `".IMAGE_CATEGORY_TABLE."` 
  • extensions/event_cats/admin/evntcats_admin.php

    r6269 r7099  
    101101  ); 
    102102   
    103   $ec_exist_entries = (mysql_num_rows(pwg_query(" 
     103  $ec_exist_entries = (pwg_db_num_rows(pwg_query(" 
    104104    SELECT * FROM `".EVNTCATS_TABLE."` 
    105105    WHERE `code` IS NOT NULL ; 
  • extensions/event_cats/include/evntcats_admin_funcs.inc.php

    r7066 r7099  
    176176      array_key_exists($_POST['ec_in_up_cat'], $ec_lists['categories']) 
    177177    ) { 
    178       if (mysql_num_rows(pwg_query(" 
     178      if (pwg_db_num_rows(pwg_query(" 
    179179        SELECT `id` 
    180180        FROM `".CATEGORIES_TABLE."` 
     
    403403      if ( 
    404404        !isset($_POST['ec_in_up_code']) or 
    405         !ereg('^[a-zA-Z0-9_-]{4,32}$', $_POST['ec_in_up_code']) 
     405        !preg_match('/^[a-zA-Z0-9_-]{4,32}$/', $_POST['ec_in_up_code']) 
    406406      ) return ec_end1('ec_in_up_code', 'Improper code : '); 
    407407      else $ec_code = $_POST['ec_in_up_code']; 
     
    581581      FROM `".EVNTCATS_TABLE."` 
    582582      WHERE `code` = '".$t1[0]."' 
     583       AND `action` IS NOT NULL 
    583584       AND `id` <> ".$_POST['ec_entry_sel'] 
    584585    ); 
     
    616617      $forced = ($forced == 'false') ? '' : l10n('ec_cnfrm_forced'); 
    617618      $page['infos'][] = 
    618        sprintf(l10n('ec_entry_create_OK'), mysql_insert_id()). 
     619       sprintf(l10n('ec_entry_create_OK'), pwg_db_insert_id()). 
    619620       $ec_code.' => '. 
    620621       $ec_lists['user_ids'][$ec_user_id].$forced 
  • extensions/event_cats/include/evntcats_main_funcs.inc.php

    r7066 r7099  
    261261    SELECT * 
    262262    FROM `".EVNTCATS_TABLE."` 
    263     WHERE `code` IS NOT NULL 
     263    WHERE `code`   IS NOT NULL 
     264      AND `action` IS NOT NULL 
    264265    ORDER BY `id` 
    265266  "); 
  • extensions/event_cats/main.inc.php

    r7084 r7099  
    33/* 
    44Plugin Name: Event Cats 
    5 Version: 1.2.3 
     5Version: 2.0.dev 
    66Description: A single URL can be enough to be identified, and a user can duplicate his account to create a new one getting immediately the same properties. / On peut être identifié grâce à un simple URL, et on peut dupliquer son compte pour créer un nouveau compte ayant immédiatement les mêmes propriétés. 
    77Plugin URI: http://piwigo.org/ext/extension_view.php?eid=326 
     
    4444define( // ------------------------------------------------------------------- 
    4545  'EVNTCATS_INFO_VERSION', // VERSION HISTORY: 
    46    '1.2.3' // Re-fix bug 1432 :-/ ... 
     46   '2.0.dev' // Currently developping ;-) 
     47// '1.2.3' // Re-fix bug 1432 :-/ ... 
    4748// '2.1.0' // When done, will simplfy and allow EC management from categories 
    4849//            management pages in admin pages... yes yes... 
Note: See TracChangeset for help on using the changeset viewer.