web/routing.php
author ymh <ymh.work@gmail.com>
Fri, 15 Nov 2024 02:00:51 +0100
changeset 1579 c88b8cc7b2b8
parent 1388 72b2ca5a481e
permissions -rw-r--r--
make sending button inactive when sending

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