-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
27 lines (22 loc) · 823 Bytes
/
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
<?php
/**
* Rewrite (route): All URL requests come through here,
* to make less use of .htaccess mod_rewrite rules
*
* See class file for more detailed details :)
*
*/
// Define application and site paths
// this is so we can avoid using $_SERVER["DOCUMENT_ROOT'] everywhere
// and so the application folder can sit above the site root
define('BEANCOUNTER_PATH', getcwd());
define('SITE_PATH', BEANCOUNTER_PATH . '/site/');
define('APPLICATION_PATH', BEANCOUNTER_PATH . '/application/');
define('LIBRARY_PATH', BEANCOUNTER_PATH . '/library/');
// Include required rewrite class files
require_once(APPLICATION_PATH . '/class/rewrite.class.php');
// Rewrite
$objRewrite = new Rewrite();
// Include required controller
include(APPLICATION_PATH . '/' . $objRewrite->getIncludeFile());
exit;