forked from Adleraci/adlerka.top
36 lines
930 B
PHP
36 lines
930 B
PHP
<?php
|
|
function loadRouterConfig(): void
|
|
{
|
|
global $routerConfig;
|
|
|
|
$routerConfig["default_page"] = "index";
|
|
|
|
$routerConfig["default_site"] = "home";
|
|
|
|
$routerConfig["template_dir"] = "templates/";
|
|
|
|
$routerConfig["endpoint_dir"] = "endpoints/";
|
|
|
|
$routerConfig["page_dir"] = "pages/";
|
|
|
|
$routerConfig["protocol"] = "https://";
|
|
|
|
$routerConfig["logged_out_permission_level"] = 1;
|
|
|
|
$routerConfig["logged_in_default_permission_level"] = 2;
|
|
|
|
$routerConfig["verified_permission_level"] = 3;
|
|
|
|
$routerConfig["trustworthy_permission_level"] = 4;
|
|
|
|
$routerConfig["moderator_permission_level"] = 5;
|
|
|
|
$routerConfig["user_admin_permission_level"] = 254;
|
|
|
|
$routerConfig["admin_permission_level"] = 255;
|
|
|
|
$routerConfig["default_page_permission_level"] = 255;
|
|
|
|
$routerConfig["default_page_secret"] = 1;
|
|
}
|