page; $old = clone($this); // this shold not really happen... if($target->get('email', $this->email)){ return false; } $target->setFrom($this->toArray()); $target->insert(); $this->person_id = $target->id; $this->person_table = $target->tableName(); $this->update($old); if(!empty($this->inviter_id) && method_exists($target, 'createFriend')){ $target->createFriend($this->inviter_id); } return $target; } function sendVerification($template, $roo) { $admin = array(); $group = DB_DataObject::factory('groups'); if($group->get('name', 'core-person-signup-bcc')){ $member = DB_DataObject::factory('group_members'); $member->group_id = $group->id; $mids = $member->fetchAll('user_id'); $p = DB_DataObject::factory('Person'); $p->whereAddIn('id', $mids, 'int'); $admin = $p->fetchAll('email'); } if(empty($admin)){ $roo->jerr("Please contact our administrators - system setting problem"); } $content = array( 'template' => $template, 'person' => $this, 'bcc' => $admin, 'serverName' => $_SERVER['SERVER_NAME'], 'baseURL' => $roo->baseURL ); print_R($content);exit; $sent = DB_DataObject::factory('core_email')->send($content); print_R($sent);exit; if(!is_object($sent)){ return true; } return $sent; } function getEmailFrom() { if (empty($this->name)) { return $this->email; } return '"' . addslashes($this->name) . '" <' . $this->email . '>'; } }