Version 2
This commit is contained in:
17
temporary/pagecontent/action-list-delete.php
Normal file
17
temporary/pagecontent/action-list-delete.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
|
||||
$sql = "SELECT `value` FROM `VokabelBox2Content` WHERE `type` = 'list' AND `path` = '$userid/$lang/' AND `id` = '$list'";
|
||||
$result_articles = mysql_query ($sql, $ezine_db);
|
||||
if(mysql_num_rows($result_articles))
|
||||
{
|
||||
mysql_query("DELETE FROM `VokabelBox2Content` WHERE `path` = '$userid/lang/$list/' AND `type` = 'voc'");
|
||||
mysql_query("DELETE FROM `VokabelBox2Content` WHERE `id` = '$list' AND `path` = '$userid/$lang/' AND `type` = 'list'");
|
||||
}
|
||||
else {
|
||||
die();
|
||||
}
|
||||
|
||||
print("true");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user