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=../">');
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();