Initial commit: apps.supersam24.ru
This commit is contained in:
commit
72afea602d
2747 files changed
+682150
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
date_default_timezone_set('Europe/Moscow');
|
||||
|
||||
|
||||
// For built-in server
|
||||
if (php_sapi_name() === 'cli-server') {
|
||||
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
|
||||
|
||||
$url = parse_url(urldecode($_SERVER['REQUEST_URI']));
|
||||
$file = __DIR__ . $url['path'];
|
||||
if (strpos($url['path'], '..') === false && strpos($url['path'], '.') !== false && is_file($file)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
||||
use App\Application;
|
||||
use Cake\Http\Server;
|
||||
|
||||
// Bind your application to the server.
|
||||
$server = new Server(new Application(dirname(__DIR__) . '/config'));
|
||||
|
||||
// Run the request/response through the application and emit the response.
|
||||
$server->emit($server->run());
|
||||
Reference in new issue
Block a user