2 /*------begin------ This protection code was suggested by Luki R. luki@karet.org ---- */
3 if (eregi("inc_resolve_ward.php",$PHP_SELF))
4 die('<meta http-equiv="refresh" content="0; url=../">');
7 if(!isset($ward_nr)||
!$ward_nr){
8 if($cfg['thispc_ward_nr']){
9 $ward_nr=$cfg['thispc_ward_nr'];
13 require_once($root_path.'include/care_api_classes/class_ward.php');
15 $ward_row=$ward_obj->getWardInfo($ward_nr);
16 $ward_id=$ward_row['ward_id'];
17 $ward_name=$ward_row['name'];