Changeset 1581
- Timestamp:
- 09/14/06 21:30:34 (2 years ago)
- Location:
- trunk/gregarius
- Files:
-
- 3 modified
-
cls/nav.php (modified) (1 diff)
-
schema.php (modified) (1 diff)
-
update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/cls/nav.php
r1561 r1581 61 61 62 62 $this->appendNavItem(getPath(),__('<span>H</span>ome'),LOCATION_HOME); 63 $this->appendNavItem(getPath().'update.php',__('<span>R</span>efresh'),LOCATION_UPDATE); 63 if (!getConfig("rss.config.restrictrefresh")) { 64 $this->appendNavItem(getPath().'update.php',__('<span>R</span>efresh'),LOCATION_UPDATE); 65 } 64 66 $this->appendNavItem(getPath().'search.php',__('<span>S</span>earch'),LOCATION_SEARCH); 65 67 $this->appendNavItem(getPath().'admin/',__('A<span>d</span>min'),LOCATION_ADMIN); -
trunk/gregarius/schema.php
r1580 r1581 476 476 "rss.config.defaultdashboard" => array('true','true','boolean','If the first page seen when entering the admin section should be the dashboard',NULL), 477 477 "rss.config.deadthreshhold" => array('24', '24', 'num', 'Sets the threshold for when a feed is marked as dead, in hours', NULL), 478 "rss.search.maxitems" => array(500, 500, 'num', 'Sets the maximum number of items returned on a search', NULL) 478 "rss.search.maxitems" => array(500, 500, 'num', 'Sets the maximum number of items returned on a search', NULL), 479 "rss.config.restrictrefresh" => array("false","false","boolean","Restrict refresh to command line only (eg php -f update.php). Useful for busy sites with multiple users.",NULL), 479 480 ); 480 481 -
trunk/gregarius/update.php
r1561 r1581 28 28 define ('RSS_NO_CACHE',true); 29 29 require_once('init.php'); 30 $cline = isset($argv) && !$_REQUEST && isset($argc) && $argc; 31 if (!$cline && getConfig('rss.config.restrictrefresh')) { 32 die(__('Sorry, updating from the web is currently not allowed.')); 33 } 30 34 rss_require("cls/update.php"); 31 35 rss_require("extlib/browser.php"); … … 50 54 51 55 $browser = new Browser(); 52 53 $cline = isset($argv) && !$_REQUEST && isset($argc) && $argc;54 56 $silent = array_key_exists('silent', $_GET) || ($cline && in_array('--silent',$argv)); 55 57 $newsonly = array_key_exists('newsonly', $_GET) || ($cline && in_array('--newsonly', $argv));
