Example #1
0
 public function emailForgotLink($linkHash)
 {
     Trace::output($this->traceID, "emailForgotLink");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "emailForgotLink");
     $emailObj;
     //----------------------------------------------------------
     $smarty = Smarty::getSmarty();
     $smarty->assign('forgot_url', Account_v0::$forgot_url);
     $smarty->assign('linkHash', $linkHash);
     $message = $smarty->fetch('forgot.tpl');
     //----------------------------------------------------------
     $emailObj = array("emailTo" => $this->email, "nameFrom" => Constants::$name, "emailFrom" => Constants::$email, "message" => $message, "subject" => "account registration");
     //----------------------------------------------------------
     $chk = $chk["bool"] ? SendEmail_v0::go($emailObj) : $chk;
     //----------------------------------------------------------
     return $chk;
 }
Example #2
0
<!DOCTYPE html>
<html> 
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <title>Smarty Test</title>
   <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"> 
</head>
<body>
<div id = "main">
<?php 
//------------------------------------------------------------------------
require_once Import::$uber_src_path . "/server/Smarty-3.1.8/libs/Smarty.class.php";
//------------------------------------------------------------------------
$smarty = Smarty::getSmarty();
$smarty->assign('txt', "hey");
$smarty->display('test.tpl');
?>
<!--===================================================================-->
</div>
</body>
</html>