Example #1
0
if($argv[1]=="--greensql"){echo greensql();exit;}




if($argv[1]=="--functions"){
	$arr = get_defined_functions();
	print_r($arr);
	die();
}



if($argv[1]=="--all-squid"){
	$conf[]=dansguardian_tail_status();
	$conf[]=squid_master_status();
	$conf[]=c_icap_master_status();
	$conf[]=dansguardian_master_status();
	$conf[]=kav4Proxy_status();
	$conf[]=proxy_pac_status();
	$conf[]=squid_tail();
	$conf[]=squidguardweb();
	$conf[]=ufdbguardd();
	echo @implode("\n",$conf);
	die();
}
if($argv[1]=="--zarafa"){
	$conf[]=zarafa_web();
	$conf[]=zarafa_ical();
	$conf[]=zarafa_dagent();
	$conf[]=zarafa_monitor();
Example #2
0
 }
 if (count($processes) > 0) {
     events("ALL_SQUID: Processes already exists, aborting", "{$argv[1]}", __LINE__);
     die;
 }
 $cachefile = "/usr/share/artica-postfix/ressources/databases/ALL_SQUID_STATUS";
 $GLOBALS["DISABLE_WATCHDOG"] = true;
 $TimeFile = $cachefile;
 if ($GLOBALS["SCHEDULE_ID"] > 0) {
     if ($unix->file_time_min($TimeFile) > 5) {
         $php = $unix->LOCATE_PHP5_BIN();
         $nohup = $unix->find_program("nohup");
         shell_exec2("{$nohup} {$php} /usr/share/artica-postfix/exec.squid.run.schedules.php >/dev/null 2>&1 &");
     }
 }
 $conf[] = squid_master_status(true);
 $conf[] = kav4Proxy_status();
 $conf[] = proxy_pac_status();
 $conf[] = squidguardweb();
 $conf[] = ufdbguardd();
 $conf[] = freshclam();
 $conf[] = articadb();
 $conf[] = winbindd();
 $conf[] = squid_db();
 $conf[] = haarp();
 $conf[] = nginx();
 $conf[] = ftp_proxy();
 $conf[] = c_icap_master_status();
 $conf[] = cntlm();
 $conf[] = cntlm_parent();
 $conf[] = rdpproxy_authhook();