Exemplo n.º 1
0
<?php

include_once dirname(__FILE__) . "/frame.class.inc";
include_once dirname(__FILE__) . "/class.unix.inc";
if (isset($_GET["mode-security-log"])) {
    mod_security_logs();
    exit;
}
if (isset($_GET["reconfigure"])) {
    freeweb_reconfigure();
    exit;
}
if (isset($_GET["loaded-modules"])) {
    freeweb_modules();
    exit;
}
if (isset($_GET["force-resolv"])) {
    force_resolv();
    exit;
}
if (isset($_GET["rebuild-vhost"])) {
    rebuild_vhost();
    exit;
}
if (isset($_GET["getidof"])) {
    getidof();
    exit;
}
if (isset($_GET["ApacheAccount"])) {
    ApacheAccount();
    exit;
Exemplo n.º 2
0
<?php

include_once(dirname(__FILE__)."/frame.class.inc");
include_once(dirname(__FILE__)."/class.unix.inc");


if(isset($_GET["mode-security-log"])){mod_security_logs();exit;}
if(isset($_GET["reconfigure"])){freeweb_reconfigure();exit;}
if(isset($_GET["loaded-modules"])){freeweb_modules();exit;}
if(isset($_GET["force-resolv"])){force_resolv();exit;}




while (list ($num, $line) = each ($_GET)){$f[]="$num=$line";}

writelogs_framework("unable to understand query !!!!!!!!!!!..." .@implode(",",$f),"main()",__FILE__,__LINE__);
die();

function force_resolv(){
	$unix=new unix();
	$php=$unix->LOCATE_PHP5_BIN();
	$nohup=$unix->find_program("nohup");
	$cmd=trim("$nohup $php /usr/share/artica-postfix/exec.freeweb.php --resolv --force >/dev/null 2>&1 &");
	writelogs_framework($cmd,__FUNCTION__,__FILE__,__LINE__);
	shell_exec($cmd);		
	
}

function mod_security_logs(){
	$servername=$_GET["servername"];