root/releases/0.1.1b/_files/action_redirection.php

Revision 2, 418 bytes (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     //    ELGG files perform-action-then-redirect page
4
5     // Run includes
6         require("../includes.php");
7         
8         run("files: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.