From 31759cb3b3090c1b9d68ac54f2d2622584003563 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 15 Dec 2008 08:37:09 +0000 Subject: Delete trunk/kohana and trunk/modules/unit_test in preparation to refresh them properly from the vendor branch. --- kohana/helpers/url.php | 247 ------------------------------------------------- 1 file changed, 247 deletions(-) delete mode 100644 kohana/helpers/url.php (limited to 'kohana/helpers/url.php') diff --git a/kohana/helpers/url.php b/kohana/helpers/url.php deleted file mode 100644 index 12453936..00000000 --- a/kohana/helpers/url.php +++ /dev/null @@ -1,247 +0,0 @@ - 0) - { - header('HTTP/1.1 300 Multiple Choices'); - header('Location: '.$uri[0]); - - $choices = ''; - foreach ($uri as $href) - { - $choices .= '
  • '.$href.'
  • '; - } - - exit('

    301 - Multiple Choices:

    '); - } - } - else - { - $uri = $uri[0]; - - if ($method == 'refresh') - { - header('Refresh: 0; url='.$uri); - } - else - { - $codes = array - ( - '301' => 'Moved Permanently', - '302' => 'Found', - '303' => 'See Other', - '304' => 'Not Modified', - '305' => 'Use Proxy', - '307' => 'Temporary Redirect' - ); - - $method = isset($codes[$method]) ? $method : '302'; - - header('HTTP/1.1 '.$method.' '.$codes[$method]); - header('Location: '.$uri); - } - - exit('

    '.$method.' - '.$codes[$method].'

    '.$uri.'

    '); - } - } - -} // End url \ No newline at end of file -- cgit v1.2.3