if (user::accessLevel($_COOKIE['id']) == 1) {
            if ($_SERVER['REQUEST_METHOD'] == 'POST') {
                site::INSERT($_POST['name'], $_POST['hostingID'], $_POST['managerID'], $_POST['registratorID']);
                //header("Location: /site");
            } else {
                siteController::loadView('new', $args = array());
            }
        } else {
            echo "You have no access";
        }
    }
    public function Run($action, $args)
    {
        $action = strtolower($action);
        if ($action == 'index') {
            siteController::index();
        } elseif ($action == 'view') {
            siteController::view((int) $args[0]);
        } elseif ($action == 'edit') {
            siteController::edit((int) $args[0]);
        } elseif ($action == 'new') {
            siteController::newEntry();
        } elseif ($action == 'delete') {
            siteController::delete((int) $args[0]);
        } else {
            header("Location: /site");
        }
    }
}
siteController::Run($router->action, $router->args);