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

Revision 296, 0.5 kB (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 weblog perform-action-then-redirect page
4
5     // Run includes
6         require_once(dirname(dirname(__FILE__))."/includes.php");
7         
8         run("weblogs: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.