Example #1
0
 private function _getCancelUrl()
 {
     $rtn = WeFlex_Util::GetFullUrl(array('action' => 'cancel-paypal-express', 'controller' => 'pay'), "default");
     return $rtn;
 }
Example #2
0
 public function findPassword($email)
 {
     $userInfo = $this->_getByEmail($email);
     $code = md5(time());
     $this->_model->update(array("findpassword_code" => $code, "findpassword_code_used" => intval(false)), array("id" => $userInfo["id"]));
     $title = "TCVM User FindPassword";
     $url = WeFlex_Util::GetFullUrl(array("controller" => "user", "action" => "change-password", "code" => $code), "default");
     $html = '';
     $html .= "****************************************************<br/>";
     $html .= "****************************************************<br/>";
     $html .= "Dear " . $userInfo["first_name"] . ",<br/><br/>";
     $html .= "Here you can change your password.<br/><br/>";
     $html .= '<p><a href="' . $url . '">' . $url . '</a></p><br/><br/>';
     $html .= 'TCVM Team<br/>';
     $headers = "MIME-Version: 1.0" . "\r\n";
     $headers .= "Content-type:text/html;charset=utf-8" . "\r\n";
     $headers .= 'From: admin@tcvm.com.au' . "\r\n" . 'Reply-To: admin@tcvm.com.au' . "\r\n";
     @mail($email, $title, $html, $headers);
 }