Skip to content

Commit a5d5552

Browse files
committed
Added redirect function
1 parent 3c15ef8 commit a5d5552

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

system/library/functions.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,5 +926,21 @@ function get_browser_info(){
926926
}
927927

928928

929+
930+
//-------------------------------------------------------------
931+
//
932+
// URL FUNCTIONS
933+
//
934+
//-------------------------------------------------------------
935+
936+
// alias for redirect
937+
function reindex( $url ){
938+
redirect( $url );
939+
}
940+
941+
function redirect( $url ){
942+
header( "location: $url" );
943+
}
944+
929945

930946
// -- end

0 commit comments

Comments
 (0)