-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
30 lines (24 loc) · 856 Bytes
/
index.php
File metadata and controls
30 lines (24 loc) · 856 Bytes
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
<?php
/**
* Request forwarder, look at common/index.php for the action and license
* @package EDK
*/
$forum_name = "<span class=\"grdmainforum\">Gradient</span>";
require('/etc/emcom/mybbauth.php');
// Enable custom error handling.
require_once ('common/includes/class.edkerror.php');
set_error_handler(array('EDKError', 'handler'), E_ALL & ~(E_STRICT | E_NOTICE | E_USER_NOTICE) );
@error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_USER_NOTICE));
// Check we're using PHP5
if(phpversion() < '5') die("PHP5 is required to run. You have PHP ".phpversion());
// Set up include paths.
if (!substr_compare(PHP_OS, 'win', 0, 3, true))
{
@set_include_path(get_include_path() . PATH_SEPARATOR . '.\\common\\includes');
}
else
{
@set_include_path(get_include_path() . PATH_SEPARATOR . './common/includes');
}
// Party time!
include('common/index.php');