aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap.php
diff options
context:
space:
mode:
authorHorus32014-09-25 10:33:47 +0200
committerHorus32014-09-25 10:33:47 +0200
commit1fe76ba743a3418da9a0883b29756d442384d0bc (patch)
tree091910ffd183d94c0f8b70a8f4c362f733033b03 /bootstrap/bootstrap.php
parent2036626b560f22efd59673187a2de3b1319fcf8a (diff)
downloadjungegemeinde-1fe76ba743a3418da9a0883b29756d442384d0bc.tar.gz
init
Diffstat (limited to 'bootstrap/bootstrap.php')
-rw-r--r--bootstrap/bootstrap.php56
1 files changed, 0 insertions, 56 deletions
diff --git a/bootstrap/bootstrap.php b/bootstrap/bootstrap.php
deleted file mode 100644
index aab8bbe..0000000
--- a/bootstrap/bootstrap.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<?php
-### loads the vfs environment
-
-require_once( dirname(__FILE__) . '/config.php');
-
-# absolute path
-if ( ! defined('ABSPATH') )
- define('ABSPATH', dirname(__FILE__) . '/');
-
-# scheme, set to https if set, otherwise plain http
-if ( ! defined('SCHEME') ){
- if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
- define('SCHEME', 'https://');
- else
- define('SCHEME', 'http://');
-}
-
-# hostname
-if ( ! defined('HOST') )
- define('HOST', $_SERVER['HTTP_HOST']);
-if ( ! defined('DOMAIN') )
- define('DOMAIN', SCHEME . HOST);
-
-# define session name
-if ( ! defined('SESSION') )
- define('SESSION', 'JGSID');
-
-# define include path for class files
-if ( ! defined('INCLASS') )
- define('INCLASS', 'class/');
-
-# redis access
- if ( ! defined('USE_REDIS') )
- define('USE_REDIS', true);
- if ( ! defined('REDIS_CONNECT') )
- define('REDIS_CONNECT', '/var/run/redis/redis.sock');
- if ( ! defined('REDIS_DB') )
- define('REDIS_DB', 2);
- if ( ! defined('CACHEPREFIX') )
- define('CACHEPREFIX', 'jg_');
-
-# redirects to correct host
-if ( $_SERVER['HTTP_HOST'] != HOST){
- header($_SERVER['SERVER_PROTOCOL']. ' 301 Moved Permanently');
- header('Location: ' . DOMAIN);
- exit;
-}
-
-require(ABSPATH . 'functions.php');
-require(ABSPATH . INCLASS . 'cache.php');
-require(ABSPATH . INCLASS . 'mysql.php');
-require(ABSPATH . INCLASS . 'user.php');
-
-# first install only
-if ( file_exists(ABSPATH . 'setup.php') )
- require(ABSPATH . 'setup.php');