1
0

euler+programs from single file

This commit is contained in:
2018-01-03 22:08:56 +01:00
parent 8589cb2324
commit dc4262279e
142 changed files with 709 additions and 2056 deletions

View File

@@ -73,7 +73,14 @@ $URL_RULES =
try {
InitPHP();
$path = strtolower(parse_url($_SERVER['REQUEST_URI'])['path']);
if (isProd())
$requri = $_SERVER['REQUEST_URI'];
else
$requri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : 'localhost:80/';
$parse = parse_url($requri);
$path = strtolower(isset($parse['path']) ? $parse['path'] : '');
$pathparts = preg_split('@/@', $path, NULL, PREG_SPLIT_NO_EMPTY);
$partcount = count($pathparts);