Add PHPDocs generated by ChatGPT,
add additional clarification to some functions, add addNewsComment function and API, currently untested and not implemented in the client, fix a bunch of stuff that PHPStorm pointed out
This commit is contained in:
@@ -1,4 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Loads and returns the configuration settings for the router.
|
||||
*
|
||||
* This configuration includes various paths, default settings, security levels, SEO settings,
|
||||
* and other parameters essential for the operation of the router and the website's page management.
|
||||
* The configuration array is structured to provide easy access to paths, protocols, permissions,
|
||||
* and other critical settings that define how the router handles requests and serves content.
|
||||
*
|
||||
* @return array Returns an associative array containing all router configuration settings, such as:
|
||||
* - 'inlining': Boolean value determining if CSS/JS should be inlined.
|
||||
* - 'domain': The primary domain name of the website.
|
||||
* - 'tld': Top-level domain for the website.
|
||||
* - 'default_page': Default page to load if no specific page is requested.
|
||||
* - 'default_site': Default site to load if no specific site is requested.
|
||||
* - 'template_dir': Directory path where templates are stored.
|
||||
* - 'endpoint_dir': Directory path for endpoint scripts.
|
||||
* - 'page_dir': Directory path where site pages are stored.
|
||||
* - 'protocol': Protocol to be used (e.g., 'https://').
|
||||
* - 'site_prefix': Prefix for the site title.
|
||||
* - 'permissions': Associative array of user permissions by role.
|
||||
* - 'page': Default settings for pages including secret status and permissions.
|
||||
* - 'newsarticle': Default permissions for news articles.
|
||||
* - 'seo': Search engine optimization settings like author, description, and keywords.
|
||||
*/
|
||||
function loadRouterConfig(): array
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user