isAdmin()) { $this->http401($routed, $remainder); return; } $method = $_SERVER['REQUEST_METHOD']; switch ($method) { case 'PUT': $_POST = $_PUT; case 'POST': // We're PUTing an updated configuration. $this->update(); break; } $this->show_index(); } private function show_index() { } private function update() { } }