Нет описания

.htrouter.php 479B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * This file is part of the Phalcon Developer Tools.
  4. *
  5. * (c) Phalcon Team <team@phalcon.io>
  6. *
  7. * For the full copyright and license information, please view
  8. * the LICENSE file that was distributed with this source code.
  9. */
  10. $uri = urldecode(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
  11. if ($uri !== '/' && file_exists(__DIR__ . '/public' . $uri)) {
  12. return false;
  13. }
  14. $_GET['_url'] = $_SERVER['REQUEST_URI'];
  15. require_once __DIR__ . '/public/index.php';