- Timestamp:
- Oct 4, 2010, 11:53:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.