die; } if ($argv[1] == "--retrans") { retrans(); die; } if ($argv[1] == "--certificate") { certificate_generate(); die; } if ($argv[1] == "--caches") { BuildCaches(); die; } if ($argv[1] == "--caches-reconstruct") { ReconstructCaches(); die; } if ($argv[1] == "--compilation-params") { compilation_params(); die; } if ($argv[1] == "--wrapzap") { wrapzap(); die; } if ($argv[1] == "--wrapzap-compile") { wrapzap_compile(); die; } if ($argv[1] == "--change-value") {
if($GLOBALS["VERBOSE"]){ini_set('display_errors', 1); ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);} if($GLOBALS["VERBOSE"]){echo " commands= ".implode(" ",$argv)."\n";} $unix=new unix(); $squidbin=$unix->find_program("squid3"); if(!is_file($squidbin)){$squidbin=$unix->find_program("squid");} $GLOBALS["SQUIDBIN"]=$squidbin; if($GLOBALS["VERBOSE"]){echo "squid binary=$squidbin\n";} if($argv[1]=="--reload-squid"){if($GLOBALS["VERBOSE"]){echo "reload in debug mode\n";} Reload_Squid();die();} if($argv[1]=="--templates"){SQUID_TEMPLATES();die();} if($argv[1]=="--retrans"){retrans();die();} if($argv[1]=="--certificate"){certificate_generate();die();} if($argv[1]=="--caches"){BuildCaches();die();} if($argv[1]=="--caches-reconstruct"){ReconstructCaches();die();} if($argv[1]=="--wrapzap"){wrapzap();die();} if($argv[1]=="--wrapzap-compile"){wrapzap_compile();die();} if($argv[1]=="--change-value"){change_value($argv[2],$argv[3]);die();} //request_header_max_size function change_value($key,$val){ $squid=new squidbee(); $squid->global_conf_array[$key]=$val; $squid->SaveToLdap(); echo "Starting......: Squid change $key to $val (squid will be restarted)\n";