forked from hlfcoding/silexhibit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
51 lines (39 loc) · 1.32 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php define('SITE', 'Bonjour!');
/* Indexhibit BackEnd Execution Process */
// -----------------------------------------------------------
// WELCOME TO INDEXHIBIT
//
// A collaboration between Daniel Eatock and Tatiret, c.o.
// Open source and free to use for good in this world.
//
// If we've missed a credit, or you simply deserve more
// credit today, just let us know. Thank you!!!
//
// An MVC without the V. Or with a small v. ;)
// Thank you for shopping at indexhibit.org
// -----------------------------------------------------------
if (file_exists('config/config.php')) {
require_once 'config/config.php';
}
require_once 'defaults.php';
require_once 'bootstrap.php';
require_once 'common.php';
// preloading things
load_helpers(array('html', 'entrance', 'time', 'server'));
// general tools for loading things
load_class('core', false, 'lib');
// "I'm digging for fire" - Pixies
$OBJ =& load_class('router', true, 'lib');
// are we logged in?
$OBJ->access->checkLogin();
// get user prefernces
$OBJ->lang->setlang($OBJ->access->prefs['user_lang']);
// loading our module object
$INDX =& load_class($go['a'], true, 'mod', true);
// referencing wonkiness
// review when there is time
$aINDX =& $INDX;
// loading our module method
$OBJ->tunnel($aINDX, $go['a'], $go['q']);
// output
$INDX->template->output('index');