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"); |
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; |