19 lines
370 B
PHP
19 lines
370 B
PHP
<?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 . "/";
|
|
|
|
|
|
$conn->query("UPDATE `VokabelBox2Content` SET `value` = '$listname' WHERE `path` = '$path' AND `id` = '$list'");
|
|
|
|
echo "true";
|
|
|
|
?>
|