@@ 542-550 (lines=9) @@ | ||
539 | EE_Session::hash_check_prefix . $this->_sid, |
|
540 | false |
|
541 | ); |
|
542 | if ($hash_check && $hash_check !== md5($session_data)) { |
|
543 | EE_Error::add_error( |
|
544 | sprintf( |
|
545 | __( |
|
546 | 'The stored data for session %1$s failed to pass a hash check and therefore appears to be invalid.', |
|
547 | 'event_espresso' |
|
548 | ), |
|
549 | EE_Session::session_id_prefix . $this->_sid |
|
550 | ), |
|
551 | __FILE__, __FUNCTION__, __LINE__ |
|
552 | ); |
|
553 | } |
@@ 1127-1131 (lines=5) @@ | ||
1124 | //let's see if we can get that file... if not its possible this is a decaf route not set in caffienated so lets try and get the caffeinated equivalent |
|
1125 | $file_path = ! is_readable($file_path) ? EE_ADMIN_PAGES . basename($this->_get_dir()) . '/help_tours/' . $tour . '.class.php' : $file_path; |
|
1126 | //if file is STILL not readable then let's do a EE_Error so its more graceful than a fatal error. |
|
1127 | if ( ! is_readable($file_path)) { |
|
1128 | EE_Error::add_error(sprintf(__('The file path given for the help tour (%s) is not a valid path. Please check that the string you set for the help tour on this route (%s) is the correct spelling', 'event_espresso'), |
|
1129 | $file_path, $tour), __FILE__, __FUNCTION__, __LINE__); |
|
1130 | return; |
|
1131 | } |
|
1132 | require_once $file_path; |
|
1133 | if ( ! class_exists($tour)) { |
|
1134 | $error_msg[] = sprintf(__('Something went wrong with loading the %s Help Tour Class.', 'event_espresso'), $tour); |