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

Diff of /phpcompta/html/jrn_pdf.php

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

revision 1.5 by sparkyx, Sun Feb 27 14:24:30 2005 UTC revision 1.6 by sparkyx, Mon Mar 7 19:50:22 2005 UTC
# Line 48  if ($_POST['central'] == 'on' ) { Line 48  if ($_POST['central'] == 'on' ) {
48  $Jrn=new jrn($cn,$_POST['jrn_id']);  $Jrn=new jrn($cn,$_POST['jrn_id']);
49    
50  $Jrn->GetName();  $Jrn->GetName();
51  $User=new cl_user($cn);  $User=new cl_user(DbConnect());
52  $User->Check();  $User->Check();
53  if ( $User->admin == 0 ) {  
54    if (CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],IMP) == 0 ||  // Security
55          $User->AccessJrn($_POST['jrn_id']) == false){  if ($User->CheckAction($cn,IMP) == 0 ||
56        $User->AccessJrn($cn,$_POST['jrn_id']) == false){
57      /* Cannot Access */      /* Cannot Access */
58      NoAccess();      NoAccess();
59    }   }
   
 }  
60    
61  $ret="";  $ret="";
62  $pdf=& new Cezpdf("A4");  $pdf=& new Cezpdf("A4");

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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