|
Revision 1369, 0.7 kB
(checked in by rho, 1 year ago)
|
cleanup
- use to templates_page_output function to display page
Signed-off: Rolando Espinoza La fuente <rho@prosoftpeople.com>
|
- Property svn:mime-type set to
text/plain
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
require_once(dirname(dirname(__FILE__))."/../includes.php"); |
|---|
| 4 |
|
|---|
| 5 |
global $page_owner, $profile_id; |
|---|
| 6 |
|
|---|
| 7 |
run("weblogs:init"); |
|---|
| 8 |
run("profile:init"); |
|---|
| 9 |
|
|---|
| 10 |
$username = trim(optional_param('profile_name','')); |
|---|
| 11 |
$user_id = user_info_username("ident", $username); |
|---|
| 12 |
if (empty($user_id)) { |
|---|
| 13 |
$user_id = $page_owner; |
|---|
| 14 |
} else { |
|---|
| 15 |
$page_owner = $user_id; |
|---|
| 16 |
$profile_id = $user_id; |
|---|
| 17 |
} |
|---|
| 18 |
|
|---|
| 19 |
run("rss:init"); |
|---|
| 20 |
|
|---|
| 21 |
define('context','resources'); |
|---|
| 22 |
|
|---|
| 23 |
templates_page_setup(); |
|---|
| 24 |
|
|---|
| 25 |
$title = run("profile:display:name") ." :: " . __gettext("Publish feeds to blog"); |
|---|
| 26 |
|
|---|
| 27 |
$body = run("rss:subscriptions:publish:blog"); |
|---|
| 28 |
|
|---|
| 29 |
templates_page_output($title, $body); |
|---|
| 30 |
|
|---|
| 31 |
?> |
|---|