root/devel-backup/_invite/index.php

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

dos2unix to clean line endings, set svn property eol-style native, some whitespace homogenisation

  • Property svn:eol-style set to native
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         define("context", "network");
12         
13     // You must be logged on to view this!
14         if (logged_on) {
15         
16         $title = gettext("Invite a Friend");
17         
18         $body = run("content:invite:invite");
19         $body .= run("invite:invite");
20         
21         $body = run("templates:draw", array(
22                         'context' => 'contentholder',
23                         'title' => $title,
24                         'body' => $body
25                     )
26                     );
27         
28         echo run("templates:draw:page", array(
29                         $title, $body
30                     )
31                     );
32                 } else {
33                     header("Location: " . url);
34                 }
35
36 ?>
Note: See TracBrowser for help on using the browser.