Changeset 1332593
- Timestamp:
- 01/21/2016 06:02:32 AM (10 years ago)
- Location:
- event-registration/trunk
- Files:
-
- 6 edited
-
event/evr_event_edit.php (modified) (2 diffs)
-
event/evr_event_listing.php (modified) (2 diffs)
-
event/evr_event_new.php (modified) (1 diff)
-
event/evr_event_post.php (modified) (2 diffs)
-
event/evr_event_update.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
event-registration/trunk/event/evr_event_edit.php
r948533 r1332593 175 175 176 176 //set reg limit if not set 177 /* 177 178 if ($event->reg_limit == ''|| $reg_limit == ' '){$reg_limit = 9999;} 178 179 else {$reg_limit = $event->reg_limit;} 180 */ 181 $reg_limit = $event->reg_limit; 179 182 ?> 180 183 <h2><?php _e('EVENT VENUE','evr_language');?></h2> … … 415 418 $reg_form_defaults = unserialize($event->reg_form_defaults); 416 419 if ($reg_form_defaults !=""){ 417 if (in_array("Address", $reg_form_defaults)) {$inc_address = "Y";} 418 if (in_array("City", $reg_form_defaults)) {$inc_city = "Y";} 419 if (in_array("State", $reg_form_defaults)) {$inc_state = "Y";} 420 if (in_array("Zip", $reg_form_defaults)) {$inc_zip = "Y";} 421 if (in_array("Phone", $reg_form_defaults)) {$inc_phone = "Y";} 422 if (in_array("Company", $reg_form_defaults)) {$inc_comp = "Y";} 423 if (in_array("CoAddress", $reg_form_defaults)) {$inc_coadd = "Y";} 424 if (in_array("CoCity", $reg_form_defaults)) {$inc_cocity = "Y";} 425 if (in_array("CoState", $reg_form_defaults)) {$inc_costate = "Y";} 426 if (in_array("CoPostal", $reg_form_defaults)) {$inc_copostal = "Y";} 427 if (in_array("CoPhone", $reg_form_defaults)) {$inc_cophone = "Y";} 420 if (in_array("Address", $reg_form_defaults)) {$inc_address = "Y";} else {$inc_address = "N";} 421 if (in_array("City", $reg_form_defaults)) {$inc_city = "Y";} else {$inc_city = "N";} 422 if (in_array("State", $reg_form_defaults)) {$inc_state = "Y";} else {$inc_state = "N";} 423 if (in_array("Zip", $reg_form_defaults)) {$inc_zip = "Y";} else {$inc_zip = "N";} 424 if (in_array("Phone", $reg_form_defaults)) {$inc_phone = "Y";} else {$inc_phone = "N";} 425 if (in_array("Company", $reg_form_defaults)) {$inc_comp = "Y";} else {$inc_comp = "N";} 426 if (in_array("CoAddress", $reg_form_defaults)) {$inc_coadd = "Y";} else {$inc_coadd = "N";} 427 if (in_array("CoCity", $reg_form_defaults)) {$inc_cocity = "Y";} else {$inc_cocity = "N";} 428 if (in_array("CoState", $reg_form_defaults)) {$inc_costate = "Y";} else {$inc_costate = "N";} 429 if (in_array("CoPostal", $reg_form_defaults)) {$inc_copostal = "Y";} else {$inc_copostal = "N";} 430 if (in_array("CoPhone", $reg_form_defaults)) {$inc_cophone = "Y";} else {$inc_cophone = "N";} 431 } 432 else { 433 $inc_address = "N"; 434 $inc_city = "N"; 435 $inc_state = "N"; 436 $inc_zip = "N"; 437 $inc_phone = "N"; 438 $inc_comp = "N"; 439 $inc_coadd = "N"; 440 $inc_cocity = "N"; 441 $inc_costate = "N"; 442 $inc_copostal = "N"; 443 $inc_cophone = "N"; 444 428 445 } 429 446 ?> -
event-registration/trunk/event/evr_event_listing.php
r944628 r1332593 114 114 $end_time = $event->end_time; 115 115 $conf_mail = $event->conf_mail; 116 $custom_mail = $event->custom_mail;116 //$custom_mail = $event->custom_mail; 117 117 $start_date = $event->start_date; 118 118 $end_date = $event->end_date; … … 258 258 $end_time = $event->end_time; 259 259 $conf_mail = $event->conf_mail; 260 $custom_mail = $event->custom_mail;260 //$custom_mail = $event->custom_mail; 261 261 $start_date = $event->start_date; 262 262 $end_date = $event->end_date; -
event-registration/trunk/event/evr_event_new.php
r948533 r1332593 2 2 //function to create a new event 3 3 function evr_new_event(){ 4 global $wpdb, $wp_version ;4 global $wpdb, $wp_version,$company_options; 5 5 6 6 $editor_settings= array('wpautop'=>false,'media_buttons' => false,'textarea_rows' => '4', 'tinymce'=>false); -
event-registration/trunk/event/evr_event_post.php
r941152 r1332593 5 5 //retrieve post data 6 6 //note about coupon code - coupon code information is not posted here, but from the item cost page. 7 $event_name = esc_html( $_REQUEST ['event_name']);8 $event_identifier = esc_html( $_REQUEST ['event_identifier']);9 $display_desc = $_REQUEST ['display_desc']; // Y or N10 $event_desc = esc_html( $_REQUEST ['event_desc']);11 $event_category = serialize( $_REQUEST['event_category']);12 $reg_limit = $_REQUEST ['reg_limit'];13 $event_location = $_REQUEST ['event_location'];14 $event_address = $_REQUEST['event_street'];15 $event_city = $_REQUEST['event_city'];16 $event_state = $_REQUEST['event_state'];17 $event_postal= $_REQUEST['event_postcode'];18 $location_list = $_REQUEST['location_list'];19 $google_map = $_REQUEST['google_map']; // Y or N7 $event_name = esc_html((string)@$_REQUEST ['event_name']); 8 $event_identifier = esc_html((string)@$_REQUEST ['event_identifier']); 9 $display_desc = (string)@$_REQUEST ['display_desc']; // Y or N 10 $event_desc = esc_html((string)@$_REQUEST ['event_desc']); 11 $event_category = serialize((string)@$_REQUEST['event_category']); 12 $reg_limit = (string)@$_REQUEST ['reg_limit']; 13 $event_location = (string)@$_REQUEST ['event_location']; 14 $event_address = (string)@$_REQUEST['event_street']; 15 $event_city = (string)@$_REQUEST['event_city']; 16 $event_state =(string)@$_REQUEST['event_state']; 17 $event_postal=(string)@$_REQUEST['event_postcode']; 18 $location_list = (string)@$_REQUEST['location_list']; 19 $google_map = (string)@$_REQUEST['google_map']; // Y or N 20 20 21 $start_month = $_REQUEST ['start_month'];22 $start_day = $_REQUEST ['start_day'];23 $start_year = $_REQUEST ['start_year'];24 $end_month = $_REQUEST ['end_month'];25 $end_day = $_REQUEST ['end_day'];26 $end_year = $_REQUEST ['end_year'];27 $start_time = $_REQUEST ['start_time'];28 $end_time = $_REQUEST ['end_time'];29 $close = $_REQUEST['close'];30 $allow_checks = $_REQUEST['allow_checks'];31 $waiver = $_REQUEST['waiver'];32 $waiver_content = $_REQUEST['waiver_content'];21 $start_month = (string)@$_REQUEST ['start_month']; 22 $start_day = (string)@$_REQUEST ['start_day']; 23 $start_year = (string)@$_REQUEST ['start_year']; 24 $end_month = (string)@$_REQUEST ['end_month']; 25 $end_day = (string)@$_REQUEST ['end_day']; 26 $end_year = (string)@$_REQUEST ['end_year']; 27 $start_time = (string)@$_REQUEST ['start_time']; 28 $end_time = (string)@$_REQUEST ['end_time']; 29 $close = (string)@$_REQUEST['close']; 30 $allow_checks = (string)@$_REQUEST['allow_checks']; 31 $waiver = (string)@$_REQUEST['waiver']; 32 $waiver_content = (string)@$_REQUEST['waiver_content']; 33 33 34 $outside_reg = $_REQUEST['outside_reg']; // Yor N 35 $external_site = $_REQUEST['external_site']; 34 $outside_reg = (string)@$_REQUEST['outside_reg']; // Yor N 35 $external_site = (string)@$_REQUEST['external_site']; 36 $custom_cur = (string)@$_REQUEST['custom_cur']; 37 $reg_form_defaults = serialize((array)@$_REQUEST['reg_form_defaults']); 38 $more_info = (string)@$_REQUEST ['more_info']; 39 $image_link = (string)@$_REQUEST ['image_link']; 40 $header_image = (string)@$_REQUEST ['header_image']; 41 $event_cost = (string)@$_REQUEST ['event_cost']; 36 42 37 $reg_form_defaults = serialize($_REQUEST['reg_form_defaults']); 38 $more_info = $_REQUEST ['more_info']; 39 $image_link = $_REQUEST ['image_link']; 40 $header_image = $_REQUEST ['header_image']; 41 $event_cost = $_REQUEST ['event_cost']; 42 $allow_checks = $_REQUEST ['allow_checks']; 43 $is_active = $_REQUEST ['is_active']; 44 $send_mail = $_REQUEST ['send_mail']; // Y or N 45 $conf_mail = esc_html($_REQUEST ['conf_mail']); 43 $is_active = (string)@$_REQUEST ['is_active']; 44 $send_mail = (string)@$_REQUEST ['send_mail']; // Y or N 45 $conf_mail = esc_html((string)@$_REQUEST ['conf_mail']); 46 46 //build start date 47 47 $start_date = $start_year."-".$start_month."-".$start_day; … … 51 51 if ($reg_limit == ''){$reg_limit = 999;} 52 52 //added ver 6.00.13 53 $send_coord = $_REQUEST ['send_coord']; // Y or N54 $coord_email = $_REQUEST ['coord_email'];55 $coord_msg = esc_html( $_REQUEST ['coord_msg']);56 $coord_pay_msg = esc_html( $_REQUEST ['coord_pay_msg']);53 $send_coord = (string)@$_REQUEST ['send_coord']; // Y or N 54 $coord_email = (string)@$_REQUEST ['coord_email']; 55 $coord_msg = esc_html((string)@$_REQUEST ['coord_msg']); 56 $coord_pay_msg = esc_html((string)@$_REQUEST ['coord_pay_msg']); 57 57 58 58 -
event-registration/trunk/event/evr_event_update.php
r941152 r1332593 9 9 //$event_id = $_REQUEST['event_id']; 10 10 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 11 $event_name = esc_html( $_REQUEST ['event_name']);12 $event_identifier = esc_html( $_REQUEST ['event_identifier']);13 $display_desc = $_REQUEST ['display_desc']; // Y or N14 $event_desc = esc_html( $_REQUEST ['event_desc']);15 $event_category = serialize( $_REQUEST['event_category']);16 $reg_limit = $_REQUEST ['reg_limit'];17 $location_list = $_REQUEST['location_list'];18 $event_location = esc_html( $_REQUEST ['event_location']);19 $event_address = $_REQUEST['event_street'];20 $event_city = $_REQUEST['event_city'];21 $event_state = $_REQUEST['event_state'];22 $event_postal= $_REQUEST['event_postcode'];11 $event_name = esc_html((string)@$_REQUEST ['event_name']); 12 $event_identifier = esc_html((string)@$_REQUEST ['event_identifier']); 13 $display_desc = (string)@$_REQUEST ['display_desc']; // Y or N 14 $event_desc = esc_html((string)@$_REQUEST ['event_desc']); 15 $event_category = serialize((string)@$_REQUEST['event_category']); 16 $reg_limit = (string)@$_REQUEST ['reg_limit']; 17 $location_list = (string)@$_REQUEST['location_list']; 18 $event_location = esc_html((string)@$_REQUEST ['event_location']); 19 $event_address = (string)@$_REQUEST['event_street']; 20 $event_city = (string)@$_REQUEST['event_city']; 21 $event_state =(string)@$_REQUEST['event_state']; 22 $event_postal=(string)@$_REQUEST['event_postcode']; 23 23 24 $google_map = $_REQUEST['google_map']; // Y or N24 $google_map = (string)@$_REQUEST['google_map']; // Y or N 25 25 26 $start_month = $_REQUEST ['start_month'];27 $start_day = $_REQUEST ['start_day'];28 $start_year = $_REQUEST ['start_year'];29 $end_month = $_REQUEST ['end_month'];30 $end_day = $_REQUEST ['end_day'];31 $end_year = $_REQUEST ['end_year'];32 $start_time = $_REQUEST ['start_time'];33 $end_time = $_REQUEST ['end_time'];34 $close = $_REQUEST ['close'];35 $allow_checks = $_REQUEST['allow_checks'];36 $waiver = $_REQUEST['waiver'];37 $waiver_content = $_REQUEST['waiver_content'];26 $start_month = (string)@$_REQUEST ['start_month']; 27 $start_day = (string)@$_REQUEST ['start_day']; 28 $start_year = (string)@$_REQUEST ['start_year']; 29 $end_month = (string)@$_REQUEST ['end_month']; 30 $end_day = (string)@$_REQUEST ['end_day']; 31 $end_year = (string)@$_REQUEST ['end_year']; 32 $start_time = (string)@$_REQUEST ['start_time']; 33 $end_time = (string)@$_REQUEST ['end_time']; 34 $close = (string)@$_REQUEST ['close']; 35 $allow_checks = (string)@$_REQUEST['allow_checks']; 36 $waiver = (string)@$_REQUEST['waiver']; 37 $waiver_content = (string)@$_REQUEST['waiver_content']; 38 38 39 $outside_reg = $_REQUEST['outside_reg']; // Yor N 40 $external_site = $_REQUEST['external_site']; 39 $reg_form_defaults = serialize((array)@$_REQUEST['reg_form_defaults']); 41 40 42 $reg_form_defaults = serialize($_REQUEST['reg_form_defaults']); 43 $more_info = $_REQUEST ['more_info']; 44 $image_link = $_REQUEST ['image_link']; 45 $header_image = $_REQUEST ['header_image']; 46 $is_active = $_REQUEST ['is_active']; 47 $send_mail = $_REQUEST ['send_mail']; // Y or N 48 $conf_mail = esc_html($_REQUEST ['conf_mail']); 41 $outside_reg = (string)@$_REQUEST['outside_reg']; // Yor N 42 $external_site = (string)@$_REQUEST['external_site']; 43 $custom_cur = (string)@$_REQUEST['custome_cur']; 44 $more_info = (string)@$_REQUEST ['more_info']; 45 $image_link = (string)@$_REQUEST ['image_link']; 46 $header_image = (string)@$_REQUEST ['header_image']; 47 $is_active = (string)@$_REQUEST ['is_active']; 48 $send_mail = (string)@$_REQUEST ['send_mail']; // Y or N 49 $conf_mail = esc_html((string)@$_REQUEST ['conf_mail']); 49 50 //build start date 50 51 $start_date = $start_year."-".$start_month."-".$start_day; … … 54 55 if ($reg_limit == ''){$reg_limit = 999;} 55 56 //added ver 6.00.13 56 $send_coord = $_REQUEST ['send_coord']; // Y or N57 $coord_email = $_REQUEST ['coord_email'];58 $coord_msg = esc_html( $_REQUEST ['coord_msg']);59 $coord_pay_msg = esc_html( $_REQUEST ['coord_pay_msg']);57 $send_coord = (string)@$_REQUEST ['send_coord']; // Y or N 58 $coord_email = (string)@$_REQUEST ['coord_email']; 59 $coord_msg = esc_html((string)@$_REQUEST ['coord_msg']); 60 $coord_pay_msg = esc_html((string)@$_REQUEST ['coord_pay_msg']); 60 61 61 62 … … 116 117 if ($wpdb->update( get_option('evr_event'), $sql, $update_id, $sql_data, array( '%d' ) )){?> 117 118 118 <div id="message" class="updated fade"><p><strong><?php _e('The Event details saved for ','evr_language'); echo stripslashes($ _REQUEST['event']); _e(' has been updated!','evr_language');?></a></p>119 <div id="message" class="updated fade"><p><strong><?php _e('The Event details saved for ','evr_language'); echo stripslashes($event_name); _e(' has been updated!','evr_language');?></a></p> 119 120 <p><strong><?php _e(' . . .Now returning you to event list . . ','evr_language');?><meta http-equiv="Refresh" content="1; url=<?php echo $_SERVER["REQUEST_URI"]?>"></strong></p></div> 120 121 -
event-registration/trunk/readme.txt
r1332458 r1332593 114 114 * Resolved manual payment posting error 115 115 * Resolved PayPal IPN posting error 116 * Fixed bug where coordinator email was not defaulting to system default 117 * Fixed bug in adding and editing events where options did not always render 118 116 119 117 120
Note: See TracChangeset
for help on using the changeset viewer.