clearCache(); foreach ($_POST['custom'] as $def => $array) { foreach ($array as $key => $value) { //$saved[$def][$key] = htmlspecialchars(stripslashes($value), ENT_COMPAT, 'UTF-8'); $saved[$def][$key] = stripslashes($value); } } $serializedArray = serialize($saved); // $db->MySQLSafe() will break the serialized array $data['langArray'] = "'".addslashes($serializedArray)."'"; $exist = $db->select("SELECT * FROM ".$glob['dbprefix']."CubeCart_lang WHERE identifier = ".$db->MySQLSafe($_POST['identifier'])); //print_r($data); //die; if ($exist) { $result = $db->update($glob['dbprefix']."CubeCart_lang", $data, "identifier = ".$db->MySQLSafe($_POST['identifier'])); } else { $data['identifier'] = $db->MySQLSafe($_POST['identifier']); $result = $db->insert($glob['dbprefix']."CubeCart_lang", $data); } ## Notify if ($result) { $msg = "

".sprintf($lang['admin']['langs_lang_updated'], $_POST['identifier'])."

"; } else { $msg = "

".sprintf($lang['admin']['langs_lang_not_updated'], $_POST['identifier'])."

"; } } require($glob['adminFolder'].CC_DS."includes".CC_DS."header.inc.php"); if (!isset($_GET['loc'])) { $_GET['loc'] = "/"; } ?>


select("SELECT langArray FROM ".$glob['dbprefix']."CubeCart_lang WHERE identifier = ".$db->mySQLSafe($_GET['loc'])); if ($customArray == true && !empty($customArray)) { ## add slashes to single quotes only $unserialized = $customArray[0]['langArray']; $formCustom = formArray(unserialize($unserialized)); if (empty($formCustom) || !is_array($formCustom)) { $formCustom = $formDefault; } } else { $formCustom = $formDefault; } if (is_array($formDefault)) { $hiddenVars = ""; for ($i=0; $i".$lang['admin']['langs_revert'].""; $missMatch = true; #print_r(array_diff_assoc($formDefault[$i], $formCustom[$i])); # echo "

"; } else { $cellColor = ""; $cellColor = $cellColorSame; $link = ""; } ?>

" size="35" class="textbox" onchange="compareInputbox();" />
<?php echo $_GET['loc'].$fileName;?>
<?php echo $_GET['loc'].$fileName;?>