* @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("INSERT INTO ".$_SESSION['tablename']['notes']." ( RECORD_ID, INFO, DATE, USER_ID) VALUES (".$resid.", '".addslashes($_POST['notes'])."', '".date("Y")."-".date("m")."-".date("d")." ".date("H:i:s")."', '".$_SESSION['user']['UserId']."')"); //Mise � jour de l'historique if($_SESSION['history']['notesadd']) { require_once("class_history.php"); $hist = new history(); $hist->add($_SESSION['tablechoice'], $resid ,"ADD", _ADDITION_NOTE); } if(isset($_REQUEST["validation"])) { ?>