Constants
Please note: This page is under construction and has not been finished yet.
Introduction
.....
Directory constants
In the table below (hash)
refers to the 👉 hash generated upon installation of e107.
Constant | Description | Example value |
e_ADMIN | /e107_admin/ | |
e_ADMIN_ABS | /e107_admin/ | |
e_AVATAR | ./e107_media/(hash)/avatars/ | |
e_AVATAR_ABS | /e107_media/(hash)/avatars/ | |
e_AVATAR_DEFAULT | ./e107_media/(hash)/avatars/default/ | |
e_AVATAR_DEFAULT_ABS | /e107_media/(hash)/avatars/default/ | |
e_AVATAR_UPLOAD | ./e107_media/(hash)/avatars/upload/ | |
e_AVATAR_UPLOAD_ABS | /e107_media/(hash)/avatars/upload/ | |
e_BACKUP | ./e107_system/(hash)/backup/ | |
e_BOOTSTRAP | ./e107_web/bootstrap/ | |
e_CACHE | ./e107_system/(hash)/cache/ | |
e_CACHE_CONTENT | ./e107_system/(hash)/cache/content/ | |
e_CACHE_DB | ./e107_system/(hash)/cache/db/ | |
e_CACHE_IMAGE | ./e107_system/(hash)/cache/images/ | |
e_CACHE_IMAGE_ABS | /e107_system/(hash)/cache/images/ | |
e_CACHE_URL | ./e107_system/(hash)/cache/url/ | |
e_CORE | ./e107_core/ | |
e_CSS | /e107_web/css/ | |
e_CSS_ABS | /e107_web/css/ | |
e_DOCROOT | C:/webdev/www/ | |
e_DOCS | ./e107_docs/help/ | |
e_DOCS_ABS | /e107_docs/ | |
e_DOWNLOAD | ./e107_media/(hash)/files/ | |
e_FILE | ./e107_files/ | |
e_FILE_ABS | /e107_files/ | |
e_HANDLER | ./e107_handlers/ | |
e_HELP | ./e107_docs/help/ | |
e_HELP_ABS | /e107_docs/help/ | |
e_IMAGE | ./e107_images/ | |
e_IMAGE_ABS | /e107_images/ | |
e_IMPORT | ./e107_system/(hash)/import/ | |
e_IMPORT_ABS | ||
e_JS | /e107_web/js/ | |
e_JS_ABS | /e107_web/js/ | |
e_LANGUAGEDIR | ./e107_languages/ | |
e_LOG | ./e107_system/(hash)/logs/ | |
e_MEDIA | ./e107_media/(hash)/ | |
e_MEDIA_ABS | /e107_media/(hash)/ | |
e_MEDIA_BASE | ./e107_media/ | |
e_MEDIA_FILE | ./e107_media/(hash)/files/ | |
e_MEDIA_FILE_ABS | /e107_media/(hash)/files/ | |
e_MEDIA_ICON | ./e107_media/(hash)/icons/ | |
e_MEDIA_ICON_ABS | /e107_media/(hash)/icons/ | |
e_MEDIA_IMAGE | ./e107_media/(hash)/images/ | |
e_MEDIA_IMAGE_ABS | /e107_media/(hash)/images/ | |
e_MEDIA_VIDEO | ./e107_media/(hash)/videos/ | |
e_MEDIA_VIDEO_ABS | /e107_media/(hash)/videos/ | |
e_PLUGIN | ./e107_plugins/ | |
e_PLUGIN_ABS | /e107_plugins/ | |
e_ROOT | C:\webdev\www\ | |
e_SYSTEM | ./e107_system/(hash)/ | |
e_SYSTEM_BASE | ./e107_system/ | |
e_TEMP | ./e107_system/(hash)/temp/ | |
e_THEME | ./e107_themes/ | |
e_THEME_ABS | /e107_themes/ | |
e_UPLOAD | ./e107_system/(hash)/temp/ | |
e_WEB | ./e107_web/ | |
e_WEB_ABS | /e107_web/ | |
e_WEB_CSS | ./e107_web/css/ | |
e_WEB_IMAGE | ./e107_web/images/ | |
e_WEB_IMAGE_ABS | /e107_web/images/ | |
e_WEB_JS | ./e107_web/js/ |
Path constants
Constant | Description | Example value |
e_HTTP | ||
SITEURLBASE | ||
SITEURL | ||
e_BASE | ||
e_BASE_SELF | ||
e_SELF | ||
THEME | ||
THEME_ABS | ||
e_ROOT | ||
e_ROUTE | ||
e_PAGE | ||
e_LOGIN |
User constants
Constant | Description | Example value |
USER | Shows if a user is logged in (boolean) | 1 |
USERCLASS | ||
USERCLASS_LIST | Userclasses the user belongs to | 253,254,250,251,0 |
USERCURRENTVISIT | UNIX timestamp.... | 1615651180 |
USEREMAIL | admin@mywebsite.com | |
USERID | 1 | |
USERIMAGE | zaqRWcP-_400x400.jpg | |
USERIP | 0000:0000:0000:0000:0000:ffff:7f00:0001 | |
USERJOINED | 1588259340 | |
USERLAN | English | |
USERLV | 1615499410 | |
USERNAME | Administrator | |
USERPHOTO | ||
USERSIGNATURE | ||
USERTHEME | ||
USERTIMEZONE | UTC | |
USERURL | ||
USERVISITS | 82 |
General Site Constants
Constant | Description | Example value |
SITEADMIN | Administrator | |
SITEADMINEMAIL | admin@mywebsite.com | |
SITEBUTTON | /e107_images/button.png | |
SITECONTACTINFO | <strong class='bbcode bold bbcode-b'>My Company</strong><br />13 My Address St.<br />City, State, Country<br /><strong class='bbcode bold bbcode-b'>Phone:</strong> 555-555-5555<br /><strong class='bbcode bold bbcode-b'>Email:</strong> sales@mydomain.com | |
SITEDESCRIPTION | ||
SITEDISCLAIMER | ||
SITEEMAIL | admin@mywebsite.com | |
SITENAME | MyWebsite | |
SITETAG | e107 Website System | |
SITEURL | http://clean3004.test/ | |
SITEURLBASE | http://clean3004.test |
Userclass constants
......
Constant | ID | Description |
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 |
Userclass constants ID's 243 - 245 are reserved for future predefined user classes
Language constants
Constant | Description | Example value |
e_LAN | ||
e_LANCODE | ||
e_LANGUAGE | ||
e_LANLIST | ||
e_LANQRY |
Development constants
// define('eDEBUG', true); // Enable debug mode to allow displaying of errors // define('e_HTTP_STATIC', 'https://static.mydomain.com/'); // Use a static subdomain for js/css/images etc. // define('e_MOD_REWRITE_STATIC', true); // Rewrite static image urls. // define('e_LOG_CRITICAL', true); // log critical errors but do not display them to user. // define('e_GIT', 'path-to-git'); // Path to GIT for developers // define('X-FRAME-SAMEORIGIN', false); // Option to override X-Frame-Options // define('e_PDO, true); // Enable PDO mode (used in PHP > 7 and when mysql* methods are not available)
Constant | Description | Example value |
e_DEBUG | 1 | |
e_DEBUG_CANONICAL | ||
e_DEBUG_JS_FOOTER | ||
e_DEVELOPER | 1 | |
e_MENU | ||
e_MOD_REWRITE | 1 | |
e_MOD_REWRITE_MEDIA | 1 | |
e_MOD_REWRITE_STATIC | 1 | |
e_NOCACHE | ||
e_SECURITY_LEVEL | 5 | |
e_SINGLE_ENTRY | ||
e_TOKEN |
Theme constants
Constant | Description | Example value |
THEME | ./e107_themes/bootstrap3/ | |
THEME_ABS | /e107_themes/bootstrap3/ | |
THEME_LAYOUT | jumbotron_home | |
THEME_LEGACY | ||
THEME_STYLE | style.css | |
THEME_VERSION | 2.3 |
Plugin constants
Constant | Description | Example value |
e_PLUGIN_DIR_ABS |
Core plugins
Social plugin
Constant | Description | Example value |
XURL_FACEBOOK | ||
XURL_TWITTER | ||
XURL_YOUTUBE | ||
XURL_GOOGLE | ||
XURL_LINKEDIN | ||
XURL_GITHUB | ||
XURL_FLICKR | ||
XURL_INSTAGRAM | ||
XURL_PINTEREST | ||
XURL_STEAM | ||
XURL_VIMEO |
Last updated