function render() { $polls = new PlogPollPolls(); $allpolls = $polls->getAllPolls($this->_blogInfo->getId()); $this->setValue("polls", $allpolls); parent::render(); }
function render() { // load some configuration settings $config =& Config::getConfig(); $mailServer = $config->getValue("plugin_moblog_mailserver"); $port = $config->getValue("plugin_moblog_port"); if ($port == "") { $port = "110"; } $userName = $config->getValue("plugin_moblog_username"); $password = $config->getValue("plugin_moblog_password"); $pseudoBatch = $config->getValue("plugin_moblog_pseudobatch"); if ($pseudoBatch == "") { $pseudoBatch = "Off"; } $lastUpdate = $config->getValue("plugin_moblog_lastupdate"); // create a view and export the settings to the template $this->setValue("mailServer", $mailServer); $this->setValue("port", $port); $this->setValue("userName", $userName); $this->setValue("password", $password); $this->setValue("pseudoBatch", $pseudoBatch); $this->setValue("lastUpdate", $lastUpdate); parent::render(); }
function render() { $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_authimage_enabled"); $length = $blogSettings->getValue("plugin_authimage_length"); if ($length == "") { $length = 6; } $key = $blogSettings->getValue("plugin_authimage_key"); if ($key == "") { $key = "pLog"; } $expiredTime = $blogSettings->getValue("plugin_authimage_expiredtime"); if ($expiredTime == "") { $expiredTime = 3600; } $default = $blogSettings->getValue("plugin_authimage_default"); if ($default == "") { $default = "marble.gif"; } $backgrounds = AuthImage::scanBackgoundImages(); // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("length", $length); $this->setValue("key", $key); $this->setValue("expiredTime", $expiredTime); $this->setValue("default", $default); $this->setValue("backgrounds", $backgrounds); parent::render(); }
function render() { // get the current page $this->_page = $this->getCurrentPageFromRequest(); $this->_status = $this->getStatusFromRequest(); $this->_dest = $this->_getDestination(); // get the users of the blog $users = new Users(); $siteUsers = $users->getAllUsers($this->_status, true, $this->_page, DEFAULT_ITEMS_PER_PAGE); $numUsers = $users->getNumUsers($this->_status); // in case of problems, empty array... if (!$siteUsers) { $siteUsers = array(); } // notify the event $this->notifyEvent(EVENT_USERS_LOADED, array("users" => &$blogUsers)); // calculate the links to the different pages $pager = new Pager("?op=mailcentreUserSelector&&dest=" . $this->_dest . "&status=" . $this->_status . "&page=", $this->_page, $numUsers, DEFAULT_ITEMS_PER_PAGE); // and generate the view $this->setValue("siteusers", $siteUsers); $this->setValue("userstatus", UserStatus::getStatusList(true)); $this->setValue("pager", $pager); $this->setValue("currentstatus", $this->_status); $this->setValue("dest", $this->_dest); parent::render(); }
function render() { // load all the mail messages sent so far $messages = new MailMessages(); $allMessages = $messages->getMessages(); $this->setValue("messages", $allMessages); parent::render(); }
function render() { // load some configuration settings $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_secret_enabled"); // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); parent::render(); }
function render() { $ts = new TemplateSets(); // get a list with all the site template sets $globalTemplateSets = $ts->getGlobalTemplateSets(); // get a list with all the blog template sets $blogTemplateSets = $ts->getBlogTemplateSets($this->_blogInfo->getId(), false); $this->setValue("globalTemplateSets", $globalTemplateSets); $this->setValue("blogTemplateSets", $blogTemplateSets); parent::render(); }
function render() { // load some configuration settings $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_sitemap_enabled"); $notifyGoogle = $blogSettings->getValue("plugin_sitemap_notify_google_enabled"); // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("notifyGoogleEnabled", $notifyGoogle); parent::render(); }
function render() { // get a list with all the global template sets $ts = new TemplateSets(); $globalTemplates = $ts->getGlobalTemplateSets(); // Add rss & summary templateset to beginning of templatesets $rssTemplate =& new TemplateSet("rss", TEMPLATE_SET_GLOBAL, 0); $summaryTemplate =& new TemplateSet("summary", TEMPLATE_SET_GLOBAL, 0); array_unshift($globalTemplates, $rssTemplate, $summaryTemplate); $this->setValue("templates", $globalTemplates); parent::render(); }
function render() { $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_contentfilter_enabled"); $this->setValue("pluginEnabled", $pluginEnabled); if (!$pluginEnabled) { $locale = $this->_blogInfo->getLocale(); $text = $locale->tr("error_contentfilter_not_enabled"); $this->setErrorMessage($text); } // get the content that has been filtered by this blog parent::render(); }
function render() { // load some configuration settings $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_toptrackbackposts_enabled"); $maxPosts = $blogSettings->getValue("plugin_toptrackbackposts_maxposts"); if ($maxPosts == "") { $maxPosts = 10; } // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("maxPosts", $maxPosts); parent::render(); }
function render() { $config =& Config::getConfig(); $maxBackupFiles = $config->getValue("plugin_templateeditor_maxbackupfiles"); if ($maxBackupFiles == "") { $maxBackupFiles = 5; } // get a list with all the specific template files $ts = new TemplateSetStorage(); $blogId = $this->_blogInfo->getId(); $templateFolder = $ts->getTemplateFolder($this->_templateId); $templateFolder = $templateFolder . $this->_subFolderId . "/"; $backupFolder = $templateFolder . "backups/"; if (!File::exists($backupFolder)) { File::createDir($backupFolder); } if (!$this->_backupId) { $filename = $templateFolder . $this->_fileId; } else { $filename = $backupFolder . $this->_fileId . "_" . $this->_backupId; } $backupFilePattern = $this->_fileId . "_*"; $bakFiles = Glob::myGlob($backupFolder, $backupFilePattern); sort($bakFiles); $backupFiles = array(); $backupFileCount = 0; for ($i = count($bakFiles) - 1; $i >= 0; $i--) { $bakFile = $bakFiles[$i]; if ($backupFileCount < $maxBackupFiles) { $bakElements = explode("_", $bakFile); $bakId = $bakElements[count($bakElements) - 1]; $bakTime = strftime("%Y/%m/%d - %H:%M:%S", $bakId); $file['time'] = $bakTime; $file['backupId'] = basename($bakId); array_push($backupFiles, $file); $backupFileCount++; } else { File::delete($bakFile); } } $file = new MyFile($filename); $fileContent = $file->readFileContent(); $this->setValue("backupId", $this->_backupId); $this->setValue("backupFiles", $backupFiles); $this->setValue("currentTemplate", $this->_templateId); $this->setValue("currentSubFolder", $this->_subFolderId); $this->setValue("currentFile", $this->_fileId); $this->setValue("fileContent", $fileContent); parent::render(); }
function render() { $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_contentfilter_enabled"); $contents = new FilteredContents(); $filteredContent = $contents->getBlogFilteredContent($this->_contentId, $this->_blogInfo->getId()); $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("filteredcontent", $filteredContent); if (!$pluginEnabled) { $locale = $this->_blogInfo->getLocale(); $text = $locale->tr("error_contentfilter_not_enabled"); $this->setErrorMessage($text); } parent::render(); }
function render() { $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_hostblock_enabled"); // get the content that has been filtered by this blog $blockedHosts = new BlockedHosts(); $hostsBlockedFromPosting = $blockedHosts->getBlogBlacklist($this->_blogInfo->getId(), BLOCK_COMMENT_POSTING); $hostsBlocked = $blockedHosts->getBlogBlacklist($this->_blogInfo->getId(), BLOCK_ACCESS); $blogBlockedHosts = array_merge($hostsBlockedFromPosting, $hostsBlocked); $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("blockedhosts", $blogBlockedHosts); if (!$pluginEnabled) { $locale = $this->_blogInfo->getLocale(); $text = $locale->tr("error_hostblock_not_enabled"); $this->setErrorMessage($text); } parent::render(); }
function render() { // get a list with all the global template sets $ts = new TemplateSets(); $blogTemplateSets = $ts->getBlogTemplateSets($this->_blogInfo->getId(), false); // get a list with all the specific template files $ts = new TemplateSetStorage(); $blogId = $this->_blogInfo->getId(); $templateFolder = $ts->getTemplateFolder($this->_templateId, $blogId); $templateFolder = $templateFolder . $this->_subFolderId; // Get template files according extension $templateFiles = $this->getTemplateFiles($templateFolder); $this->setValue("currentTemplate", $this->_templateId); $this->setValue("currentSubFolder", $this->_subFolderId); $this->setValue("templateSets", $blogTemplateSets); $this->setValue("templateFiles", $templateFiles); parent::render(); }
function render() { $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_articlereferers_enabled"); $sortByField = $blogSettings->getValue("plugin_articlereferers_sortbyfield"); if ($sortByField == "") { $sortByField = 1; } $maxReferers = $blogSettings->getValue("plugin_articlereferers_maxreferers"); if ($maxReferers == "") { $maxReferers = 10; } // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("sortByField", $sortByField); $this->setValue("maxReferers", $maxReferers); parent::render(); }
function render() { // load some configuration settings $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_moderate_enabled"); // fetch the comments that have not been moderated yet $comments = new UnmoderatedComments(); $unmoderatedComments = $comments->getUnmoderatedComments($this->_blogInfo->getId()); // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("comments", $unmoderatedComments); if (!$pluginEnabled) { $locale = $this->_blogInfo->getLocale(); $text = $locale->tr("error_moderate_not_enabled"); $this->setErrorMessage($text); } parent::render(); }
function render() { // load some configuration settings $config =& Config::getConfig(); $pluginEnabled = $config->getValue("plugin_templateeditor_enabled"); $maxBackupFiles = $config->getValue("plugin_templateeditor_maxbackupfiles"); if ($maxBackupFiles == "") { $maxBackupFiles = 5; } $allowedExtension = $config->getValue("plugin_templateeditor_allowedextension"); if ($allowedExtension == "") { $allowedExtension = "css,inc,template,txt"; } // create a view and export the settings to the template $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("maxBackupFiles", $maxBackupFiles); $this->setValue("allowedExtension", $allowedExtension); parent::render(); }
function render() { $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_hostblock_enabled"); $blockedHosts = new BlockedHosts(); $blockedHost = $blockedHosts->getBlockedHost($this->_hostId, $this->_blogInfo->getId()); $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("blockedhost", $blockedHost); // to make things easier in the template, let's do the following: $ipParts = explode(".", $blockedHost->getHost()); $this->setValue("ip1", $ipParts[0]); $this->setValue("ip2", $ipParts[1]); $this->setValue("ip3", $ipParts[2]); $this->setValue("ip4", $ipParts[3]); if (!$pluginEnabled) { $locale = $this->_blogInfo->getLocale(); $text = $locale->tr("error_hostblock_not_enabled"); $this->setErrorMessage($text); } parent::render(); }
function render() { // get a list with all the global template sets $ts = new TemplateSets(); $globalTemplates = $ts->getGlobalTemplateSets(); // Add rss & summary templateset to beginning of templatesets $rssTemplate =& new TemplateSet("rss", TEMPLATE_SET_GLOBAL, 0); $summaryTemplate =& new TemplateSet("summary", TEMPLATE_SET_GLOBAL, 0); array_unshift($globalTemplates, $rssTemplate, $summaryTemplate); // get a list with all the specific template files $ts = new TemplateSetStorage(); $blogId = $this->_blogInfo->getId(); $templateFolder = $ts->getTemplateFolder($this->_templateId); $templateFolder = $templateFolder . $this->_subFolderId; // Get template files according extension $templateFiles = $this->getTemplateFiles($templateFolder); $this->setValue("currentTemplate", $this->_templateId); $this->setValue("currentSubFolder", $this->_subFolderId); $this->setValue("templateSets", $globalTemplates); $this->setValue("templateFiles", $templateFiles); parent::render(); }
function render() { // fetch the current settings $blogSettings = $this->_blogInfo->getSettings(); $pluginEnabled = $blogSettings->getValue("plugin_moblog_enabled"); $categoryId = $blogSettings->getValue("plugin_moblog_article_category_id"); $albumId = $blogSettings->getValue("plugin_moblog_gallery_resource_album_id"); $resourcePreviewType = $blogSettings->getValue("plugin_moblog_resource_preview_type"); // fetch all the current article categories $categories = new ArticleCategories(); $blogCategories = $categories->getBlogCategories($this->_blogInfo->getId()); // fetch all the current gallery albums $albums = new GalleryAlbums(); $blogAlbums = $albums->getUserAlbums($this->_blogInfo->getId()); // finally pass all these things to the templates $this->setValue("pluginEnabled", $pluginEnabled); $this->setValue("categoryId", $categoryId); $this->setValue("albumId", $albumId); $this->setValue("albums", $blogAlbums); $this->setValue("categories", $blogCategories); $this->setValue("resourcePreviewType", $resourcePreviewType); parent::render(); }
function render() { $this->setValue("editable", $this->_editable); parent::render(); }
function render() { parent::render(); }