Paths $pth
$pth
is a two-dimensional array containing the relative paths to system files and folders. The first dimension contains the keys 'file'
and 'folder'
.
System
The following paths are available throughout the system:
$pth['folder']['base'] $pth['folder']['cmsimple'] $pth['folder']['language'] $pth['file']['language'] $pth['folder']['langconfig'] $pth['file']['langconfig'] $pth['file']['adm'] $pth['file']['cms'] $pth['file']['config'] $pth['file']['log'] $pth['file']['login'] $pth['file']['mailform'] $pth['file']['search'] $pth['file']['corestyle'] $pth['folder']['content'] $pth['file']['content'] $pth['file']['pagedata'] $pth['folder']['downloads'] $pth['folder']['images'] $pth['folder']['flags'] $pth['folder']['userfiles'] $pth['folder']['media'] $pth['folder']['plugins'] $pth['folder']['templates'] $pth['folder']['template'] $pth['folder']['menubuttons'] $pth['folder']['templateimages'] $pth['file']['template'] $pth['file']['stylesheet']
Plugins
Once a plugin is loaded, the following paths are set to be globally available in the plugin's index.php and admin.php:
$pth['folder']['plugin'] $pth['file']['plugin_index'] $pth['file']['plugin_admin'] $pth['folder']['plugin_classes'] $pth['file']['plugin_classes'] $pth['folder']['plugin_config'] $pth['file']['plugin_config'] $pth['folder']['plugin_content'] $pth['folder']['plugin_css'] $pth['file']['plugin_stylesheet'] $pth['folder']['plugin_help'] $pth['file']['plugin_help'] $pth['folder']['plugin_includes'] $pth['folder']['plugin_languages'] $pth['file']['plugin_language']
Glossary
Login
Login refers to the process of logging in to the CMS. The authentication is done with a login password. After login, you are in the so-called “Admin mode” – also called “Backend”. With the login, the system starts a session, which should be closed after finishing all work with logout (log off).
Templates
Templates are design patterns for websites that behave like masks. They determine the place where elements appear and influence their appearance.
userfiles
In CMSimple_XH, the userfiles folder contains all user files that can be used in the content.