Version 2
This commit is contained in:
18
temporary/pagecontent/action-listRename.php
Normal file
18
temporary/pagecontent/action-listRename.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
|
||||
$listname = iconv('UTF-8','ASCII//TRANSLIT',addslashes(htmlentities(substr($_POST["listname"], 0, 30), ENT_QUOTES, 'UTF-8')));
|
||||
|
||||
if($listname == '' || $lang == '')
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
$path = "$userid/" . $lang . "/";
|
||||
|
||||
|
||||
mysql_query("UPDATE `VokabelBox2Content` SET `value` = '$listname' WHERE `path` = '$path' AND `id` = '$list'");
|
||||
|
||||
echo "true";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user