if (isset($_COOKIE)) { foreach ($_COOKIE as $key => $val) { cookies_reset($key); } unset($_COOKIE); } cookies_add("VERS", GUI_VER); } //del column if (isset($protectedPost['SUP_COL']) and $protectedPost['SUP_COL'] != "" and isset($_SESSION['OCS']['col_tab'][$protectedPost['TABLE_NAME']])) { unset($_SESSION['OCS']['col_tab'][$protectedPost['TABLE_NAME']][$protectedPost['SUP_COL']]); cookies_add($protectedPost['TABLE_NAME'], implode('///', $_SESSION['OCS']['col_tab'][$protectedPost['TABLE_NAME']])); } //default values if (isset($protectedPost['RAZ']) and $protectedPost['RAZ'] != "") { cookies_reset($protectedPost['TABLE_NAME']); } //add column if (isset($protectedPost['TABLE_NAME']) and isset($protectedPost['restCol' . $protectedPost['TABLE_NAME']]) and $protectedPost['restCol' . $protectedPost['TABLE_NAME']] != '') { $_SESSION['OCS']['col_tab'][$tab_name][$protectedPost['restCol' . $tab_name]] = $protectedPost['restCol' . $tab_name]; if (is_array($_SESSION['OCS']['col_tab'][$protectedPost['TABLE_NAME']])) { cookies_add($protectedPost['TABLE_NAME'], implode('///', $_SESSION['OCS']['col_tab'][$protectedPost['TABLE_NAME']])); } } /********************************************************GESTION DE LA LANGUE PAR COOKIES**********************************************/ /*****************************************************Gestion des fichiers de langues TEST*************************************/ if (isset($protectedPost['Valid_EDITION'])) { if ($protectedPost['ID_WORD'] != '') { if ($protectedPost['ACTION'] == "DEL") { unset($_SESSION['OCS']['LANGUAGE_FILE']->tableauMots[$protectedPost['ID_WORD']]); } else {
function cookies_add($name, $value) { cookies_reset($name); setcookie($name, $value, time() + 3600 * 24 * 365); }