enleve la variable globale g_jrn, remplace par param HTTP p_jrn partout

This commit is contained in:
Stan Pinte 2005-07-04 17:58:51 +00:00
parent 50e1d2d213
commit 21ca05d764
18 changed files with 126 additions and 124 deletions

View file

@ -20,7 +20,7 @@
/* $Revision$ */
if ( $action == 'update' ) {
if ( CheckJrn($g_dossier,$g_user,$g_jrn) < 2 ) {
if ( CheckJrn($g_dossier,$g_user,$p_jrn) < 2 ) {
NoAccess();
exit -1;
@ -44,7 +44,7 @@ if ( isset($_POST['update_record']) ) {
UpdateComment($cn,$_POST['jr_id'],$_POST['comment']);
InsertRapt($cn,$_POST['jr_id'],$_POST['rapt']);
echo '<div class="redcontent">';
ViewJrn($g_dossier,$g_user,$g_jrn,"user_jrn.php");
ViewJrn($g_dossier,$g_user,$p_jrn,"user_jrn.php");
echo '</div>';
} // if update_record