예제 #1
0
파일: cmd.php 프로젝트: brucewu16899/artica
if (isset($_GET["dansguardian-update"])) {
    dansguardian_update();
    exit;
}
if (isset($_GET["shalla-update-now"])) {
    shalla_update();
    exit;
}
$uri = $_GET["uri"];
switch ($uri) {
    case "GlobalApplicationsStatus":
        GlobalApplicationsStatus();
        exit;
        break;
    case "artica_version":
        artica_version();
        exit;
        break;
    case "daemons_status":
        daemons_status();
        exit;
        break;
    case "pid":
        echo "<articadatascgi>" . getmypid() . "</articadatascgi>";
        exit;
        break;
    case "myhostname":
        myhostname();
        exit;
        break;
    default:
예제 #2
0
파일: cmd.php 프로젝트: rsd/artica-1.5
//paths 
if(isset($_GET["SendmailPath"])){SendmailPath();exit;}
if(isset($_GET["release-quarantine"])){release_quarantine();exit;}

//policyd-weight
if(isset($_GET["PolicydWeightReplicConF"])){Restart_Policyd_Weight();exit;}

//dansguardian
if(isset($_GET["dansguardian-update"])){dansguardian_update();exit;}
if(isset($_GET["shalla-update-now"])){shalla_update();exit;}

$uri=$_GET["uri"];

switch ($uri) {
	case "GlobalApplicationsStatus":GlobalApplicationsStatus();exit;break;
	case "artica_version":artica_version();exit;break;
	case "daemons_status":daemons_status();exit;break;
	case "pid":echo "<articadatascgi>".getmypid()."</articadatascgi>";exit;break;
	case "myhostname";myhostname();exit;break;
	
	default:
		;
	break;
}

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

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