Changeset 2138842
- Timestamp:
- 08/13/2019 12:29:51 PM (7 years ago)
- Location:
- ecalypse-rental-starter/trunk
- Files:
-
- 4 edited
-
class.ecalypse-rental-admin.php (modified) (2 diffs)
-
class.ecalypse-rental.php (modified) (2 diffs)
-
ecalypse-rental-starter.php (modified) (2 diffs)
-
views/ecalypse-rental-booking.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ecalypse-rental-starter/trunk/class.ecalypse-rental-admin.php
r2057151 r2138842 1034 1034 // RESEND CONFIRMATION EMAIL 1035 1035 if (isset($_POST['resend_email']) && !empty($_POST['id_booking'])) { 1036 if (!current_user_can('manage_ecalypse_rental')) { 1037 return; 1038 } 1036 1037 if (!current_user_can('manage_ecalypse_rental')) { 1038 return; 1039 } 1040 1039 1041 check_admin_referer( 'resend_email'); 1042 1040 1043 $data = $wpdb->get_row($wpdb->prepare('SELECT * FROM `' . EcalypseRental::$db['booking'] . '` WHERE `id_booking` = %d', (int)$_POST['id_booking']), ARRAY_A); 1041 1044 switch ($data['status']) { … … 3314 3317 self::get_local_theme_translations(); 3315 3318 } 3316 3319 wp_cache_delete( 'alloptions', 'options' ); 3317 3320 return true; 3318 3321 } catch (Exception $e) { -
ecalypse-rental-starter/trunk/class.ecalypse-rental.php
r2101646 r2138842 249 249 add_rewrite_rule('detail/([0-9]{1,3})-(.+?)/?$', 'index.php?detail_id=$matches[1]&detail_url=$matches[2]', 'top'); 250 250 251 if ( $lng_rule != '') {251 if (!empty($lng_rule)) { 252 252 if (!isset($rewrite_rules_array[$lng_rule . 'detail/([0-9]{1,3})-(.+?)/?$'])) { 253 253 $flush = true; … … 2170 2170 2171 2171 $vehicle = $wpdb->get_row($wpdb->prepare($sql.$sql_having, $id_fleet)); 2172 2173 2172 if (DEBUG_MODE) { 2174 2173 echo 'debug mode SQL: '; -
ecalypse-rental-starter/trunk/ecalypse-rental-starter.php
r2112759 r2138842 7 7 Plugin URI: http://ecalypse.com/wordpressecalypse-rental/ 8 8 Description: Ecalypse Rental Starter enables complete rental management of cars, bikes and other equipment. 9 Version: 4.0.1 59 Version: 4.0.16 10 10 Author: Ecalypse s.r.o. 11 11 Author URI: http://ecalypse.com/ … … 74 74 } else { 75 75 76 define('ECALYPSERENTALSTARTER_VERSION', '4.0.1 5');76 define('ECALYPSERENTALSTARTER_VERSION', '4.0.16'); 77 77 define('ECALYPSERENTALSTARTER__MINIMUM_WP_VERSION', '3.9'); 78 78 define('ECALYPSERENTALSTARTER__PLUGIN_URL', plugin_dir_url(__FILE__)); -
ecalypse-rental-starter/trunk/views/ecalypse-rental-booking.php
r2112759 r2138842 701 701 <form action="" method="post" class="form-inline" role="form"> 702 702 <div class="form-group"> 703 <?php wp_nonce_field( 'resend_email'); ?> 703 704 <input type="hidden" name="id_booking" value="<?= $val->id_booking ?>"> 704 705 <button name="resend_email" class="btn btn-xs btn-success"><?php _e('Resend current status email', 'ecalypse-rental');?></button>
Note: See TracChangeset
for help on using the changeset viewer.