diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-11-11 09:50:36 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-11-11 09:50:36 +0000 |
| commit | 056273b54ade7898a57a0a9699d9be2d5c358227 (patch) | |
| tree | 0504039d613eb9d4d08cbde6697cf63e2bea5dec /redirect.php | |
| parent | 68e9a85467dfa0a974c20476550df7a6d4094b96 (diff) | |
| download | liberty-056273b54ade7898a57a0a9699d9be2d5c358227.tar.gz liberty-056273b54ade7898a57a0a9699d9be2d5c358227.tar.bz2 liberty-056273b54ade7898a57a0a9699d9be2d5c358227.zip | |
indent with tabs
Diffstat (limited to 'redirect.php')
| -rw-r--r-- | redirect.php | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/redirect.php b/redirect.php index 6bc4c00..8a7c37a 100644 --- a/redirect.php +++ b/redirect.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/redirect.php,v 1.3 2007/06/22 09:17:13 lsces Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/redirect.php,v 1.4 2008/11/11 09:50:36 squareing Exp $ * lookup_content_inc * * @author spider <spider@steelsun.com> @@ -11,12 +11,11 @@ /** * Required setup */ -require_once('../bit_setup_inc.php'); -if (!empty($_REQUEST['q'])) { - bit_redirect($_REQUEST['q'] ); +require_once( '../bit_setup_inc.php' ); +if( !empty( $_REQUEST['q'] )) { + bit_redirect( $_REQUEST['q'] ); +} else { + $_REQUEST['error'] = tra( 'The redirect did not include a url.' ); + include( KERNEL_PKG_PATH . 'error.php' ); } -else { - $_REQUEST['error'] = tra('The redirect did not include a url.'); - include( KERNEL_PKG_PATH . 'error.php' ); -} -?>
\ No newline at end of file +?> |
