Initial commit: apps.supersam24.ru
No files matched your search
@@ -0,0 +1,6 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /cut/
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
</IfModule>
|
||||
|
After Width: | Height: | Size: 580 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 753 B |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 280 B |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
@@ -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());
|
||||