2026-10-03 01:02:55 -04:00
|
|
|
<?php
|
|
|
|
|
$p = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
|
|
|
|
|
$f = __DIR__ . '/tinker' . $p;
|
|
|
|
|
if ($p !== '/' && is_file($f) && !str_ends_with($f, '.php')) { return false; }
|
|
|
|
|
chdir(__DIR__ . '/tinker');
|
|
|
|
|
require __DIR__ . '/tinker/index.php';
|