Файловый менеджер - Редактировать - /var/www/vhosts/morphe2.dev1.mndrn.cloud/OlD/libs/router.lib.php
Назад
<?php ### GYURAL ### class router { var $routes; function map($match, $direction) { $match = '/'.str_replace(array('#', '/'), array('(\S+)', "\/"), $match) . '/'; $this->routes[$match] = $direction; } function debug() { echo '<pre>'; print_r($this->routes); echo '</pre>'; } function _try($pagina) { foreach($this->routes as $pattern => $action) { if(preg_match($pattern, $pagina)) { preg_match_all($pattern, $pagina, $res); $out = $action; unset($res[0]); foreach($res as $k) $out = preg_replace('/#/', $k[0], $out, 1); return $out; } } return $pagina; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка