-
-
Notifications
You must be signed in to change notification settings - Fork 5
gsconfig.php
The engine configuration is located in the gsconfig.php, file , the root directory of the site. The settings are done by manually changing the PHP constants of the file (to enable the parameter, you must remove the hash # symbol).
Adds additional hashing of the administrator password with a unique modifier (salt) as an additional system security measure.
# define('GSLOGINSALT', 'your_unique_phrase');
Turns off the automatic generation of a unique salt to apply a custom unique string. Used for cookies and secure uploading of files to the server.
# define('GSUSECUSTOMSALT', 'your_new_salt_value_here');
Sets the default thumbnail width for uploaded images.
define('GSIMAGEWIDTH', '300');
Specifies the name of the directory for the admin panel on the site.
# define('GSADMIN', 'admin');
Enabling debug mode to track errors on the site.
# define('GSDEBUG', TRUE);
Disable automatic notifications of search engines when generating a sitemap (sitemap.xml file).
# define('GSDONOTPING', 1);
Disable CSRF (Cross-Site Request Forgery) protection.
# define('GSNOCSRF', TRUE);
Sets permissions 0755 on all your files and folders.
# define('GSCHMOD', 0755);
Disable the CMS gs_chmod() function.
# define('GSDOCHMOD',false);
Enables canonical redirection. Use with care.
# define('GSCANONICAL', 1);
Disables the uploadify uploader. In this case, the upload takes place through an ordinary HTML form.
# define('GSNOUPLOADIFY', 1);
Sets the height of the WYSIWYG editor window in pixels (500px by default).
# define('GSEDITORHEIGHT', '400');
Displays an additional WYSIWYG editor toolbar (Advanced) that includes tools for titles and styles, or creates a custom configuration for the editor.
# define('GSEDITORTOOL', 'advanced');
Specifies additional settings for the WYSIWYG editor.
define('GSEDITOROPTIONS', '');
Sets the language of the WYSIWYG editor interface (by default - English (en))
# define('GSEDITORLANG', 'en');
Set the email address from which the CMS message was sent.
define('GSFROMEMAIL', 'no-replay@'.$_SERVER['HTTP_HOST']);
Set the email address from which the CMS message was sent.
# define('GSAUTOSAVE', 900);
Enabling external API, the link to the page with the key will be shown on the settings page - "API Configuration".
# define('GSEXTAPI', 1);
Sets the CMS locale settings.
setlocale(LC_ALL, 'ru_RU.UTF8', 'ru.UTF8', 'ru_RU.UTF-8', 'ru.UTF-8', 'ru_RU', 'ru');
Downloads jQuery from the current server, not from the CDN repositories.
# define('GSNOCDN', true);
Disable code highlighting in the theme editor.
# define('GSNOHIGHLIGHT', true);
Setting the default time zone for the CMS.
# define('GSTIMEZONE', 'Europe/Moscow');
Suppresses php error output in CMS, ignoring php.ini settings.
define('SUPPRESSERRORS', true);
Disable Apache web server check.
define('GSNOAPACHECHECK', true);
Disables GetSimple CMS update notification and version checking.
define('GSNOVERCHECK', true);
Disables automatic generation of the sitemap (sitemap.xml file).
# define('GSNOSITEMAP', true);
Disables changing languages in the i18n plugin.
# define('I18N_SINGLE_LANGUAGE', true);
Ignores the user's browser language.
# define('I18N_IGNORE_USER_LANGUAGE', true);
Enables the automatic creation of the description meta tag if the page field does not contain any information.
# define('GSAUTOMETAD', true);
Sets the default language if there is no translation of any strings in the CMS language file (default 'en_US').
# define('GSMERGELANG', false);
Disables protection against loading pages in a frame (Clickjacking). Values can be false, GSFRONT, GSBACK, or GSBOTH.
# define('GSNOFRAME', GSBOTH);
Formats XML files to make them readable.
# define('GSFORMATXML', true);
Converts the extensions of the downloaded files to lowercase, for example .mp3 instead of .MP3.
# define('GSUPLOADSLC', false);
🏠 Home
⚙️ Installation
👷 Admin Reference
📝 Adding and Editing Content
- WYSIWYG Editor
- Components
- Snippets
- Custom 404 Page
🎨 Themes
- Theme Installation
- Theme Creation
- Step-by-Step Tutorial
- Template functions
- Template Tags
- Template Code Snippets
- Partial Template Files
🔌 Plugins
- Plugin Installation
- Plugin Creation
- Plugin functions
- Plugin Hooks & Filters
- Using Tabs and Sidebar Menus
- Tips & Tricks
💪 Advanced