mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-14 00:51:33 +01:00
Remove CLI Server
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
|
||||
/*$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
|
||||
if (php_sapi_name() === 'cli-server' && is_file($filename)) {
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
require_once __DIR__ . '/src/app.php';
|
||||
|
||||
$app->run();
|
||||
|
||||
Reference in New Issue
Block a user