Open Journal Systems  3.3.0
lib/pkp/includes/bootstrap.inc.php
Go to the documentation of this file.
1 <?php
2 
27 define('ENV_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? ';' : ':');
28 if (!defined('DIRECTORY_SEPARATOR')) {
29  // Older versions of PHP do not define this
30  define('DIRECTORY_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? '\\' : '/');
31 }
32 define('BASE_SYS_DIR', dirname(INDEX_FILE_LOCATION));
33 chdir(BASE_SYS_DIR);
34 
35 // System-wide functions
36 require('./lib/pkp/includes/functions.inc.php');
37 
38 // Initialize the application environment
39 import('classes.core.Application');
40 
41 return new Application();
BASE_SYS_DIR
const BASE_SYS_DIR(!defined('DIRECTORY_SEPARATOR'))
Definition: lib/pkp/includes/bootstrap.inc.php:32
Application
Class describing this application.
Definition: Application.inc.php:36
INDEX_FILE_LOCATION
const INDEX_FILE_LOCATION
Definition: index.php:64