/**
  * 		This function is a singleton method used to instantiate the EEM_Attendee object
  *
  * 		@access public
  * 		@param string $timezone string representing the timezone we want to set for returned Date Time Strings (and any incoming timezone data that gets saved).  Note this just sends the timezone info to the date time model field objects.  Default is NULL (and will be assumed using the set timezone in the 'timezone_string' wp option)
  * 		@return EEM_System_Status
  */
 public static function instance()
 {
     // check if instance of EEM_System_Status already exists
     if (self::$_instance === NULL) {
         // instantiate EEM_System_Status
         self::$_instance = new self();
     }
     return self::$_instance;
 }
_e("Enter any comments about why you think the error may have occurred", "event_espresso");
?>
</textarea>
			<p class='description'><?php 
_e("Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.", "event_espresso");
?>
</p></td></tr>
		<tr><td colspan="2"><input type="submit" value="<?php 
_e("Mail Crash Report to Event Espresso", "event_espresso");
?>
"/></td></tr>
	</table>
</form>
<br>
<p><?php 
printf(__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"), '<a href="mailto:' . EE_SUPPORT_EMAIL . '">', EE_SUPPORT_EMAIL, "</a>");
?>
</p>
<textarea class="system_status_info"><?php 
print_r(EEM_System_Status::instance()->get_system_stati());
?>
</textarea>
<p><?php 
printf(__('%1$sNext Step%2$s', 'event_espresso'), "<a href='{$next_url}'>", "</a>");
?>
</p>
<p><?php 
printf(__('...or %1$sDON\'T send migration crash report%2$s.', 'event_espresso'), "<a href='{$next_url}'>", "</a>");
?>
</p>
 public function _send_migration_crash_report()
 {
     $from = $this->_req_data['from'];
     $from_name = $this->_req_data['from_name'];
     $body = $this->_req_data['body'];
     try {
         $success = wp_mail(EE_SUPPORT_EMAIL, 'Migration Crash Report', $body . "/r/n<br>" . print_r(EEM_System_Status::instance()->get_system_stati(), true), array("from:{$from_name}<{$from}>"));
     } catch (Exception $e) {
         $success = FALSE;
     }
     $this->_redirect_after_action($success, __("Migration Crash Report", "event_espresso"), __("sent", "event_espresso"), array('success' => $success, 'action' => 'confirm_migration_crash_report_sent'));
 }
 /**
  * Adds EE metadata to the index
  * @param \WP_REST_Response $rest_response_obj
  * @return \WP_REST_Response
  */
 public static function filter_ee_metadata_into_index(\WP_REST_Response $rest_response_obj)
 {
     $response_data = $rest_response_obj->get_data();
     $addons = array();
     foreach (\EE_Registry::instance()->addons as $addon) {
         $addon_json = array('name' => $addon->name(), 'version' => $addon->version());
         $addons[$addon_json['name']] = $addon_json;
     }
     $response_data['ee'] = array('version' => \EEM_System_Status::instance()->get_ee_version(), 'addons' => $addons, 'maintenance_mode' => \EE_Maintenance_Mode::instance()->real_level(), 'served_core_versions' => array_keys(\EED_Core_Rest_Api::versions_served()));
     $rest_response_obj->set_data($response_data);
     return $rest_response_obj;
 }
    //didnt send email properly
    ?>
	<h1><?php 
    _e("Migration Report not sent", "event_espresso");
    ?>
</h1>
	<p><?php 
    _e("Today's just not your day is it?", "event_espresso");
    ?>
</p>
	<p><?php 
    printf(__("...Tell you what, why don't you just copy-and-paste the below information to %s %s %s", "event_espresso"), '<a href="mailto:' . EE_SUPPORT_EMAIL . '">', EE_SUPPORT_EMAIL, "</a>");
    ?>
</p>
	<textarea class="system_status_info"><?php 
    echo EEM_System_Status::instance()->get_system_stati();
    ?>
</textarea>
<?php 
}
?>


<h1><?php 
_e("What's next?", 'event_espresso');
?>
</h1>
<p><?php 
_e("Well, it depends on your situation:", 'event_espresso');
?>
</p>