Changeset 1581 for trunk/gregarius/update.php
- Timestamp:
- 09/14/06 21:30:34 (2 years ago)
- Files:
-
- 1 modified
-
trunk/gregarius/update.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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));
