} } //default values for parameters with a UI defaultConfig('ZF_LOGINTYPE', 'session'); defaultConfig('ZF_LOCALE', 'english'); defaultConfig('ZF_PUBDATEFORMAT', '%x, %X'); defaultConfig('ZF_DATEFORMAT', '%x'); defaultConfig('ZF_REFRESHMODE', 'automatic'); defaultConfig('ZF_NOFUTURE', 'no'); defaultConfig('ZF_ENCODING', 'UTF-8'); defaultConfig('ZF_DISPLAYERROR', 'no'); defaultConfig('ZF_TEMPLATE', 'flow2'); defaultConfig('ZF_HOMETAG', ''); defaultConfig('ZF_SORT', 'date'); defaultConfig('ZF_TRIMTYPE', 'days'); defaultConfig('ZF_TRIMSIZE', 3); require_once INITDIR . '/includes/controller.php'; require_once INITDIR . '/includes/Subscription.php'; require_once INITDIR . '/includes/Source.php'; require_once INITDIR . '/includes/NewsItem.php'; require_once INITDIR . '/includes/IngestableItem.php'; require_once INITDIR . '/includes/SourceProxy.php'; require_once INITDIR . '/includes/DBProxy.php'; require_once INITDIR . '/includes/aggregator.php'; require_once INITDIR . '/includes/feed_cache.php'; require_once INITDIR . '/includes/feed.php'; require_once INITDIR . '/includes/view.php'; require_once INITDIR . '/includes/subscriptionstorage.php'; require_once INITDIR . '/includes/template.php'; require_once INITDIR . '/lib/simplepie/autoloader.php'; require_once INITDIR . '/lib/humble-http-agent/HumbleHttpAgent.php';
deleteForum($cid, $option); break; case "orderup": orderForumUpDown($cid0, -1, $option); break; case "orderdown": orderForumUpDown($cid0, 1, $option); break; case "showconfig": showConfig($option); break; case "saveconfig": saveConfig($option); break; case "defaultconfig": defaultConfig($option); break; case "revertconfig": revertConfig($option); break; case "newmoderator": newModerator($option, $id); break; case "addmoderator": addModerator($option, $id, $cid, 1); break; case "removemoderator": addModerator($option, $id, $cid, 0); break; case "showprofiles": showProfiles($kunena_db, $option, $order);
if (!$this->enabled) { return; } if (file_exists($this->file) && is_writable($this->file) || is_writable(dirname($this->file))) { // We can write the cache lets get the buffer contents and write it. $fp = fopen($this->file, 'w'); fwrite($fp, $this->buffer . ob_get_contents()); fclose($fp); // Close the buffer and send the remaining contents to the browser ob_end_flush(); } } } // ------------------------------------------------- controler part of script // Get the default config $config = defaultConfig(); // Check first for genconfig before we try to parseConfig if ($argv[1] == 'genconfig') { genConfig(); exit; } // Parse the user's config $config = parseConfig($config['configfile'], $config); // Main Controler if ($_REQUEST['rss'] !== NULL or $argv[1] == 'rss') { // Run rss() // Create instance of cache class. $cache = new cache('rss.xml', $config); // Start the caching engine $cache->start(); // Do the actuall rss function