Initial commit
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?php session_start();
|
||||
|
||||
$Benutzername = $_SESSION["Benutzername"];
|
||||
$Passwort = $_SESSION["Passwort"];
|
||||
|
||||
$_SESSION["Benutzername"] = $Benutzername;
|
||||
$_SESSION["Passwort"] = $Passwort;
|
||||
|
||||
$item = $_SESSION["item"];
|
||||
|
||||
unset($_SESSION["item"]);
|
||||
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?php print("<meta http-equiv='refresh' content='1; URL=../$redirect'>"); ?>
|
||||
<link rel="stylesheet" href="../files/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
|
||||
require "../files/ezine_db.inc.php";
|
||||
|
||||
include "../files/loginscript.inc.php";
|
||||
|
||||
include "../files/errorcodesscript.inc.php";
|
||||
|
||||
if($LoggedIn == 'true') {
|
||||
|
||||
if($item == '') {
|
||||
$_SESSION["errorCode"] = 'generalError';
|
||||
print("<meta http-equiv='refresh' content='0; URL=../marks?item='>");
|
||||
}
|
||||
else {
|
||||
|
||||
if(strlen($item) == '10') {
|
||||
$item = substr($item, 0, -2);
|
||||
}
|
||||
|
||||
$conn->query("DELETE FROM `VokabelBoxNoten` WHERE `Nutzername` = '$Benutzername' AND `ID` = '$item'");
|
||||
$_SESSION["errorCode"] = 'deleteItemSuccess';
|
||||
print("<meta http-equiv='refresh' content='0; URL=../marks'>");
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user