Exemple #1
0
    exit;
}
if (isset($_GET["ipv6"])) {
    ipv6();
    exit;
}
if (isset($_GET["OpenVPNServerLogs"])) {
    OpenVPN_ServerLogs();
    exit;
}
if (isset($_GET["ipdeny"])) {
    ipdeny();
    exit;
}
if (isset($_GET["fw-inbound-rules"])) {
    iptables_inbound();
    exit;
}
if (isset($_GET["fqdn"])) {
    fqdn();
    exit;
}
if (isset($_GET["iptaccount-installed"])) {
    iptaccount_check();
    exit;
}
if (isset($_GET["ifup-ifdown"])) {
    ifup_ifdown();
    exit;
}
if (isset($_GET["reconstruct-interface"])) {
Exemple #2
0
<?php
include_once(dirname(__FILE__)."/frame.class.inc");
include_once(dirname(__FILE__)."/class.unix.inc");
include_once(dirname(__FILE__)."/class.postfix.inc");



if(isset($_GET["NetworkManager-check-redhat"])){NetworkManager_redhat();exit;}
if(isset($_GET["reconfigure-postfix-instances"])){postfix_reconfigures_multiples_instances();exit;}
if(isset($_GET["ping"])){pinghost();exit;}
if(isset($_GET["crossroads-restart"])){crossroads_restart();exit;}
if(isset($_GET["ipv6"])){ipv6();exit;}
if(isset($_GET["OpenVPNServerLogs"])){OpenVPN_ServerLogs();exit;}
if(isset($_GET["ipdeny"])){ipdeny();exit;}
if(isset($_GET["fw-inbound-rules"])){iptables_inbound();exit;}
if(isset($_GET["fqdn"])){fqdn();exit;}
if(isset($_GET["iptaccount-installed"])){iptaccount_check();exit;}




while (list ($num, $ligne) = each ($_GET) ){$a[]="$num=$ligne";}
writelogs_framework("unable to unserstand ".@implode("&",$a),__FUNCTION__,__FILE__,__LINE__);


function NetworkManager_redhat(){
	$unix=new unix();
	$chkconfig=$unix->find_program("chkconfig");
	if(!is_file($chkconfig)){return;}
	exec("$chkconfig --list NetworkManager 2>&1",$results);
	echo "<articadatascgi>". @implode("\n",$results)."</articadatascgi>";