- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / modules / medocs / include / inc_breakfile.php
blobd6a04a4930ccc4099d8344779556d0a7ec5ac8e8
1 <?php
2 #------begin------ This protection code was suggested by Luki R. luki@karet.org
3 if (eregi('inc_drg_entry_save.php',$PHP_SELF))
4 die('<meta http-equiv="refresh" content="0; url=../../">');
5 #------end
7 if($HTTP_SESSION_VARS['sess_user_origin']=='admission') {
8 $breakfile=$root_path.'modules/registration_admission/aufnahme_daten_zeigen.php'.URL_APPEND.'&encounter_nr='.$HTTP_SESSION_VARS['sess_en'];
9 }elseif($HTTP_SESSION_VARS['sess_user_origin']=='registration'){
10 $breakfile=$root_path.'modules/registration_admission/show_medocs.php'.URL_APPEND.'&pid='.$HTTP_SESSION_VARS['sess_pid'];
11 }elseif($HTTP_COOKIE_VARS['ck_login_logged'.$sid]){
12 $breakfile=$root_path.'main/startframe.php';
13 }else{
14 $breakfile='medocs_pass.php';
17 # Patch for break urls that have lang param already
19 if(!stristr($breakfile,'lang=')) $breakfile.=URL_APPEND;