include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.sockets.inc'; include_once 'ressources/kav4mailservers.inc'; include_once 'ressources/class.kas-filter.inc'; include_once 'ressources/class.main_cf.inc'; include_once "ressources/class.main_cf_filtering.inc"; include_once "ressources/class.html.pages.inc"; include_once "ressources/class.artica.inc"; include_once "ressources/class.cyrus.inc"; include_once "ressources/class.system.network.inc"; if (isset($_GET["ApplyConfig"])) { ApplyConfig(); exit; } if (isset($_GET["operations"])) { operations(); exit; } if (isset($_GET["TreeSystemInstall"])) { TreeSystemInstall(); exit; } if (isset($_GET["TreeSystemInstallCheck"])) { TreeSystemInstallCheck(); exit; } if (isset($_GET["TreeSystemInstallContinue"])) { TreeSystemInstallContinue(); exit; } if (isset($_GET["TreeSystemPerformInstall"])) {
// This is the same as: sha1($params.sha1($plaintext_username.$plaintext_password)) if ($encoded_params != $encoded_key) { throw new Exception("Hash doesn't match"); } //Client hash doesn't match server hash. // The request has now been authenticated // Call the requested controller/action switch ($controller) { case "people": people($id, $action, $year); break; case "crews": crews($id, $action, $year); break; case "operations": operations($id, $action, $year); break; case "rappels": rappels($id, $action, $year); break; case "ropes": ropes($id, $action, $year); break; case "genies": genies($id, $action, $year); break; case "letdownlines": letdownlines($id, $action, $year); break; case "aircraft": aircraft($id, $action, $year);