public function __construct($_err_no, $_friendly_err_message, $_technical_err_message = null, $_level = IIRS_MESSAGE_USER_INFORMATION, $_user_action = null, $_args = null)
 {
     global $IIRS_is_live_domain, $IIRS_user_agent, $IIRS_host_domain, $IIRS_user_ip;
     $this->err_no = $_err_no;
     $this->friendly_err_message = $_friendly_err_message;
     $this->technical_err_message = $_technical_err_message;
     $this->level = $_level;
     $this->user_action = $_user_action;
     $this->args = $_args;
     if ($this->level > IIRS_MESSAGE_USER_INFORMATION && function_exists('IIRS_0_error_log')) {
         IIRS_0_error_log($this);
     }
     if (($IIRS_is_live_domain || IIRS_0_debug()) && IIRS_ADMIN_ERROR_EMAILS && $this->level > IIRS_MESSAGE_USER_WARNING) {
         $body = "<h1>IIRS_Error</h1>";
         $body .= "<ul>";
         // -------------------------- basic info
         $body .= "<li>{$this->err_no}</li>";
         $body .= "<li>{$this->friendly_err_message}</li>";
         $body .= "<li>{$this->technical_err_message}</li>";
         $body .= "<li>{$this->level}</li>";
         $body .= "<li>{$this->user_action}</li>";
         // -------------------------- context info
         $body .= "<li>User Agent: {$IIRS_user_agent}</li>";
         $body .= "<li>Host Domain: {$IIRS_host_domain}</li>";
         $body .= "<li>CLient IP: {$IIRS_user_ip}</li>";
         if (IIRS_0_debug()) {
             $body .= "<li>WP_DEBUG is on so this email goes to annesley_newholm@yahoo.it</li>";
         }
         $body .= "</ul>";
         // -------------------------- extensible args
         if ($this->args && is_array($this->args)) {
             $body .= "<ul>";
             foreach ($this->args as $arg) {
                 ob_start();
                 // PHP 4,5
                 var_dump($arg);
                 $body .= "<li>" . ob_get_contents() . "</li>";
                 ob_end_clean();
             }
             $body .= "</ul>";
         }
         // -------------------------- send emails to admin(s)
         // $subject = $this->__toString()
         if (function_exists('IIRS_0_send_email')) {
             //email to developer team at TN
             if (IIRS_0_debug()) {
                 $email_address = 'annesley_newholm@yahoo.it';
             } else {
                 $email_address = IIRS_EMAIL_TEAM_EMAIL;
             }
             IIRS_0_send_email($email_address, $this, $body);
             //additional email to local plugin administrator
             if ($email_address = IIRS_0_setting('additional_error_notification_email')) {
                 IIRS_0_send_email($email_address, $this, $body);
             }
         }
     }
 }
            $subject = IIRS_0_registration_email_subject();
            $body = IIRS_0_registration_email_html($name, $pass);
            //user email
            IIRS_0_debug_print("Email user registration [{$body}]");
            $email_ok = IIRS_0_send_email($email, $subject, $body);
            if (IIRS_is_error($email_ok)) {
                IIRS_0_debug_print("email failed to send [{$email_ok}]");
            }
            //admin registration alert email
            if ($admin_email_address = IIRS_0_setting('registration_notification_email')) {
                $admin_subject = IIRS_0_translation('[IIRS admin notice] new Transition account registered');
                if (IIRS_0_debug()) {
                    $admin_email_address = 'annesley_newholm@yahoo.it';
                }
                IIRS_0_debug_print("Email administration of user registration");
                $email_ok = IIRS_0_send_email($admin_email_address, $admin_subject, $body);
                if (IIRS_is_error($email_ok)) {
                    IIRS_0_debug_print("administration registration heads up email failed to send [{$email_ok}]");
                }
            }
        }
    }
}
if (!$TI_save_error) {
    //------------------------------------- debug
    IIRS_0_debug_print("details:");
    IIRS_0_debug_print("  native_user_ID:{$native_user_ID} (don't forget that all emails on dev point to annesley newholms yahoo email address)");
    IIRS_0_debug_print("  native_ti_ID:{$native_ti_ID}");
    //------------------------------------- get some nice domain names for this town
    $domains_found = false;
    $domain_part = $location_is_example ? 'bedford' : $town_name;