Ejemplo n.º 1
0
function gorumMain()
{
    global $gorumroll;
    $init = Init::createObject();
    $init->initializeSystemSettings();
    $gorumroll->processMethod();
    if (!$gorumroll->isAction()) {
        $init->getTemplate();
        $init->showApp();
    }
}
Ejemplo n.º 2
0
 function lowLevelLogin()
 {
     global $gorumuser, $gorumroll;
     if ($firstLogin = strstr($gorumroll->rollid, "---")) {
         list($this->name, $this->password) = explode("---", $gorumroll->rollid);
         $this->name = urldecode($this->name);
         $this->password = urldecode($this->password);
     } elseif (!$this->validateCaptcha()) {
         return FALSE;
     }
     if (!$this->validLogin()) {
         return FALSE;
     }
     // A regi usert es azokat a dolgokat, amiket o hozott letre,
     // de mar nem kellenek toroljuk:
     if ($gorumuser->name == $gorumuser->id && $this->id != $gorumuser->id) {
         delete($gorumuser);
     }
     $this->setCookies();
     authenticate(TRUE);
     // Reauthenticate:
     Roll::setInfoText("greeting", htmlspecialchars($gorumuser->name));
     // az uj userhez rogton az uj settingek is kellenek:
     $init = Init::createObject();
     $init->initializeUserSettings();
     $this->updateUserAfterLogin();
     $this->redirectAfterLogin();
     return TRUE;
 }