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

Diff of /phpcompta/html/show_document.php

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

revision 1.3 by sparkyx, Mon Mar 7 19:50:22 2005 UTC revision 1.4 by sparkyx, Sun Mar 13 16:27:57 2005 UTC
# Line 34  $cn=DbConnect($_SESSION['g_dossier']); Line 34  $cn=DbConnect($_SESSION['g_dossier']);
34    
35    
36  include ('class_user.php');  include ('class_user.php');
37  $User=new cl_user($cn);  $User=new cl_user(DbConnect());
38  $User->Check();  $User->Check();
39  // retrieve the jrn  // retrieve the jrn
40  $r=ExecSql($cn,"select jr_def_id from jrn where jr_grpt_id=$jr_grpt_id");  $r=ExecSql($cn,"select jr_def_id from jrn where jr_grpt_id=$jr_grpt_id");
# Line 45  if ( pg_num_rows($r) == 0 ) { Line 45  if ( pg_num_rows($r) == 0 ) {
45  $a=pg_fetch_array($r,0);  $a=pg_fetch_array($r,0);
46  $jrn=$a['jr_def_id'];  $jrn=$a['jr_def_id'];
47    
48  if ($User->AccessJrn($jrn) == false ){  if ($User->AccessJrn($cn,$jrn) == false ){
49    /* Cannot Access */    /* Cannot Access */
50    NoAccess();    NoAccess();
51    exit -1;    exit -1;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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