|
Revision 9, 0.5 kB
(checked in by sven, 3 years ago)
|
snapshot of elgg 0.2
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// Run includes |
|---|
| 6 |
require("../includes.php"); |
|---|
| 7 |
|
|---|
| 8 |
run("files:init"); |
|---|
| 9 |
|
|---|
| 10 |
global $redirect_url; |
|---|
| 11 |
global $messages; |
|---|
| 12 |
global $page_owner; |
|---|
| 13 |
|
|---|
| 14 |
if (isset($_REQUEST['files_owner'])) { |
|---|
| 15 |
$page_owner = (int) $_REQUEST['files_owner']; |
|---|
| 16 |
} |
|---|
| 17 |
|
|---|
| 18 |
if (isset($messages) && sizeof($messages) > 0) { |
|---|
| 19 |
$_SESSION['messages'] = $messages; |
|---|
| 20 |
} |
|---|
| 21 |
|
|---|
| 22 |
if (defined('redirect_url')) { |
|---|
| 23 |
header("Location: " . redirect_url); |
|---|
| 24 |
} else { |
|---|
| 25 |
header("Location: " . url); |
|---|
| 26 |
} |
|---|
| 27 |
|
|---|
| 28 |
?> |
|---|