diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-06-12 14:00:58 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-06-12 14:00:58 +0000 |
| commit | fe93b8b3961a0812041f0ef32ef3e2dc9d650154 (patch) | |
| tree | 3c0c69d9fa0f1c31256ac0cc6d0c85dc030b34e4 /redirect.php | |
| parent | 6f95970f48b112ccc2859581bba639af1aa15f33 (diff) | |
| download | liberty-fe93b8b3961a0812041f0ef32ef3e2dc9d650154.tar.gz liberty-fe93b8b3961a0812041f0ef32ef3e2dc9d650154.tar.bz2 liberty-fe93b8b3961a0812041f0ef32ef3e2dc9d650154.zip | |
Add redirect.php for use with HTMLPurifiers redirect facility.
Diffstat (limited to 'redirect.php')
| -rw-r--r-- | redirect.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/redirect.php b/redirect.php new file mode 100644 index 0000000..d6f6ece --- /dev/null +++ b/redirect.php @@ -0,0 +1,11 @@ +<?php +require_once('../bit_setup_inc.php'); +if (!empty($_REQUEST['q'])) { + // ToDo: It would be nice to be able to track hits out... + header( 'Location:'.$_REQUEST['q'] ); +} +else { + $_REQUEST['error'] = tra('The redirect did not include a url.'); + include( KERNEL_PKG_PATH . 'error.php' ); +} +?>
\ No newline at end of file |
