CMXX - Update whereclause get/post

This commit is contained in:
“VeLiTi”
2025-02-21 17:48:51 +01:00
parent d5826fccdb
commit 8dd7023310
71 changed files with 91 additions and 83 deletions

View File

@@ -66,7 +66,9 @@ if (isset($_GET['rowID'])) {
if ($responses === 'NOK'){
} else {
generateLanguageFile($_POST['language_key'],$_SESSION['userkey']);
if ($_SESSION['permission'] == 4){
generateLanguageFile($_POST['language_key'],$_SESSION['userkey']);
}
header('Location: index.php?page=translation_manage&rowID='.$_GET['rowID'].'');
exit;
}
@@ -79,9 +81,10 @@ if (isset($_GET['rowID'])) {
//RUN through all POST items
foreach ($_POST['item'] as $attr){
//GET ALL POST DATA
$payload = json_encode($attr, JSON_UNESCAPED_UNICODE);
var_dump($payload);
//API call
$responses = ioServer('/v2/translations_details', $payload);
@@ -96,11 +99,13 @@ if (isset($_GET['rowID'])) {
if ($NOK_error == 0){
//NO errors generatelanguagefile
generateLanguageFile($attr_language,$_SESSION['userkey']);
if ($_SESSION['permission'] == 4){
generateLanguageFile($attr_language,$_SESSION['userkey']);
}
}
header('Location: index.php?page=translation_manage&rowID='.$_GET['rowID'].'');
exit;
//header('Location: index.php?page=translation_manage&rowID='.$_GET['rowID'].'');
//exit;
}
}