|
Revision 138, 0.8 kB
(checked in by sven, 3 years ago)
|
fixing html_activate_urls scope problem
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// ID of profile to view / edit |
|---|
| 6 |
|
|---|
| 7 |
global $profile_id; |
|---|
| 8 |
|
|---|
| 9 |
if (isset($_GET['weblog_name'])) { |
|---|
| 10 |
$profile_id = (int) run("users:name_to_id", $_GET['weblog_name']); |
|---|
| 11 |
} else if (isset($_GET['profile_id'])) { |
|---|
| 12 |
$profile_id = (int) $_GET['profile_id']; |
|---|
| 13 |
} else if (isset($_POST['profile_id'])) { |
|---|
| 14 |
$profile_id = (int) $_POST['profileid']; |
|---|
| 15 |
} else if (isset($_SESSION['userid'])) { |
|---|
| 16 |
$profile_id = (int) $_SESSION['userid']; |
|---|
| 17 |
} else { |
|---|
| 18 |
$profile_id = -1; |
|---|
| 19 |
} |
|---|
| 20 |
|
|---|
| 21 |
global $page_owner; |
|---|
| 22 |
|
|---|
| 23 |
$page_owner = $profile_id; |
|---|
| 24 |
|
|---|
| 25 |
global $page_userid; |
|---|
| 26 |
|
|---|
| 27 |
$page_userid = run("users:id_to_name", $profile_id); |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
global $metatags; |
|---|
| 32 |
$metatags .= "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".url."$page_userid/weblog/rss\" />\n"; |
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
?> |
|---|