Beispiel #1
0
 public function store(&$data)
 {
     $userhelper = new rsUserhelper();
     $captcha = $userhelper->checkCaptcha($data);
     if (!$captcha) {
         return false;
     }
     $joomlauser = $userhelper->createJoomlaUser($data, 1);
     if (!$joomlauser) {
         return false;
     }
     $data['billisship'] = 1;
     $reduser = $userhelper->storeRedshopUser($data, $joomlauser->id);
     return $reduser;
 }
 public function storeUser($post)
 {
     $userhelper = new rsUserhelper();
     $shipping = isset($post["shipping"]) ? true : false;
     $post['createaccount'] = isset($post['username']) && $post['username'] != "" ? 1 : 0;
     $post['user_email'] = $post['email1'] = $post['email'];
     $post['billisship'] = 1;
     if ($post['createaccount']) {
         $joomlauser = $userhelper->createJoomlaUser($post);
     } else {
         $joomlauser = $userhelper->updateJoomlaUser($post);
     }
     if (!$joomlauser) {
         return false;
     }
     $reduser = $userhelper->storeRedshopUser($post, $joomlauser->id, 1);
     return $reduser;
 }