Initial commit
This commit is contained in:
42
actions/delete-folder.php
Normal file
42
actions/delete-folder.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php session_start();
|
||||
|
||||
$Benutzername = $_SESSION["Benutzername"];
|
||||
$Passwort = $_SESSION["Passwort"];
|
||||
|
||||
$_SESSION["Benutzername"] = $Benutzername;
|
||||
$_SESSION["Passwort"] = $Passwort;
|
||||
|
||||
$folderID = $_SESSION["folderID"];
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
|
||||
require "../files/ezine_db.inc.php";
|
||||
|
||||
include "../files/loginscript.inc.php";
|
||||
|
||||
include "../files/errorcodesscript.inc.php";
|
||||
|
||||
if($LoggedIn == 'true') {
|
||||
$Folder = strip_tags(htmlentities($_POST["folder"]));
|
||||
|
||||
if(empty($folderID) || empty($Benutzername)) {
|
||||
$_SESSION["errorCode"] = 'generalError';
|
||||
print("<meta http-equiv='refresh' content='0; URL=../index'>");
|
||||
}
|
||||
else {
|
||||
$conn->query("DELETE FROM `VokabelBoxVokabeln` WHERE (`Nutzername` = '$Benutzername') AND (`ID` = '$folderID')");
|
||||
$_SESSION["errorCode"] = 'deleteFolderSuccess';
|
||||
print("<meta http-equiv='refresh' content='0; URL=../index'>");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user