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=../../">');
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';
14 $breakfile='medocs_pass.php';
17 # Patch for break urls that have lang param already
19 if(!stristr($breakfile,'lang=')) $breakfile.=URL_APPEND
;