root/releases/0.1.2a/_invite/index.php

Revision 2, 0.6 kB (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     //    ELGG invite-a-friend page
4
5     // Run includes
6         require("../includes.php");
7         
8         run("profile:init");
9         run("invite:init");
10         
11     // You must be logged on to view this!
12         if (logged_on) {
13         
14         $title = "Invite a Friend";
15         
16         $body = run("content:invite:invite");
17         $body .= run("invite:invite");
18         
19         $body = run("templates:draw", array(
20                         'context' => 'infobox',
21                         'name' => $title,
22                         'contents' => $body
23                     )
24                     );
25         
26         echo run("templates:draw:page", array(
27                         $title, $body
28                     )
29                     );
30                 } else {
31                     header("Location: " . url);
32                 }
33
34 ?>
Note: See TracBrowser for help on using the browser.