define('ENV_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? ';' : ':'); if (!defined('DIRECTORY_SEPARATOR')) { // Older versions of PHP do not define this define('DIRECTORY_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? '\\' : '/'); } define('BASE_SYS_DIR', dirname(INDEX_FILE_LOCATION)); chdir(BASE_SYS_DIR); // System-wide functions require('./lib/pkp/includes/functions.inc.php'); // Initialize the application environment import('classes.core.Application'); return new Application();