include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.openssh.inc'; include_once 'ressources/class.user.inc'; $user = new usersMenus(); if ($user->AsSystemAdministrator == false) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["SSHD_STATUS"])) { SSHD_STATUS(); exit; } if (isset($_POST["UnixUser"])) { add_system_user_save(); 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"])) {
include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.system.network.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.openssh.inc'); include_once('ressources/class.user.inc'); $user=new usersMenus(); if($user->AsSystemAdministrator==false){ $tpl=new templates(); echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; die();exit(); } if(isset($_GET["SSHD_STATUS"])){SSHD_STATUS();exit;} if(isset($_POST["UnixUser"])){add_system_user_save();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["add-system-user-popup"])){add_system_user_popup();exit;}