Changeset 2769404
- Timestamp:
- 08/11/2022 03:16:34 PM (3 years ago)
- Location:
- emergencywp/trunk
- Files:
-
- 5 edited
-
ajax/loadSystemEmail.php (modified) (2 diffs)
-
cron/cron_config.php (modified) (1 diff)
-
cron/jobController.php (modified) (3 diffs)
-
emergencywp.php (modified) (2 diffs)
-
pages/emergencywp/setting_tabs/email_logs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
emergencywp/trunk/ajax/loadSystemEmail.php
r2639152 r2769404 1 1 <?php 2 3 require_once("../../../../wp-load.php"); 2 4 require_once "../cron/cron_config.php"; 3 5 4 $email = sanitize_text_field(get_post(intval($_GET['pid'])));6 $email = get_post(intval($_GET['pid'])); 5 7 6 8 $content = html_entity_decode($email->post_content); … … 9 11 <div class="modal-header" rel="2"> 10 12 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 11 <h4 class="modal-title" id="myModalLabel"><?php echo esc_html($email->post_title); ?></h4>13 <h4 class="modal-title" id="myModalLabel"><?php echo $email->post_title; ?></h4> 12 14 </div> 13 15 <div class="modal-body" rel="2"> 14 <?php echo esc_html_e($content); ?>16 <?php echo $content; ?> 15 17 </div> 16 18 <div class="modal-footer"> -
emergencywp/trunk/cron/cron_config.php
r2639152 r2769404 1 1 <?php 2 2 3 if( !defined('EMERGENCY_WP_PLUGIN_URL') ) define( 'EMERGENCY_WP_PLUGIN_URL', str_replace( ' cron/', '', plugin_dir_url( __FILE__ ) ) );4 if( !defined('EMERGENCY_WP_PLUGIN_DIR') ) define( 'EMERGENCY_WP_PLUGIN_DIR', str_replace( ' cron/', '', plugin_dir_path( __FILE__ ) ) );3 if( !defined('EMERGENCY_WP_PLUGIN_URL') ) define( 'EMERGENCY_WP_PLUGIN_URL', str_replace( '/cron', '/', dirname( __FILE__ ) ) ); 4 if( !defined('EMERGENCY_WP_PLUGIN_DIR') ) define( 'EMERGENCY_WP_PLUGIN_DIR', str_replace( '/cron', '/', dirname( __FILE__ ) ) ); 5 5 6 6 require_once EMERGENCY_WP_PLUGIN_DIR . 'lib/class.emergencyWPConfig.php'; -
emergencywp/trunk/cron/jobController.php
r2639152 r2769404 1 1 <?php 2 require_once("./wp-load.php"); 3 4 if( !defined('EMERGENCY_WP_PLUGIN_URL') ) define( 'EMERGENCY_WP_PLUGIN_URL', str_replace( '/cron', '/', dirname( __FILE__ ) ) ); 5 if( !defined('EMERGENCY_WP_PLUGIN_DIR') ) define( 'EMERGENCY_WP_PLUGIN_DIR', str_replace( '/cron', '/', dirname( __FILE__ ) ) ); 6 require_once EMERGENCY_WP_PLUGIN_DIR ."main.functions.php"; 7 2 8 $debugMode = 1; 3 9 $secret = emergencywp_option('cron_secret', '', true); … … 221 227 $trustees_email_verification_date = new DateTime($trusty['postMeta']['emergencywp_trustees_approved']); 222 228 if (is_object($trustees_email_verification_date)) { 223 if ($trustees_email_verification_date->getTimestamp() <= time() - $jobSettings['trustees_email_verification_interval']) {229 if ($trustees_email_verification_date->getTimestamp() + $jobSettings['trustees_email_verification_interval'] <= time() ) { 224 230 //Trustee send confirmation email 225 231 $hasEmailConfirmationSent = get_post_meta($trusty['post']->ID, 'emergencywp_trustees_confirm_email_sent'); 226 232 if($hasEmailConfirmationSent == false) { 227 233 update_post_meta($trusty['post']->ID, 'emergencywp_trustees_confirm_email_sent', date('Y-m-d H:i:s', time())); 234 //EmergencyWPTrusteesSystemEmails::setEmail($trustees_email_verification_date); 228 235 EmergencyWPTrusteesSystemEmails::verifyTrusteeEmailLink($trusty['post']->ID); 229 236 } else { … … 243 250 } 244 251 } 252 245 253 if(isset($trusty['postMeta']['emergencywp_trustees_confirm_email_sent'])) { 246 254 $trustees_email_verification_date = new DateTime($trusty['postMeta']['emergencywp_trustees_confirm_email_sent']); 247 255 if (is_object($trustees_email_verification_date)) { 248 if ($trustees_email_verification_date->getTimestamp() <= time() - $jobSettings['live_status_finalHoldB_reactionTimeTrustees']) {256 if ($trustees_email_verification_date->getTimestamp() + $jobSettings['live_status_finalHoldB_reactionTimeTrustees'] <= time() ) { 249 257 //Trustee didn't confirm his email 250 258 $hasEmailNotificationSent = get_post_meta($trusty['post']->ID, 'emergencywp_trustees_email_changed_notification_sent'); 259 //$hasEmailConfirmationSent = false; 251 260 if($hasEmailNotificationSent == false) { 252 261 update_post_meta($trusty['post']->ID, 'emergencywp_trustees_email_changed_notification_sent', date('Y-m-d H:i:s', time())); 253 EmergencyWPTrusteesSystemEmails::notify TrusteeEmailChanged($trusty['post']->ID);262 EmergencyWPTrusteesSystemEmails::notifyMandatoryAboutPossibleTrusteeEmailChanged($trusty['post']->ID); 254 263 }else { 255 264 echo "<pre>"; -
emergencywp/trunk/emergencywp.php
r2643491 r2769404 4 4 Plugin URI: https://emergencyWP.net/ 5 5 Description: EmergencyWP helps you plan processes for the case of personal emergencies right from your WordPress Dashboard. Pass over information to coworkers or clients automatically if you can't do it manually anymore (e.g. accidants, death, etc.). Plan life checks, setup contacts and messages and more. See our addons for more functionalities. 6 Version: 1.3. 86 Version: 1.3.10 7 7 Author: EmergencyWP Team, Albert Brückmann 8 8 Author URI: https://emergencywp.net/ … … 15 15 define('EMERGENCY_WP_PLUGIN_PATH', 'emergencywp/emergencywp.php'); 16 16 define('EMERGENCY_WP_PLUGIN_NAME', 'emergencywp'); 17 define('EMERGENCY_WP_VERSION', '1.3. 8');17 define('EMERGENCY_WP_VERSION', '1.3.10'); 18 18 define('EMERGENCY_WP_PLUGIN_URL', plugin_dir_url(__FILE__)); 19 19 define('EMERGENCY_WP_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
emergencywp/trunk/pages/emergencywp/setting_tabs/email_logs.php
r2639152 r2769404 79 79 case 'live_status_hold_b': 80 80 case 'emergency_user_email': 81 case 'trustee_email_change': 81 82 // Mandator emails 82 83 $mandatorData = emergencyWPAdmin::getMandatorData(get_current_blog_id());
Note: See TracChangeset
for help on using the changeset viewer.