ob_start(); include_once($_SERVER[DOCUMENT_ROOT].'/assets/p/class.vacmodconf.php'); $vac2 = &new vacmodconf(); $id = ( preg_match("/^[\s0-9a-zA-Z]*$/", $_GET['id']) ) ? $_GET['id'] : false; // check alphanumeric \s allow white space and $emptycat = ( preg_match("/^[\s0-9a-zA-Z]*$/", $_GET['emptycat']) ) ? $_GET['emptycat'] : false; // check alphanumeric \s allow white space and $cat = ( preg_match("/^[\s0-9a-zA-Z]*$/", $_GET['cat']) ) ? $_GET['cat'] : false; // check alphanumeric \s allow white space and $vacid = intval($_GET['vacid']); // force integer // Sort out page titles if (!$id && !$emptycat) { $heading = 'Careers'; //$link = ' > '.$heading.''; $title = 'Careers'; } else if ($id && !$cat) { $heading = 'All'; //$link = ' > '.$heading.''; $link = ' > '.$heading; $title = 'Careers: All'; } else if ($id && $cat) { $heading = ucfirst($cat); //$link = ' > '.ucfirst($heading).''; $link = ' > '.ucfirst($heading); $title = 'Careers: '. ucfirst($heading); } else if ($emptycat) { $heading = ucfirst($emptycat); //$link = ' > '.ucfirst(strtolower($heading)).''; $link = ' > '.ucfirst(strtolower($heading)); $title = 'Careers: '. ucfirst($heading); } ?>