root/releases/0.9rc1/mod/invite/index.php

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     //    ELGG invite-a-friend page
3
4     // Run includes
5         require_once(dirname(dirname(__FILE__))."/../includes.php");
6        
7      //error_log ("Aver");   
8         run("profile:init");
9         run("invite:init");
10      
11      //error_log ("Aver 2");   
12         define("context", "network");
13         templates_page_setup();
14
15     // You must be logged on to view this!
16         if (logged_on && $CFG->publicinvite == true) {
17            
18             $title = __gettext("Invite a Friend");
19            
20             $body = run("content:invite:invite");
21             $body .= run("invite:invite");
22            
23             templates_page_output($title, $body);
24
25         } else {
26             header("Location: " . $CFG->wwwroot);
27         }
28
29 ?>
Note: See TracBrowser for help on using the browser.