diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-02-19 01:44:02 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-02-19 01:44:11 +0300 |
commit | 3741f7cf78a288e967415ccb6736c888a21c211b (patch) | |
tree | a48d8331c9936d6c108de4d0f9179a089b1e56e6 /localwebsite/htdocs/index.php | |
parent | d79309e498cdc1358c81367ce2a93a5731e517d1 (diff) |
web_kbn: almost completely ported lws to python
Diffstat (limited to 'localwebsite/htdocs/index.php')
-rw-r--r-- | localwebsite/htdocs/index.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/localwebsite/htdocs/index.php b/localwebsite/htdocs/index.php deleted file mode 100644 index cd32132..0000000 --- a/localwebsite/htdocs/index.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -require_once __DIR__.'/../init.php'; - -$router = new router; - -$router->add('routing/', 'Modem routing_smallhome_page'); -$router->add('routing/switch-small-home/', 'Modem routing_smallhome_switch'); -$router->add('routing/{ipsets,dhcp}/', 'Modem routing_${1}_page'); -$router->add('routing/ipsets/{add,del}/', 'Modem routing_ipsets_${1}'); - -$router->add('sms/', 'Modem sms'); -// $router->add('modem/set.ajax', 'Modem ctl_set_ajax'); - -// inverter -$router->add('inverter/set-osp/', 'Inverter set_osp'); - -// misc -$router->add('/', 'Misc main'); -$router->add('sensors/', 'Misc sensors_page'); -$router->add('cams/', 'Misc cams'); -$router->add('cams/([\d,]+)/', 'Misc cams id=$(1)'); -$router->add('cams/stat/', 'Misc cams_stat'); -$router->add('debug/', 'Misc debug'); - -// auth -$router->add('auth/', 'Auth auth'); -$router->add('deauth/', 'Auth deauth'); - - -$route = routerFind($router); -if ($route === false) - (new FakeRequestHandler)->dispatch('404'); - -list($handler, $act, $RouterInput) = $route; - -$handler_class = $handler.'Handler'; -if (!class_exists($handler_class)) { - debugError('index.php: class '.$handler_class.' not found'); - (new FakeRequestHandler)->dispatch('404'); -} - -(new $handler_class)->dispatch($act); |