Пример #1
0
 function renderLogin()
 {
     $texts = $this->texts;
     $aurls = $this->actionUrls;
     $rurls = array();
     $url = new SimpleUrl();
     $this->context->setFlowScopeAttr("backUrl", $url->getGetUrl());
     $rurls["selfregform"] = new SimpleUrl();
     $rurls["selfregform"]->addParameter("userlogin-showregform", 1);
     $rurls["loginorreg"] = new SimpleUrl();
     $model = $this->context->getModel();
     include "./view/loginform.php";
 }
Пример #2
0
 function init()
 {
     $lang = $this->context->getRequestAttr("lang");
     if (!is_null($lang)) {
         $lang0 = strtolower(trim($lang));
         if ($lang0 == "base" || $lang0 == "0") {
             $this->context->setFlowScopeAttr("lang", null);
         } else {
             $this->context->setFlowScopeAttr("lang", $lang);
         }
     }
     $backUrl = new SimpleUrl();
     foreach ($_GET as $key => $value0) {
         if ("lang" != strtolower(trim($key))) {
             $value = $this->context->getRequestAttr($key);
             $backUrl->addParameter($key, $value);
         }
     }
     $this->context->setFlowScopeAttr("backUrl", $backUrl->getGetUrl());
 }