- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / radiology / radiolog_pass.php
blob1bb87857ef6a7f559d7b96985e1893f64affb051
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 beta 2.0.1 - 2004-07-04
7 * GNU General Public License
8 * Copyright 2002,2003,2004,2005 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['admit'];
20 $append=URL_REDIRECT_APPEND.'&from=pass';
22 if(!session_is_registered('sess_user_origin')) session_register('sess_user_origin');
24 switch($target)
26 case 'entry':$fileforward='upload_person_search.php'.$append;
27 $lognote='Dicom upload ok';
28 break;
29 case 'search':$fileforward='medocs_data_search.php'.$append;
30 $lognote='Dicom search ok';
31 break;
32 case 'archiv':$fileforward='medocs_archive.php'.$append;
33 $lognote='Radiology archive ok';
34 break;
35 default: $target='entry';
36 $lognote='Radioloy ok';
37 $fileforward='view_person_search.php'.$append;
41 $thisfile=basename(__FILE__);
42 //$breakfile='startframe.php'.URL_APPEND;
43 $breakfile=$root_path.'main/startframe.php';
45 $userck='medocs_user';
47 setcookie($userck.$sid,'');
48 require($root_path.'include/inc_2level_reset.php');
49 setcookie(ck_2level_sid.$sid,'');
51 # reset the user origin
52 $HTTP_SESSION_VARS['sess_user_origin']='';
54 require($root_path.'include/inc_passcheck_internchk.php');
55 if ($pass=='check')
56 include($root_path.'include/inc_passcheck.php');
58 $errbuf=$LDMedocs;
60 require($root_path.'include/inc_passcheck_head.php');
63 <BODY onLoad="document.passwindow.userid.focus();" bgcolor=<?php echo $cfg['body_bgcolor']; ?>
64 <?php if (!$cfg['dhtml']){ echo ' link='.$cfg['idx_txtcolor'].' alink='.$cfg['body_alink'].' vlink='.$cfg['idx_txtcolor']; } ?>>
66 <FONT SIZE=-1 FACE="Arial">
68 <P>
69 <?php
70 if($cfg['dhtml'])
72 switch($target)
74 case 'entry':$buf=$LDMedocs; break;
75 case 'search':$buf=$LDMedocs; break;
76 case 'archiv':$buf=$LDMedocs; break;
77 default: $target="entry";$buf=$LDMedocs;
80 echo '
81 <script language=javascript>
82 <!--
83 if (window.screen.width)
84 { if((window.screen.width)>1000) document.write(\'<img '.createComIcon($root_path,'skinbone.jpg','0','absmiddle').'><FONT COLOR="'.$cfg['top_txtcolor'].'" SIZE=6 FACE="verdana"> <b>'.$buf.'</b></font>\');}
85 //-->
86 </script>';
91 <table width=100% border=0 cellpadding="0" cellspacing="0">
94 <?php require($root_path.'include/inc_passcheck_mask.php') ?>
96 <p>
97 <?php
98 require($root_path.'include/inc_load_copyrite.php');
100 </FONT>
101 </BODY>
102 </HTML>