-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInit.inc.php
executable file
·45 lines (30 loc) · 1.49 KB
/
Init.inc.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
<?
namespace Asenine;
define('RENDERSTART', microtime(true));
require __DIR__ . '/Settings.inc.php';
define('ASENINE_DIR_CLASS', ASENINE_DIR . 'class/');
define('ASENINE_DIR_COMMON', ASENINE_DIR . 'common/');
define('ASENINE_DIR_CONFIG', ASENINE_DIR . 'config/');
define('ASENINE_DIR_INCLUDE', ASENINE_DIR . 'include/');
define('ASENINE_DIR_SITES', ASENINE_DIR_ROOT . 'sites/');
require ASENINE_DIR_INCLUDE . 'Functions.Global.inc.php';
require ASENINE_DIR_INCLUDE . 'Functions.Asenine.inc.php';
asenineDef('DEBUG', false);
asenineDef('HOST', isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : null);
asenineDef('ASENINE_DIR_TEMP', '/tmp/');
asenineDef('ASENINE_DIR_SITES', ASENINE_DIR_ROOT . 'sites/');
asenineDef('ASENINE_DIR_ARCHIVE', ASENINE_DIR_ROOT . 'archive/');
asenineDef('ASENINE_DIR_MEDIA', ASENINE_DIR_ARCHIVE . 'media/');
asenineDef('ASENINE_DIR_MEDIA_PUBLIC', ASENINE_DIR_MEDIA . 'public/');
define('HTTPS', isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off');
define('PROTOCOL', HTTPS ? 'https' : 'http');
define('ASENINE_MEDIA_TYPE_AUDIO', 'audio');
define('ASENINE_MEDIA_TYPE_IMAGE', 'image');
define('ASENINE_MEDIA_TYPE_ROTATE', 'rotate');
define('ASENINE_MEDIA_TYPE_VIDEO', 'video');
define('ARCHIVE_NAMESPACE_MEDIA_SOURCE', 'media/source');
define('ARCHIVE_NAMESPACE_MEDIA_AUTOGEN', 'media/autogen');
if( !defined('CACHE_FORCE_REGENERATE') )
define('CACHE_FORCE_REGENERATE', isset($_GET['cacheForceRegenerate']));
mb_internal_encoding('UTF-8');
\addIncludePath(ASENINE_DIR_CLASS);