Esempio n. 1
0
 function Get($JsonData, $Culture)
 {
     $OEDataLocalizableString = new OEDataLocalizableString();
     return $OEDataLocalizableString->Get($JsonData->Links, $Culture);
 }
<?php

/*_______________________________________________
|                                                |
|    ©2012 Element Technologie - openElement     |
|________________________________________________|
*/
error_reporting(E_ALL);
ini_set("display_errors", 1);
require_once "openElement.php";
// ajout de la class globale
session_start();
// !important
//Definition des objets globaux du script
$objJson = new OEJSON();
$LocalizableString = new OEDataLocalizableString();
// définition de la méthode pour récupération des données.
if ($_SERVER['REQUEST_METHOD'] == "POST") {
    $param = $_POST;
} else {
    $param = $_GET;
}
// consider magic quotes:
if (get_magic_quotes_runtime()) {
    set_magic_quotes_runtime(false);
}
if (get_magic_quotes_gpc()) {
    // remove slashes before apostrophes etc.
    foreach ($param as $key => $value) {
        if (is_array($value)) {
            // value is an array, not just string (happens if attribut name contains [])