-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.php
executable file
·35 lines (24 loc) · 924 Bytes
/
load.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
<?php
include( "config.php" );
define( "SITE_PATH", dirname(__FILE__) . "/" );
define( "SITE_URL", "/" );
// This is where generated thumbnails and originals are kept
// It can be located anywhere, as long as it's writable and web-accessible
define( "STORAGE_URL", SITE_URL . "storage/" );
define( "STORAGE_PATH", SITE_PATH . "storage/" );
// File upload stuff
define( "UPLOAD_PATH", STORAGE_PATH . "originals/" );
define( "IMAGE_PATH", STORAGE_PATH . "images/" );
define( "IMAGE_URL", STORAGE_URL . "images/" );
// Includes URL
define( "INCLUDES_URL", SITE_URL . "includes/" );
// Admin-specific constants
define( "ADMIN_PATH", SITE_PATH . "admin/" );
if( !MOD_REWRITE_ENABLED ){
define( "ADMIN_URL", SITE_URL . "admin/index.php/" );
} else {
define( "ADMIN_URL", SITE_URL . "admin/" );
}
define( "ADMIN_INCLUDES_PATH", ADMIN_PATH . "includes/" );
define( "ADMIN_TEMPLATE_PATH", ADMIN_PATH . "templates/" );
?>