root/releases/elgg0.8rc2/_files/action_redirection.php

Revision 296, 470 bytes (checked in by carmartin, 3 years ago)

Includes should use full path given that we know where things are. Patch 1.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3 //    ELGG files perform-action-then-redirect page
4
5 // Run includes
6 require_once(dirname(dirname(__FILE__))."/includes.php");
7
8 run("files:init");
9
10 global $redirect_url;
11 global $messages;
12 global $page_owner;
13
14 $page_owner = optional_param('files_owner');
15
16 if (isset($messages) && sizeof($messages) > 0) {
17     $_SESSION['messages'] = $messages;
18 }
19
20 if (defined('redirect_url')) {
21     header("Location: " . redirect_url);
22 } else {
23     header("Location: " . url);
24 }
25
26 ?>
Note: See TracBrowser for help on using the browser.