示例#1
0
文件: sshd.php 项目: rsd/artica-1.5
$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["events-js"])){events_js();exit;}
	if(isset($_POST['upload']) ){SSHD_KEYS_SERVER_UPLOAD();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["parameters"])){parameters();exit;}
	if(isset($_GET["ListenAddress-list"])){listen_address_list();exit;}
	if(isset($_GET["LoginGraceTime"])){saveconfig();exit;}
	if(isset($_GET["ListenAddressSSHDADD"])){ListenAddressADD();exit;}
	if(isset($_GET["ListenAddressSSHDDelete"])){ListenAddressDEL();exit;}
	if(isset($_GET["keys"])){popup_keys();exit;}
	if(isset($_GET["GenerateSSHDKeyPair"])){GenerateSSHDKeyPair();exit;}
	if(isset($_GET["GetSSHDFingerprint"])){GetSSHDFingerprint();exit;}
	if(isset($_GET["download-key-pub"])){SSHDKeyPair_download();exit;}
	if(isset($_GET["SSHD_KEYS_SERVER"])){SSHD_KEYS_SERVER_FORM();exit;}
	
	
	if(isset($_GET["events"])){events();exit;}
	if(isset($_GET["sshd-events"])){events_list();exit;}
	
	
	
js();	

function events_js(){
示例#2
0
    exit;
}
if (isset($_GET["ListenAddress-list"])) {
    listen_address_list();
    exit;
}
if (isset($_GET["LoginGraceTime"])) {
    saveconfig();
    exit;
}
if (isset($_GET["ListenAddressSSHDADD"])) {
    ListenAddressADD();
    exit;
}
if (isset($_GET["ListenAddressSSHDDelete"])) {
    ListenAddressDEL();
    exit;
}
if (isset($_GET["keys"])) {
    popup_keys();
    exit;
}
if (isset($_GET["GenerateSSHDKeyPair"])) {
    GenerateSSHDKeyPair();
    exit;
}
if (isset($_GET["GetSSHDFingerprint"])) {
    GetSSHDFingerprint();
    exit;
}
if (isset($_GET["download-key-pub"])) {