Initial commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?php session_start();
|
||||
|
||||
$_SESSION["redirect"] = 'save-accountsettings';
|
||||
|
||||
$Benutzername = $_SESSION["Benutzername"];
|
||||
$Passwort = $_SESSION["Passwort"];
|
||||
|
||||
$_SESSION["Benutzername"] = $Benutzername;
|
||||
$_SESSION["Passwort"] = $Passwort;
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="1; URL=myaccount">
|
||||
<link rel="stylesheet" href="style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
require "../files/ezine_db.inc.php";
|
||||
|
||||
include "../files/loginscript.inc.php";
|
||||
|
||||
include "../files/errorcodesscript.inc.php";
|
||||
|
||||
if($LoggedIn == 'true') {
|
||||
$GrossKlein = strip_tags(htmlentities($_POST["GrossKlein"]));
|
||||
$Zeit = strip_tags(htmlentities($_POST["Zeit"]));
|
||||
|
||||
if(empty($Zeit)) {
|
||||
$_SESSION["errorCode"] = 'generalError';
|
||||
print("<meta http-equiv='refresh' content='0; URL=../myaccount'>");
|
||||
}
|
||||
else {
|
||||
$conn->query("UPDATE `VokabelBoxUsers` SET `GrossKlein`= '$GrossKlein',`Zeit`= '$Zeit' WHERE `Benutzername` = '$Benutzername'");
|
||||
$_SESSION["errorCode"] = 'saveAccountsettingsSuccess';
|
||||
print("<meta http-equiv='refresh' content='0; URL=../myaccount'>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user