private function checkFormResponse() { // If the password/laguage aren't given if (!isset($_POST["password"]) || !isset($_POST["language"])) { // Displaying the install page \Paladin\Paladin::getPageLoader()->displayPage("\\SUpdateServer\\Pages", "Install", array()); } else { // Seting the user logged $_SESSION["logged"] = true; // Saving the config file_put_contents(\SUpdateServer\SessionManager::getSessionManager()->getPasswordLocation(), sha1($_POST["password"])); \SUpdateServer\LangLoader\LangLoader::getLangLoader()->setCurrentLang($_POST["language"]); // Redirecting the user header("Location: " . \Paladin\Paladin::getRootFolder()); } }
public function checkFormResponse() { // If the form variable exist if (isset($_POST["form"])) { // If the form is the password form if ($_POST["form"] == "passwordForm") { // If the password variable exist if (isset($_POST["password"])) { // Writing it file_put_contents(\SUpdateServer\SessionManager::getSessionManager()->getPasswordLocation(), sha1($_POST["password"])); // Then redirecting the user header("Location: Index"); } else { // Displaying the settings page \Paladin\Paladin::getPageLoader()->displayPage("\\SUpdateServer\\Pages", "Settings", array()); } } else { if ($_POST["form"] == "langForm") { // If the language variable exist if (isset($_POST["language"])) { // Setting it \SUpdateServer\LangLoader\LangLoader::getLangLoader()->setCurrentLang($_POST["language"]); // Then redirecting the user header("Location: Index"); } else { // Displaying the settings page \Paladin\Paladin::getPageLoader()->displayPage("\\SUpdateServer\\Pages", "Settings", array()); } } else { // Displaying the settings page \Paladin\Paladin::getPageLoader()->displayPage("\\SUpdateServer\\Pages", "Settings", array()); } } } else { // Displaying the settings page \Paladin\Paladin::getPageLoader()->displayPage("\\SUpdateServer\\Pages", "Settings", array()); } }
public function getName() { return \SUpdateServer\LangLoader\LangLoader::getLangLoader()->getLangText("file-explorer"); }
public function getName() { return \SUpdateServer\LangLoader\LangLoader::getLangLoader()->getLangText("stats"); }