Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 25 lines (17 sloc) 0.524 kb
1482340 @p-m-p adding files to project
authored
1 <?php
2
3 require 'site-config.php';
a2050be @p-m-p cleaning out for default theme
authored
4 require 'app/Plugins.php';
5 require 'app/Plugin.php';
1482340 @p-m-p adding files to project
authored
6 require 'app/Pageloader.php';
ee6a0db @p-m-p adding plugin architecture
authored
7 require 'app/Mailer.php';
8
9 Plugins::register_all();
10
1482340 @p-m-p adding files to project
authored
11 // main pages controller
12 $page_name = array_key_exists('page', $_GET) ? $_GET['page'] : 'home';
13 $loader = new PageLoader($page_name);
ee6a0db @p-m-p adding plugin architecture
authored
14
1482340 @p-m-p adding files to project
authored
15 // Ajax partial request from jNavigate
16 if (array_key_exists('jnavigate', $_REQUEST)) {
ee6a0db @p-m-p adding plugin architecture
authored
17
1482340 @p-m-p adding files to project
authored
18 $loader->view();
19 exit();
ee6a0db @p-m-p adding plugin architecture
authored
20
1482340 @p-m-p adding files to project
authored
21 }
ee6a0db @p-m-p adding plugin architecture
authored
22
23 // pull in theme index page
1482340 @p-m-p adding files to project
authored
24 include 'themes/'.THEME.'/index.php';
Something went wrong with that request. Please try again.