root/releases/0.9rc1/mod/newsclient/subscriptions.php

Revision 1369, 0.8 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;
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 (!$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"); // down here cos it sends $page_owner to rss function_actions.php
20    
21     define('context','resources');
22     templates_page_setup();
23    
24     $title = run("profile:display:name", $page_owner) ." :: " . __gettext("Feeds");
25    
26     $body = run("rss:subscriptions", $user_id);
27
28     templates_page_output($title, $body);
29
30 ?>
Note: See TracBrowser for help on using the browser.