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

Diff of /phpcompta/html/fiche_new.php

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

revision 1.9 by sparkyx, Sun Feb 27 14:24:30 2005 UTC revision 1.10 by sparkyx, Mon Mar 7 19:50:22 2005 UTC
# Line 35  if ( ! isset ( $_SESSION['g_dossier'] ) Line 35  if ( ! isset ( $_SESSION['g_dossier'] )
35    exit -2;    exit -2;
36  }  }
37    
38    $cn=DbConnect($_SESSION['g_dossier']);
39  // TODO add security here  // TODO add security here
40  // Get The priv on the selected folder  // Get The priv on the selected folder
41  if ( $User->admin == 0 ) {  if ( $User->CheckAction($cn,FICHE_WRITE)== 0) {
   $r=CheckAction($_SESSION['g_dossier'],$_SESSION['g_user'],FICHE_WRITE);  
   if ($r == 0 ){  
42      /* Cannot Access */      /* Cannot Access */
43      echo '<h2 class="error"> Vous  ne pouvez pas ajouter de fiche</h2>';      echo '<h2 class="error"> Vous  ne pouvez pas ajouter de fiche</h2>';
44      return;      return;
   }  
45  }  }
46    
47  include_once("fiche_inc.php");  include_once("fiche_inc.php");
 $cn=DbConnect($_SESSION['g_dossier']);  
48  foreach ($HTTP_GET_VARS as $key=>$element) {  foreach ($HTTP_GET_VARS as $key=>$element) {
49    // The value are e_name e_type e_PHPSESSID    // The value are e_name e_type e_PHPSESSID
50    ${"e_$key"}=$element;    ${"e_$key"}=$element;

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

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