From 232aa1924c8c0f10d87b210b46c9f061af5c844c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 17 Oct 2010 13:29:57 +0000 Subject: added files --- h-source/Library/HeaderObj.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 h-source/Library/HeaderObj.php (limited to 'h-source/Library/HeaderObj.php') diff --git a/h-source/Library/HeaderObj.php b/h-source/Library/HeaderObj.php new file mode 100644 index 0000000..f4fe65b --- /dev/null +++ b/h-source/Library/HeaderObj.php @@ -0,0 +1,28 @@ +domainName = $domainName; + } + + //redirect to $path after the time $time + //string that appears until the page is redirected + public function redirect($path,$time = 0,$string = null) + { + $completePath = Url::getRoot().$path; + header('Refresh: '.$time.';url='.$completePath); + if (isset($string)) echo $string; + exit; + } + +} -- cgit v1.2.3