e107 Core Code: Constants

e107 Core Code: Constants

User Casses Constants

e_UC_PUBLIC 0
e_UC_MAINADMIN 250
e_UC_READONLY 251
e_UC_GUEST 252
e_UC_MEMBER 253
e_UC_ADMIN 254
e_UC_NOBODY 255
e_UC_ADMINMOD 249 Admins (includes main admins)
e_UC_MODS 248 Moderators (who aren't admins)
e_UC_NEWUSER 247 Users in 'probationary' period
e_UC_BOTS 246 Reserved to identify search bots
e_UC_SPECIAL_BASE 243 Assign class IDs 243 and above for fixed/special purposes
e_UC_SPECIAL_END 255 Highest 'special' class

// 243..245 reserved for future predefined user classes

e107 Path Constants

e_HTTP e107_class.php $_SERVER['PHP_SELF'] + modifications
SITEURLBASE e107_class.php modifications + $_SERVER['HTTP_HOST'] 
SITEURL e107_class.php SITEURLBASE.e_HTTP
e_BASE e107_class.php
e_BASE_SELF NOT USED ANYMORE
e_SELF $_SERVER['HTTP_HOST'] + $_SERVER['PHP_SELF'] [ $_SERVER['SCRIPT_FILENAME'] ]
THEME
THEME_ABS available in replaceConstants()
e_ROOT class2.php realpath(dirname(__FILE__)."/");

e107 Directory Constants

Default directories are possible to override in the config file using directory code + "_DIRECTORY" (variable with this name). Using "_SYSTEM" for relative paths has higher priority, the same for absolute paths with "_HTTP".

e_ADMIN $ADMIN_DIRECTORY
e_ADMIN_ABS e_HTTP.$ADMIN_DIRECTORY or $ADMIN_HTTP
e_IMAGE $IMAGES_DIRECTORY
e_IMAGE_ABS e_HTTP.$IMAGES_DIRECTORY

available in replaceConstants()

e_THEME $THEMES_DIRECTORY
e_THEME_ABS e_HTTP.$THEMES_DIRECTORY

available in replaceConstants()

e_PLUGIN $PLUGINS_DIRECTORY
e_PLUGIN_ABS e_HTTP.$PLUGINS_DIRECTORY

used in replaceConstants()

e_FILE $FILES_DIRECTORY
e_FILE_ABS [deprecated] e_HTTP.$FILES_DIRECTORY

used in replaceConstants()

e_HANDLER $HANDLERS_DIRECTORY
e_HANDLER_ABS e_HTTP.$HANDLERS_DIRECTORY
e_LANGUAGEDIR $LANGUAGES_DIRECTORY
e_LANGUAGEDIR_ABS e_HTTP.$LANGUAGES_DIRECTORY
e_DOCS
e_DOCS_ABS
e_DOCROOT
e_DOWNLOAD $MEDIA_DIRECTORY
e_DOWNLOAD_ABS NOT USED
e_MEDIA $MEDIA_DIRECTORY

e_MEDIA_ABS e_HTTP.$MEDIA_DIRECTORY

used in replaceConstants()

e_MEDIA_FILE $ret['MEDIA_DIRECTORY'].'files/'  or $MEDIA_FILES_DIRECTORY

e_MEDIA_FILE_ABS

used in replaceConstants()

e_MEDIA_VIDEO $ret['MEDIA_DIRECTORY'].'videos/';
e_MEDIA_VIDEO_ABS used in replaceConstants()
e_MEDIA_IMAGE $ret['MEDIA_DIRECTORY'].'files/'
e_MEDIA_IMAGE_ABS used in replaceConstants()
e_MEDIA_ICON_ABS used in replaceConstants()
e_AVATAR $ret['MEDIA_DIRECTORY'].'avatars/'
e_AVATAR_ABS used in replaceConstants()
e_JS_ABS $ret['WEB_DIRECTORY'].'js/' used in replaceConstants()
e_CSS_ABS $ret['WEB_DIRECTORY'].'css/' used in replaceConstants()
e_WEB_IMAGE_ABS $ret['WEB_DIRECTORY'].'images/' used in replaceConstants()
e_WEB_ABS
media upload directory default: $ret['SYSTEM_DIRECTORY'].'temp/' Code: 'MEDIA_UPLOAD_DIRECTORY']
classic upload directory default: $ret['MEDIA_UPLOAD_DIRECTORY']; Code: 'UPLOADS_DIRECTORY'

Social Constants

 

XURL_FACEBOOK    
XURL_TWITTER    
XURL_YOUTUBE
XURL_GOOGLE in custom used for VKontakte
XURL_LINKEDIN
XURL_GITHUB
XURL_FLICKR
XURL_INSTAGRAM
XURL_PINTEREST
XURL_STEAM
XURL_VIMEO
HTMLTAG $htmlTag = "<html".(defined("TEXTDIRECTION") ? " dir='".TEXTDIRECTION."'" : "").(defined("CORE_LC") ? " lang="".CORE_LC.""" : "").">";
echo (defined('HTMLTAG') ? str_replace('THEME_LAYOUT', THEME_LAYOUT, HTMLTAG) : $htmlTag)."n";