- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / pharmacy / apotheke-pass.php
blob03a4c7e404e140dda6b3ba1cae4760c477daf4fc
1 <?php
2 error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
3 require('./roots.php');
4 require($root_path.'include/inc_environment_global.php');
5 /**
6 * CARE2X Integrated Hospital Information System Deployment 2.2 - 2006-07-10
7 * GNU General Public License
8 * Copyright 2002,2003,2004,2005,2006 Elpidio Latorilla
9 * elpidio@care2x.org,
11 * See the file "copy_notice.txt" for the licence notice
13 define('LANG_FILE','stdpass.php');
14 define('NO_2LEVEL_CHK',1);
15 require_once($root_path.'include/inc_front_chain_lang.php');
17 require_once($root_path.'global_conf/areas_allow.php');
19 $allowedarea=&$allow_area['pharma'];
20 $append=URL_REDIRECT_APPEND.'&cat=pharma&userck=';
21 switch($mode)
23 case "order": $title=$LDPharmaOrder;
24 $src="orderpass";
25 $mode="order";
26 $userck="ck_prod_order_user";
27 $fileforward=$root_path."modules/products/products-bestellung.php".$append.$userck."&from=".$src;
28 //$fileforward="select_dept.php".$append.$userck."&from=".$src;
29 break;
30 case "archive":$title=$LDOrderArchive;
31 $src="archivepass";
32 $userck="ck_prod_arch_user";
33 $fileforward=$root_path."modules/products/products-archive.php".$append.$userck."&from=".$src;
34 break;
35 case "dbank": $title=$LDPharmaDb;
36 $src="dbankpass";
37 $userck="ck_prod_db_user";
38 $fileforward="apotheke-datenbank-functions.php".$append.$userck."&from=".$src;
39 break;
40 case "catalog": $title=$LDOrderCat;
41 $src="catalogpass";
42 $userck="ck_prod_order_user";
43 $fileforward=$root_path."modules/products/products-bestellkatalog-edit.php".$append.$userck."&target=catalog&from=".$src;
44 break;
45 default: {header("Location:".$root_path."language/".$lang."/lang_".$lang."_invalid-access-warning.php"); exit;};
47 $thisfile=basename(__FILE__);
48 $breakfile='apotheke.php'.URL_APPEND;
49 $lognote="$LDPharmacy $title ok";
51 // reset all 2nd level lock cookies
52 require($root_path.'include/inc_2level_reset.php');
53 setcookie('ck_2level_sid'.$sid,'',0,'/');
55 require($root_path.'include/inc_passcheck_internchk.php');
56 if ($pass=='check') include($root_path.'include/inc_passcheck.php');
58 $errbuf="$LDPharmacy $title";
59 $minimal=1;
60 require($root_path.'include/inc_passcheck_head.php');
63 <BODY <?php if (!$nofocus) echo 'onLoad="document.passwindow.userid.focus()"'; echo ' bgcolor='.$cfg['body_bgcolor'];
64 if (!$cfg['dhtml']){ echo ' link='.$cfg['body_txtcolor'].' alink='.$cfg['body_alink'].' vlink='.$cfg['body_txtcolor']; }
65 ?>>
67 <p>
68 <FONT SIZE=-1 FACE="Arial">
69 <P>
70 <img src="../../gui/img/common/default/lampboard.gif" border=0 align="middle">
71 <FONT COLOR="<?php echo $cfg[top_txtcolor] ?>" SIZE=5 FACE="verdana"> <b><?php echo "$LDPharmacy :: $title" ?></b></font>
72 <p>
73 <table width=100% border=0 cellpadding="0" cellspacing="0">
75 <?php require($root_path.'include/inc_passcheck_mask.php') ?>
77 <p>
78 <!-- <img <?php echo createComIcon($root_path,'varrow.gif','0') ?>> <a href="<?php echo $root_path; ?>main/ucons.php<?php echo URL_APPEND; ?>"><?php echo "$LDIntro2 $LDPharmacy $title " ?></a><br>
79 <img <?php echo createComIcon($root_path,'varrow.gif','0') ?>> <a href="<?php echo $root_path; ?>main/ucons.php<?php echo URL_APPEND; ?>"><?php echo "$LDWhat2Do $LDPharmacy $title " ?>?</a><br>
80 -->
81 <p>
83 <?php
84 require($root_path.'include/inc_load_copyrite.php');
88 </FONT>
91 </BODY>
92 </HTML>