/[phpcompta]/phpcompta/html/form.php
ViewVC logotype

Diff of /phpcompta/html/form.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by sparkyx, Sun Mar 6 15:15:56 2005 UTC revision 1.9 by sparkyx, Mon Mar 7 19:50:22 2005 UTC
# Line 21  Line 21 
21  /* $Revision$ */  /* $Revision$ */
22    
23  include_once ("ac_common.php");  include_once ("ac_common.php");
24  html_page_start($g_UserProperty['use_theme']);  html_page_start($_SESSION['use_theme']);
25    
26  if ( ! isset ( $g_dossier ) ) {  if ( ! isset ( $_SESSION['g_dossier'] ) ) {
27    echo "You must choose a Dossier ";    echo "You must choose a Dossier ";
28    exit -2;    exit -2;
29  }  }
# Line 37  $User->Check(); Line 37  $User->Check();
37  include_once("form_inc.php");  include_once("form_inc.php");
38    
39  include_once ("user_menu.php");  include_once ("user_menu.php");
40  ShowMenuCompta($g_dossier,$g_UserProperty);  ShowMenuCompta($_SESSION['$g_dossier']);
41  include ("check_priv.php");  include ("check_priv.php");
42    
43  ShowMenuComptaRight($g_dossier,$g_UserProperty);  ShowMenuComptaRight($_SESSION['g_dossier'],$User->admin);
44    
 if ( $g_UserProperty['use_admin'] == 0 ) {  
   $r=CheckAction($g_dossier,$g_user,FORM);  
   if ($r == 0 ){  
     /* Cannot Access */  
     NoAccess();  
   }  
 }  
45    
46  ShowMenuComptaForm($g_dossier);  $cn=DbConnect($_SESSION['g_dossier']);
47    if ( $User->CheckAction($cn,FORM)){
48      /* Cannot Access */
49      NoAccess();
50     }
51    
52    ShowMenuComptaForm($_SESSION['g_dossier']);
53    
 $cn=DbConnect($g_dossier);  
54  if ( isset($_GET["PHPSESSID"] )) {  if ( isset($_GET["PHPSESSID"] )) {
55    $sessid=$_GET["PHPSESSID"];    $sessid=$_GET["PHPSESSID"];
56  }  }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26