define("ALLOW_HTML_TAGS_IN_POST_GET_REQUESTS",false);
class requestUtils
{
function getRequestObject($elementName,$requestType="")
{
if (strtolower($requestType)=="get")
{
$data = $_GET[$elementName];
}
else if (strtolower($requestType)=="post")
{
$data = $_POST[$elementName];
}
else if (strtolower($requestType)=="cookie")
{
$data = $_COOKIE[$elementName];
}
else
{
$data = $_REQUEST[$elementName];
}
// If results is array.. as in check boxes etc.. return the array as is
if (is_array($data))
{
return $data;
}
else
{
// DO SANITY CHECK HERE
// Trim
$date = trim($data);
// Allow HTML from user input or not (flag set in application Constants)
// do whatever else sanity checking here to prevent XSS and similar user injections
if (ALLOW_HTML_TAGS_IN_POST_GET_REQUESTS)
{
// Remove all HTML Tags from user input
// including SCRIPT, APPLET, EMBED etc..
$data = strip_tags($data);
}
// if magic quotes == on, return data as is
if (get_magic_quotes_gpc()==1)
{
return $data;
}
// if magic quotes == off, then return data with slashes
else
{
return addslashes($data);
}
}
}
}
?>
To reverse the effect of institutionalisation of the young people by providing them with a safe and caring environment where they can grow and develop into independent and respected citizens
To provide homes offering an alternative model to institutionalised care.
To provide supportive employment and develop links with local employers to realise our policy of inclusion.
To work in collaboration with the local council to alleviate poverty in the community.
To provide a supportive education program for those who have been denied a formal and acceptable standard of education.