2024-01-16 20:55:27 +01:00
|
|
|
<?php
|
2024-01-31 22:05:23 +01:00
|
|
|
function loadRouterConfig(): void
|
|
|
|
{
|
2024-01-16 20:55:27 +01:00
|
|
|
global $routerConfig;
|
|
|
|
|
2024-02-03 16:18:48 +01:00
|
|
|
$routerConfig["default_page"] = "index";
|
2024-01-16 20:55:27 +01:00
|
|
|
|
|
|
|
$routerConfig["default_site"] = "home";
|
|
|
|
|
|
|
|
$routerConfig["template_dir"] = "templates/";
|
|
|
|
|
2024-01-18 11:49:38 +01:00
|
|
|
$routerConfig["endpoint_dir"] = "endpoints/";
|
|
|
|
|
2024-01-16 20:55:27 +01:00
|
|
|
$routerConfig["page_dir"] = "pages/";
|
2024-01-16 21:31:19 +01:00
|
|
|
|
|
|
|
$routerConfig["protocol"] = "https://";
|
2024-01-31 22:05:23 +01:00
|
|
|
|
2024-02-01 10:50:07 +01:00
|
|
|
$routerConfig["logged_out_permission_level"] = 1;
|
2024-01-31 22:05:23 +01:00
|
|
|
|
2024-02-01 10:50:07 +01:00
|
|
|
$routerConfig["logged_in_default_permission_level"] = 2;
|
2024-01-31 22:05:23 +01:00
|
|
|
|
2024-02-01 10:50:07 +01:00
|
|
|
$routerConfig["verified_permission_level"] = 3;
|
2024-01-31 22:05:23 +01:00
|
|
|
|
2024-02-01 10:50:07 +01:00
|
|
|
$routerConfig["trustworthy_permission_level"] = 4;
|
2024-01-31 22:05:23 +01:00
|
|
|
|
2024-02-01 10:50:07 +01:00
|
|
|
$routerConfig["moderator_permission_level"] = 5;
|
2024-01-31 22:05:23 +01:00
|
|
|
|
2024-01-31 23:07:12 +01:00
|
|
|
$routerConfig["user_admin_permission_level"] = 254;
|
|
|
|
|
|
|
|
$routerConfig["admin_permission_level"] = 255;
|
|
|
|
|
|
|
|
$routerConfig["default_page_permission_level"] = 255;
|
|
|
|
|
|
|
|
$routerConfig["default_page_secret"] = 1;
|
2024-01-16 20:55:27 +01:00
|
|
|
}
|