DataObjects/Core_person_signup.php
[Pman.Core] / DataObjects / Core_person_signup.php
index 741c989..7b3d7e0 100644 (file)
@@ -14,11 +14,11 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
     public $id;                              // int(11)  not_null primary_key auto_increment
     public $email;                           // string(128)  not_null
     
-    //public $name;                            // string(128)  not_null
+    public $name;                            // string(128)  not_null
     public $firstname;                            // string(128)  not_null
     public $lastname;                            // string(128)  not_null
-    //public $firstname_alt;                            // string(128)  not_null
-    //public $lastname_alt;                            // string(128)  not_null
+    public $firstname_alt;                            // string(128)  not_null
+    public $lastname_alt;                            // string(128)  not_null
     
     
     public $honor;                            // string(128)  not_null
@@ -39,6 +39,8 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
         // and delete....
         //$this->whereAdd("verify_key = '".$key."'");
         if(!$this->get("verify_key",$key)){
+            var_dump($this);
+            exit();
             $p = DB_DataObject::factory('person');
             $p->honor = $this->honor;
             $p->name = $this->name;
@@ -70,6 +72,9 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
                 $email_sender = "no-reply@roojs.com";
                 $subject = "Congratulations";
                 $recipient_email = $p->email;
+
+                var_dump($p->email);
+                exit();
  
                 $headers  = "MIME-Version: 1.0\r\n";
                 $headers .= "Content-type: text/html; charset=utf-8\r\n";
@@ -79,7 +84,7 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
                 $headers .= ">\r\n";
 
                 $body = $htmlStr;
-                if(mail($recipient_email, $subject, $body, $headers)){
+                if(!mail($recipient_email, $subject, $body, $headers)){
                     error_log("Sending failed.");
                 }
             }else{