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();
 }