From 2e8ad63e2159fc912eba73df13273ae9b9c242a8 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sun, 30 Oct 2005 21:17:12 +0000 Subject: [PATCH] File form_input is now obsolete, remove that include --- html/stock.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/html/stock.php b/html/stock.php index b50205bd6..80bc6fe85 100644 --- a/html/stock.php +++ b/html/stock.php @@ -33,9 +33,10 @@ if ( ! isset ( $_SESSION['g_dossier'] ) ) { } include_once ("postgres.php"); /* Admin. Dossier */ -$rep=DbConnect(); + +$cn=DbConnect($_SESSION['g_dossier']); include_once ("class_user.php"); -$User=new cl_user($rep); +$User=new cl_user($cn); $User->Check(); // Synchronize rights @@ -51,7 +52,7 @@ if ( $User->admin == 0 ) { } } -$cn=DbConnect($_SESSION['g_dossier']); + //Show the top menu include_once ("user_menu.php"); @@ -113,7 +114,7 @@ if ( isset ($_POST['sub_change'])) { // if year is not set then use the year of the user's periode if ( ! isset ($_GET['year']) ) { // get defaut periode - $a=GetUserPeriode($cn,$_SESSION['g_user']); + $a=$User->GetPeriode(); // get exercice of periode $year=GetExercice($cn,$a); } else