Constants - gtbu/Typesetter5.2 GitHub Wiki

Constant Name Type Defined in Description
addon_browse_path string /include/common.php Used for remote processes.
CMS_NAME string /include/common.php Defaults to ‘Typesetter’.
CMS_DOMAIN string /include/common.php Web address (URL) of Typesetter CMS.
Defaults to ‘https://www.typesettercms.com’
CMS_READABLE_DOMAIN string /include/common.php Defaults to ‘TypesetterCMS.com’
create_css_sourcemaps boolean /gpconfig.php true to create Scss and LESS source maps. Defaults to undefined
debug_path string /include/common.php Used for remote JavaScript debugging
gpdebug boolean /gpconfig.php true will make Typesetter ‘verbose’ about PHP errors, warnings and notices – recommended while developing addons or themes. Defaults to false.
gpdebugjs boolean /gpconfig.php For sole JavaScript debugging. Defaults to the value of gpdebug.
gpversion string /include/common.php CMS version number, e.g. ‘5.0.3’
gp_backup_limit integer /gpconfig.php Maximum number of page revisions stored in the Revision History. Defaults to 30
gp_browser_auth boolean /gpconfig.php Adds security by requiring a static browser identity for user sessions. true may cause login issues. Defaults to false since Typesetter 2.3.2
gp_chmod_dir integer /gpconfig.php Data folder permissions. Defaults to 0755
gp_chmod_file integer /gpconfig.php Data file permissions. Defaults to 0666
gp_cookie_cmd   /include/common.php,
/include/image.php
true required for receiving arguments from JavaScript without using variables in the $_GET request.
gp_default_theme string /gpconfig.php,
/include/common.php
Fallback theme if user theme becomes unavailable.
Defaults to ‘Bootstrap4/footer’
gp_has_lock boolean /include/tool/Files.php File lock status.
gp_index_filenames boolean /gpconfig.php Defaults to true
gp_lock_time integer /include/tool/Session.php Admin lock time. Defaults to 900 (seconds = 15 minutes).
gp_max_menu_level integer /include/admin/Menu.php Maximum menu hierarchy level. Defaults to 6
gp_nonce_algo string /gpconfig.php Defaults to ‘sha512’
gp_random string /include/common.php A random alphanumerical string (40 characters)
gp_remote_plugins,
gp_remote_themes,
gp_remote_update
boolean /gpconfig.php false disables installation/updates of remote addons, themes and CMS core.
gp_restrict_uploads boolean /gpconfig.php true to prevent uploadiong of potentially dangerous files (e.g. *.php). Defaults to true
gp_require_encrypt boolean /gpconfig.php If defined true unencrypted login attempts will fail.
Defaults to false.
gp_unique_addons boolean /gpconfig.php true displays only the latest version of an addon (plugin or theme). Defaults to false
gp_safe_mode boolean /gpconfig.php true will prevent loading of addons. Defaults to false
gp_session_cookie string /include/tool/Session.php, /include/install/Tools.php Session Cookie name
gp_start_time integer /include/main.php Required for performance measurement.
is_running boolean /include/main.php,
/install/update.php,
/include/image.php
If not defined true most CMS scripts will instantly exit
load_css_in_body boolean /gpconfig.php If defined true, css stylesheets will only be loaded at the end of the <body> tag. Defaults to undefined
notify_deprecated boolean /gpconfig.php Show notifications of deprecated addons. Defaults to true
service_provider_id string /gpconfig.php Add your service provider id for tracking and to increase service provider activity level. Defaults to false.
⚠️ **GitHub.com Fallback** ⚠️