2 /*------begin------ This protection code was suggested by Luki R. luki@karet.org ---- */
3 if (eregi("inc_resolve_dept_dept.php",$PHP_SELF))
4 die('<meta http-equiv="refresh" content="0; url=../">');
7 if(!isset($dept)) $dept='';
8 if(!isset($ck_thispc_dept)) $ck_thispc_dept='';
9 if(!isset($ck_thispc_station)) $ck_thispc_station='';
10 if(!isset($ck_thispc_room)) $ck_thispc_room='';
11 if(!isset($checkdept)) $checkdept='';
18 $dept=$ck_thispc_dept;
21 elseif($ck_thispc_station)
23 $dept=$ck_thispc_station;
26 elseif($ck_thispc_room)
28 $dept=$ck_thispc_station;
36 if(trim($dept)=='') $dept='plast';
37 $Dept2Dept=get_meta_tags($root_path.'global_conf/$lang/resolve_dept_dept.pid');
39 $dx=strtolower($dept);
40 //print $Dept2Dept[deptfilter];
41 $df=explode(',',$Dept2Dept[deptfilter
]);
42 while(list($x,$v)=each($df))
44 $dx=str_replace($v,'',$dx);
47 $dx=strtr($dx,'/-_*:;><+ ','~~~~~~~~~~');
48 $dx=str_replace('~','',$dx);
49 //print "init $dept <br>";
50 //print $dx." dx <p>";
51 while(list($x,$v)=each($Dept2Dept))
62 if(!$deptOK) $dept='plast';