CMXX - Update whereclause get/post
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user