root/devel-backup/_weblog/action_redirection.php

Revision 45, 399 bytes (checked in by sven, 3 years ago)

dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation

  • 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("../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.