@@ 117-121 (lines=5) @@ | ||
114 | */ |
|
115 | public static function init($configuration = []) |
|
116 | { |
|
117 | if (!version_compare(PHP_VERSION, '5.6.0', 'ge')) { |
|
118 | echo sprintf('<p>Sorry, YAWIK requires at least PHP 5.6.0 to run, but this server currently provides PHP %s</p>', PHP_VERSION); |
|
119 | echo '<p>Please ask your servers\' administrator to install the proper PHP version.</p>'; |
|
120 | exit; |
|
121 | } |
|
122 | ||
123 | ini_set('display_errors', true); |
|
124 | ini_set('error_reporting', E_ALL | E_STRICT); |
@@ 138-142 (lines=5) @@ | ||
135 | ||
136 | date_default_timezone_set('Europe/Berlin'); |
|
137 | ||
138 | if (!version_compare(PHP_VERSION, '5.6.0', 'ge')) { |
|
139 | echo sprintf('<p>Sorry, YAWIK requires at least PHP 5.6.0 to run, but this server currently provides PHP %s</p>', PHP_VERSION); |
|
140 | echo '<p>Please ask your servers\' administrator to install the proper PHP version.</p>'; |
|
141 | exit; |
|
142 | } |
|
143 | ||
144 | if (php_sapi_name() == 'cli-server') { |
|
145 | $parseUrl = parse_url(substr($_SERVER["REQUEST_URI"], 1)); |