ctf-resources/htb/hacktheboo2024/web/web_void_whispers/challenge/index.php

15 lines
421 B
PHP
Raw Permalink Normal View History

2024-10-23 11:10:43 +02:00
<?php spl_autoload_register(function ($name) {
if (preg_match('/Controller$/', $name)) {
$name = "controllers/{$name}";
} elseif (preg_match('/Model$/', $name)) {
$name = "models/{$name}";
}
include_once "{$name}.php";
});
$router = new Router();
$router->new('GET', '/', 'IndexController@index');
$router->new('POST', '/update', 'IndexController@updateSetting');
die($router->match());