function BlogProfileAction($actionInfo, $request)
 {
     $this->SummaryAction($actionInfo, $request);
     // data validation
     $this->registerFieldValidator("blogId", new IntegerValidator());
     $view = new SummaryView("error");
     $view->setValue("message", $this->_locale->tr("error_incorrect_blog_id"));
     $this->setValidationErrorView($view);
 }
 function SummaryUpdatePassword($actionInfo, $request)
 {
     $this->SummaryAction($actionInfo, $request);
     $this->registerFieldValidator("a", new StringValidator());
     $this->registerFieldValidator("b", new StringValidator());
     $this->registerFieldValidator("newPassword", new PasswordValidator());
     $this->registerFieldValidator("retypePassword", new PasswordValidator());
     $this->registerFieldValidator("userId", new IntegerValidator());
     $view = new SummaryView("changepassword");
     $view->setErrorMessage($this->_locale->tr("error_updating_password"));
     $this->setValidationErrorView($view);
 }
 function render()
 {
     // get a list with all the templates so that users can choose
     $sets = new TemplateSets();
     $templates = $sets->getGlobalTemplateSets();
     $this->setValue("templates", $templates);
     // and render the rest of the contents of the view
     parent::render();
 }
 function render()
 {
     // get the list of languages available, so that users can choose
     $locales = Locales::getLocales();
     $this->setValue("locales", $locales);
     $config =& Config::getConfig();
     // assign default Local to template
     $this->setValue("defaultLocale", $config->getValue("default_locale"));
     // and render the rest of the contents of the view
     parent::render();
 }
 function render()
 {
     $config =& Config::getConfig();
     // check whether we should also display one of those authentication images
     if ($config->getValue("use_captcha_auth")) {
         // generate a file with the captcha class
         include_once PLOG_CLASS_PATH . "class/data/captcha/captcha.class.php";
         $captcha = new Captcha();
         $captchaFile = $captcha->generate();
         // and then build a full url based on it...
         $url = $config->getValue("base_url") . "/" . $captchaFile;
         $this->setValue("userAuthImgPath", $url);
         $this->setValue("useCaptchaAuth", true);
     } else {
         $this->setValue("useCaptchaAuth", false);
     }
     parent::render();
 }