- modules/fotolab updated imagej to current version & some cod fixes to make it work
[care2x.git] / Care2007 / include / inc_resolve_dept.php
blobdd8d644b897f2673264b55f95286d747278d8a84
1 <?php
2 /*------begin------ This protection code was suggested by Luki R. luki@karet.org ---- */
3 if (eregi("inc_resolve_dept.php",$PHP_SELF))
4 die('<meta http-equiv="refresh" content="0; url=../">');
5 /*------end------*/
7 if(!isset($dept_nr)||!$dept_nr){
8 if($cfg['thispc_dept_nr']){
9 $dept_nr=$cfg['thispc_dept_nr'];
13 require_once($root_path.'include/care_api_classes/class_department.php');
14 $dept_obj=@new Department;
15 @$dept_obj->preloadDept($dept_nr);
16 $buffer=$dept_obj->LDvar();
17 if(isset($$buffer)&&!empty($$buffer)) $dept_name=$$buffer;
18 else $dept_name=$dept_obj->FormalName();