Skip to content

gsconfig.php

risingisland edited this page Jun 12, 2025 · 2 revisions

Configuration

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).

GSLOGINSALT

Adds additional hashing of the administrator password with a unique modifier (salt) as an additional system security measure.

# define('GSLOGINSALT', 'your_unique_phrase');

GSUSECUSTOMSALT

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');

GSIMAGEWIDTH

Sets the default thumbnail width for uploaded images.

 define('GSIMAGEWIDTH', '300');

GSADMIN

Specifies the name of the directory for the admin panel on the site.

# define('GSADMIN', 'admin');

GSDEBUG

Enabling debug mode to track errors on the site.

# define('GSDEBUG', TRUE);

GSDONOTPING

Disable automatic notifications of search engines when generating a sitemap (sitemap.xml file).

# define('GSDONOTPING', 1);

GSNOCSRF

Disable CSRF (Cross-Site Request Forgery) protection.

# define('GSNOCSRF', TRUE);

GSCHMOD

Sets permissions 0755 on all your files and folders.

# define('GSCHMOD', 0755);

GSDOCHMOD

Disable the CMS gs_chmod() function.

# define('GSDOCHMOD',false);

GSCANONICAL

Enables canonical redirection. Use with care.

# define('GSCANONICAL', 1);

GSNOUPLOADIFY

Disables the uploadify uploader. In this case, the upload takes place through an ordinary HTML form.

# define('GSNOUPLOADIFY', 1);

GSEDITORHEIGHT

Sets the height of the WYSIWYG editor window in pixels (500px by default).

# define('GSEDITORHEIGHT', '400');

GSEDITORTOOL

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');

GSEDITOROPTIONS

Specifies additional settings for the WYSIWYG editor.

 define('GSEDITOROPTIONS', '');

GSEDITORLANG

Sets the language of the WYSIWYG editor interface (by default - English (en))

# define('GSEDITORLANG', 'en');

GSFROMEMAIL

Set the email address from which the CMS message was sent.

 define('GSFROMEMAIL', 'no-replay@'.$_SERVER['HTTP_HOST']);

GSAUTOSAVE

Set the email address from which the CMS message was sent.

# define('GSAUTOSAVE', 900);

GSEXTAPI

Enabling external API, the link to the page with the key will be shown on the settings page - "API Configuration".

# define('GSEXTAPI', 1);

setlocale

Sets the CMS locale settings.

 setlocale(LC_ALL, 'ru_RU.UTF8', 'ru.UTF8', 'ru_RU.UTF-8', 'ru.UTF-8', 'ru_RU', 'ru');

GSNOCDN

Downloads jQuery from the current server, not from the CDN repositories.

# define('GSNOCDN', true);

GSNOHIGHLIGHT

Disable code highlighting in the theme editor.

# define('GSNOHIGHLIGHT', true);

GSTIMEZONE

Setting the default time zone for the CMS.

# define('GSTIMEZONE', 'Europe/Moscow');

SUPPRESSERRORS

Suppresses php error output in CMS, ignoring php.ini settings.

 define('SUPPRESSERRORS', true);

GSNOAPACHECHECK

Disable Apache web server check.

 define('GSNOAPACHECHECK', true);

GSNOVERCHECK

Disables GetSimple CMS update notification and version checking.

 define('GSNOVERCHECK', true);

GSNOSITEMAP

Disables automatic generation of the sitemap (sitemap.xml file).

# define('GSNOSITEMAP', true);

I18N_SINGLE_LANGUAGE

Disables changing languages ​​in the i18n plugin.

# define('I18N_SINGLE_LANGUAGE', true);

I18N_IGNORE_USER_LANGUAGE

Ignores the user's browser language.

# define('I18N_IGNORE_USER_LANGUAGE', true);

GSAUTOMETAD

Enables the automatic creation of the description meta tag if the page field does not contain any information.

# define('GSAUTOMETAD', true);

GSMERGELANG

Sets the default language if there is no translation of any strings in the CMS language file (default 'en_US').

# define('GSMERGELANG', false);

GSNOFRAME

Disables protection against loading pages in a frame (Clickjacking). Values ​​can be false, GSFRONT, GSBACK, or GSBOTH.

# define('GSNOFRAME', GSBOTH);

GSFORMATXML

Formats XML files to make them readable.

# define('GSFORMATXML', true);

GSUPLOADSLC

Converts the extensions of the downloaded files to lowercase, for example .mp3 instead of .MP3.

# define('GSUPLOADSLC', false);

Clone this wiki locally