root/releases/0.6rc1/index2.php

Revision 297, 0.7 kB (checked in by carmartin, 3 years ago)

Includes should use full path given that we know where things are. Patch 2.

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     require_once(dirname(__FILE__)."/includes.php");
4     templates_page_setup();   
5     if (logged_on) {
6         $body = run("content:mainindex");
7     } else {
8         $body = run("content:mainindex:loggedout");
9     }
10     
11     echo templates_page_draw( array(
12                     sitename,
13                     templates_draw(array(
14                                                     'body' => $body,
15                                                     'title' => gettext("Main Index"),
16                                                     'context' => 'contentholder'
17                                                 )
18                                                 )
19             )
20             );
21             
22 ?>
Note: See TracBrowser for help on using the browser.