root/releases/0.301/_users/action_redirection.php
| Revision 2, 419 bytes (checked in by sven, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | // ELGG weblog perform-action-then-redirect page |
| 4 | |
| 5 | // Run includes |
| 6 | require("../includes.php"); |
| 7 | |
| 8 | run("users:init"); |
| 9 | |
| 10 | global $redirect_url; |
| 11 | global $messages; |
| 12 | |
| 13 | if (isset($messages) && sizeof($messages) > 0) { |
| 14 | $_SESSION['messages'] = $messages; |
| 15 | } |
| 16 | |
| 17 | if (defined('redirect_url')) { |
| 18 | header("Location: " . redirect_url); |
| 19 | } else { |
| 20 | header("Location: " . url); |
| 21 | } |
| 22 | |
| 23 | ?> |
Note: See TracBrowser for help on using the browser.
