-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.php
46 lines (36 loc) · 807 Bytes
/
auth.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
<?php
/**
* [PHPFOX_HEADER]
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox
* @version $Id: auth.php 7004 2013-12-20 14:23:28Z Raymond_Benc $
*/
// Make sure we are running PHP5
if (version_compare(phpversion(), '5', '<') === true)
{
exit('phpFox 2 or higher requires PHP 5 or newer.');
}
ob_start();
/**
* Key to include phpFox
*
*/
define('PHPFOX', true);
/**
* Directory Seperator
*
*/
define('PHPFOX_DS', DIRECTORY_SEPARATOR);
/**
* phpFox Root Directory
*
*/
define('PHPFOX_DIR', dirname(__FILE__) . PHPFOX_DS);
define('PHPFOX_START_TIME', array_sum(explode(' ', microtime())));
// Require phpFox Init
require(PHPFOX_DIR . 'include' . PHPFOX_DS . 'init.inc.php');
Phpfox::getComponent('apps.view', array(), 'controller');
ob_end_flush();
?>