File: goto.php

package info (click to toggle)
twig 2.8.3-2.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,944 kB
  • ctags: 3,571
  • sloc: php: 64,629; makefile: 85; sh: 69; perl: 38; sql: 35; pascal: 35
file content (12 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
<?php	// TWIG		GOTO somewhere else
 @extract($_GET,EXTR_SKIP);

	// This is mainly a simple thing that Chris wanted put in.

	if( !eregi( "^(ht|f)tp://", $location ) )
		{
 		$location = "http://" . $location;
		}

	Header( "Location: $location" );
?>