* @author Claire Figueras */ session_name('LetterBox2'); session_start(); if(file_exists($_SESSION['config']['lang'].'.php')) { include($_SESSION['config']['lang'].'.php'); } else { $_SESSION['error'] = "Language file missing...
"; } require_once("class_functions.php"); require_once("class_db.php"); $func = new functions(); $db = new dbquery(); $db->connect(); ?> <? echo _MODIFY_NOTE;?> query("UPDATE ".$_SESSION['tablename']['notes']." SET INFO = '".addslashes($_POST['notes'])."', DATE = '".date("Y")."-".date("m")."-".date("d")." ".date("H:i:s")."' WHERE ID = ".$s_id); //Mise à jour de l'historique if($_SESSION['history']['notesup']) { require_once("class_history.php"); $hist = new history(); $hist->add($_SESSION['tablechoice'], $resid ,"UP", _NOTE_UPDATED); } ?> query("select ID, RECORD_ID, INFO, DATE, USER_ID from ".$_SESSION['tablename']['notes']." where ID= ".$s_id." and USER_ID = '".$_SESSION['user']['UserId']."'"); //$db->show(); $line = $db->fetch_object(); ?>