web/routing.php
author Yves-Marie Haussonne <1218002+ymph@users.noreply.github.com>
Thu, 22 Mar 2018 17:13:30 +0100
changeset 1420 2a3e795d7a06
parent 1388 72b2ca5a481e
permissions -rw-r--r--
Correct enmi 2017 session 2 project

<?php
// www/routing.php
if (preg_match('/\.(?:png|jpg|jpeg|gif)$/', $_SERVER["REQUEST_URI"])) {
    return false;
} else {
    include __DIR__ . '/index.php';
}