Go to the source code of this file.
Functions | |
| redirect ($url) | |
| Redirect the user's web browser to a different URL. | |
Definition in file redirect.php.
| redirect | ( | $ | url | ) |
Redirect the user's web browser to a different URL.
| $url | -- target url |
Definition at line 16 of file redirect.php.
References smarty_init().
Referenced by do_action(), do_login(), logout(), show_collection(), and view_item().
00016 { 00017 global $smarty, $debug_level; 00018 00019 if (empty($url)) { 00020 $url = "index.php"; 00021 } 00022 00023 if (empty($smarty)) { 00024 $smarty =& smarty_init(); 00025 } 00026 00027 $smarty->assign("url", $url); 00028 $smarty->assign("debug_level", $debug_level); 00029 00030 if ($debug_level == 0) { 00031 header("Location: $url"); 00032 } 00033 00034 $smarty->display('header.tpl'); 00035 $smarty->display('redirect.tpl'); 00036 $smarty->display('footer.tpl'); 00037 exit(0); 00038 }
Here is the call graph for this function:

1.4.7