Show
Ignore:
Timestamp:
09/14/06 21:30:34 (2 years ago)
Author:
mbonetti
Message:

Applied Sam Johnston's patch for #440

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/update.php

    r1561 r1581  
    2828define ('RSS_NO_CACHE',true); 
    2929require_once('init.php'); 
     30$cline = isset($argv) && !$_REQUEST && isset($argc) && $argc; 
     31if (!$cline && getConfig('rss.config.restrictrefresh')) { 
     32    die(__('Sorry, updating from the web is currently not allowed.')); 
     33} 
    3034rss_require("cls/update.php"); 
    3135rss_require("extlib/browser.php"); 
     
    5054 
    5155$browser = new Browser(); 
    52  
    53 $cline = isset($argv) && !$_REQUEST && isset($argc) && $argc; 
    5456$silent = array_key_exists('silent', $_GET) || ($cline && in_array('--silent',$argv)); 
    5557$newsonly = array_key_exists('newsonly', $_GET) || ($cline && in_array('--newsonly', $argv));