Changeset 7099 for extensions/event_cats
- Timestamp:
- Oct 4, 2010, 11:53:53 PM (13 years ago)
- Location:
- extensions/event_cats
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/autolog_new.inc.php
r4440 r7099 111 111 (count($ec_lists['user_ids']) == 0) ? 'style = "display:none;"' : '' 112 112 ); 113 $template->assign('ec_no_assoc', (( mysql_num_rows(pwg_query("113 $template->assign('ec_no_assoc', ((pwg_db_num_rows(pwg_query(" 114 114 SELECT * 115 115 FROM `".IMAGE_CATEGORY_TABLE."` -
extensions/event_cats/admin/evntcats_admin.php
r6269 r7099 101 101 ); 102 102 103 $ec_exist_entries = ( mysql_num_rows(pwg_query("103 $ec_exist_entries = (pwg_db_num_rows(pwg_query(" 104 104 SELECT * FROM `".EVNTCATS_TABLE."` 105 105 WHERE `code` IS NOT NULL ; -
extensions/event_cats/include/evntcats_admin_funcs.inc.php
r7066 r7099 176 176 array_key_exists($_POST['ec_in_up_cat'], $ec_lists['categories']) 177 177 ) { 178 if ( mysql_num_rows(pwg_query("178 if (pwg_db_num_rows(pwg_query(" 179 179 SELECT `id` 180 180 FROM `".CATEGORIES_TABLE."` … … 403 403 if ( 404 404 !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']) 406 406 ) return ec_end1('ec_in_up_code', 'Improper code : '); 407 407 else $ec_code = $_POST['ec_in_up_code']; … … 581 581 FROM `".EVNTCATS_TABLE."` 582 582 WHERE `code` = '".$t1[0]."' 583 AND `action` IS NOT NULL 583 584 AND `id` <> ".$_POST['ec_entry_sel'] 584 585 ); … … 616 617 $forced = ($forced == 'false') ? '' : l10n('ec_cnfrm_forced'); 617 618 $page['infos'][] = 618 sprintf(l10n('ec_entry_create_OK'), mysql_insert_id()).619 sprintf(l10n('ec_entry_create_OK'), pwg_db_insert_id()). 619 620 $ec_code.' => '. 620 621 $ec_lists['user_ids'][$ec_user_id].$forced -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r7066 r7099 261 261 SELECT * 262 262 FROM `".EVNTCATS_TABLE."` 263 WHERE `code` IS NOT NULL 263 WHERE `code` IS NOT NULL 264 AND `action` IS NOT NULL 264 265 ORDER BY `id` 265 266 "); -
extensions/event_cats/main.inc.php
r7084 r7099 3 3 /* 4 4 Plugin Name: Event Cats 5 Version: 1.2.35 Version: 2.0.dev 6 6 Description: 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. 7 7 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=326 … … 44 44 define( // ------------------------------------------------------------------- 45 45 '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 :-/ ... 47 48 // '2.1.0' // When done, will simplfy and allow EC management from categories 48 49 // management pages in admin pages... yes yes...
Note: See TracChangeset
for help on using the changeset viewer.