$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'
.
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']
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']