Beispiel #1
0
    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") {
    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";
}
if ($argv[1] == "--reconfigure") {
    $EXEC_PID_FILE = "/etc/artica-postfix/" . basename(__FILE__) . ".reconfigure.pid";
    $unix = new unix();
    if ($unix->process_exists(@file_get_contents($EXEC_PID_FILE))) {
        $timefile = $unix->file_time_min($EXEC_PID_FILE);
Beispiel #2
0
	$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";
	
}


if($argv[1]=="--reconfigure"){
		$EXEC_PID_FILE="/etc/artica-postfix/".basename(__FILE__).".reconfigure.pid";
		$unix=new unix();