Skip to content

Core Library

The current page demonstrates the core functionalities of the CMS system, showcasing essential features such as content creation, editing, and organization. It highlights tools for managing digital assets, user roles, and permissions, allowing users to efficiently control and customize the website's content. This page serves as a practical overview of how the CMS enables streamlined content management, workflow automation, and publishing capabilities.

Status Check

Function Description Parameters
hive__is_main($object) Checks if the current Viewed Site Module mode is the Administrator Page (Main Site) - True if yes, False if no.

URL Builder

Function Description Parameters
hive__url($array) Generates a relative URL based on an array of values. $array - An array of values used to construct the URL.

Error Page

Function Description Parameters
hive__error($title, $subtitle, $description, $exit, $code) Generates an HTML error page with custom information. - $title - The title of the error page.
- $subtitle - A subtitle for the error.
- $description - A description of the error.
- $exit - A boolean indicating whether to exit after displaying the error.
- $code - An optional HTTP response code (numeric).

Access Status

Function Description Parameters
hive__access($object, $rights, $displayerror = false) Checks access rights for a user with optional groups and can display an error page. - $object - An object that contains information about permissions.
- $rights - An array of access rights to check.
- $displayerror - A boolean indicating whether to display an error page on access denial.

User Values

Function Description Parameters
hive__user_lang_set($object, $user_id, $hive_mode, $lang_name) Save a default language for the user in the given site mode in the users' database (will be validated with the available language array). - $object - Object Array
- $user_id - User ID to change for
- $hive_mode - Site Mode to change for
- $lang_name - Change the language for this user in this site mode to this value
hive__user_theme_set($object, $user_id, $hive_mode, $theme_name) Save a default theme for the user in the given site mode in the users' database (will be validated with the available themes array). - $object - Object Array
- $user_id - User ID to change for
- $hive_mode - Site Mode to change for
- $theme_name - Change the theme for this user in this site mode to this value
hive__user_theme_sub_set($object, $user_id, $hive_mode, $theme_subsettings) Save theme subsettings if required for the user in the given site mode in the users' database. - $object - Object Array
- $user_id - User ID to change for
- $hive_mode - Site Mode to change for
- $theme_subsettings - Change Theme Subsettings to this value
hive__user_color_set($object, $user_id, $hive_mode, $color_code) Save a default color for the user in the given site mode in the users' database. - $object - Object Array
- $user_id - User ID to change for
- $hive_mode - Site Mode to change for
- $color_code - Change color for this user in this site mode to this value

Templates

Function Description Parameters
Login and Account Execution Functions
hive__template_mail_activate Execution to activate new mail. $object, $get_token = "mai_token", $get_user = "mai_user", $message = true, $redirect = _HIVE_URL_REL_
hive__template_user_activate Execution to activate a user. $object, $get_token = "act_token", $get_user = "act_user", $message = true, $redirect = _HIVE_URL_REL_
hive__template_recover Request a new Recover of Account and Send Mail to Account. $object, $rec_url = false, $get_token = "rec_token", $get_user = "rec_user", $message = true, $redirect = _HIVE_URL_REL_
hive__template_login Login Executions. $object, $cookies_allow = false

Various

Function Description Parameters
hive__folder_create Create a folder with htaccess or forwarding file if necessary. $folderpath, $forwardfile = false, $denie_access = false
hive__hsc Alias for htmlspecialchars $value
hive__trim Alias for trim $value
hive__hen Alias for htmlentities $value
hive__require_once Require Once Alias $object, $filepath
hive__require Require Alias $object, $filepath
hive__require_x Include $FILEPATH./version.php and return $x array $filepath
hive__extension_path Get Array with current Site modules Extension in Parameter $hive_mode
hive__download($filePath) Download all files even if restricted with required filepath (absolute) $filePath