This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
config:gsconfig [2011/05/12 11:03] Connie Typo corrected |
config:gsconfig [2016/05/30 15:47] Carlos add GSCKETSTAMP |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Advanced Configuration: gsconfig.php ====== | ====== Advanced Configuration: gsconfig.php ====== | ||
- | The file ''[[http://code.google.com/p/get-simple-cms/source/browse/trunk/temp.gsconfig.php|gsconfig.php]]'' is located in the root of your GetSimple installation. You can further configure your site with the help of enabling/changing some of these constants. | + | The file ''[[http://code.google.com/p/get-simple-cms/source/browse/trunk/temp.gsconfig.php|gsconfig.php]]'' is located in the root of your GetSimple installation. You can further configure your site by enabling/changing some of these constants. |
- | **GSLOGINSALT** allows you to futher secure your login password with a unique phrase to add as a salt. | + | **GSLOGINSALT** allows you to further secure your login password with a unique phrase to add as a salt. |
<code># Extra salt to secure your password with. Default is empty for backwards compatibility. | <code># Extra salt to secure your password with. Default is empty for backwards compatibility. | ||
#define('GSLOGINSALT', 'your_unique_phrase');</code> | #define('GSLOGINSALT', 'your_unique_phrase');</code> | ||
- | **GSNOCSRF** (3.1+) allows you to turn off the [[http://en.wikipedia.org/wiki/Cross-site_request_forgery|CSRF]] protection system | + | **GSNOCSRF** (3.1+) allows you to turn off the [[security:csrf|CSRF protection system]] |
- | <code># Turn off CSRF protection. Not reccomended | + | <code># Turn off CSRF protection. Not recommended |
#define('GSNOCSRF', TRUE);</code> | #define('GSNOCSRF', TRUE);</code> | ||
+ | |||
+ | **GSEXTAPI** (3.1+) adds a new option to the settings page: activate the API for plugins that use this new function | ||
+ | <code># Enable the External API to be shown on settings page | ||
+ | #define('GSEXTAPI', 1);</code> | ||
+ | |||
+ | **GSNOCDN** (3.1+), when set to TRUE, defines to load Jquery-Scripts from your server and not from CDN (Content Distributed Network) | ||
+ | <code># Disable loading of external CDN versions of scripts (jQuery/jQueryUI) | ||
+ | #define("GSNOCDN",true);</code> | ||
**GSIMAGEWIDTH** allows you to change the default width of the generated thumbnail that is created when you upload an image file | **GSIMAGEWIDTH** allows you to change the default width of the generated thumbnail that is created when you upload an image file | ||
Line 22: | Line 30: | ||
<code># Turn on debug mode | <code># Turn on debug mode | ||
#define('GSDEBUG', TRUE);</code> | #define('GSDEBUG', TRUE);</code> | ||
- | |||
- | **GSCOOKIEISSITEWIDE** if set to TRUE, it allows the frontend of your site to know if you are logged in or not | ||
- | <code># Make login cookie available sitewide. | ||
- | #define('GSCOOKIEISSITEWIDE', TRUE);</code> | ||
**GSDONOTPING** enabling this disables the auto-ping of search engines when generating a sitemap | **GSDONOTPING** enabling this disables the auto-ping of search engines when generating a sitemap | ||
Line 31: | Line 35: | ||
#define('GSDONOTPING', 1);</code> | #define('GSDONOTPING', 1);</code> | ||
- | **GSPAGER** turns on paging on certain pages such as "All Pages" | + | Affected search engines are google.com, search.yahooapis.com, bing.com and submissions.ask.com |
- | <code># Turn on paging for long lists of pages | + | |
- | #define('GSPAGER', TRUE);</code> | + | |
- | **GSCHMOD** is the CHMOD mode to set all your files and folders at. Default is 0755 | + | **GSCHMOD** is the CHMOD mode to set all your files and folders at. |
<code># Set override CHMOD mode | <code># Set override CHMOD mode | ||
- | #define('GSCHMOD', 0777);</code> | + | #define('GSCHMOD', 0755);</code> |
- | **GSCANONICAL** forces canonical redirects. Use with caution | + | **GSCANONICAL** forces canonical redirects. Use with caution - not compatible with some plugins |
<code># Enable Canonical Redirects? | <code># Enable Canonical Redirects? | ||
#define('GSCANONICAL', 1);</code> | #define('GSCANONICAL', 1);</code> | ||
Line 75: | Line 77: | ||
# http://php.net/manual/en/function.setlocale.php | # http://php.net/manual/en/function.setlocale.php | ||
#setlocale(LC_ALL, 'en_US');</code> | #setlocale(LC_ALL, 'en_US');</code> | ||
+ | |||
+ | |||
+ | **__Since 3.2:__** | ||
+ | |||
+ | **GSNOVERCHECK** - Disable persistant header version checking | ||
+ | |||
+ | **GSTIMEZONE** - Timezone string for server default timezone | ||
+ | |||
+ | **GSNOSITEMAP** - Disable sitemap generation | ||
+ | |||
+ | **GSSTYLE** - Set an alternative style, eg. GSSTYLEWIDE | ||
+ | |||
+ | **GSDEBUGINSTALL** - Debugging, Prevent removal of install files for debugging installs | ||
+ | |||
+ | **GSSUPPRESSERRORS** - reproduce previous GS behavior ragarding php error supression | ||
+ | |||
+ | **GSAUTOMETAD** - (since 3.2.2) Enable automatically generated excerpt for meta description (if empty) | ||
+ | |||
+ | **__Since 3.3:__** | ||
+ | |||
+ | **GSFORMATXML** - (since 3.3.7) If true, indent and format xml files on save to make them human-readable | ||
+ | |||
+ | **GSNOPLUGINCHECK** - (since 3.3.7) Disable plugin API checks if you have issues (e.g. sites with a lot of plugins) | ||
+ | |||
+ | **GSCKETSTAMP** - (since 3.3.10) define CKEditor timestamp query string cache control: ''true'' (default) uses GS version, ''false'' none, or custom string | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | **__Obsolete Settings:__** | ||
+ | |||
+ | **GSPAGER** turns on paging on certain pages such as "All Pages" | ||
+ | <code># Turn on paging for long lists of pages | ||
+ | #define('GSPAGER', TRUE);</code> | ||
+ | |||
+ | **GSSTORAGE** was never used, there are no other storage structures | ||
+ | <code># Data saving method. Default is XML | ||
+ | #define('GSSTORAGE', 'xml');</code> | ||
+ | |||
+ | **GSCOOKIEISSITEWIDE** if set to TRUE, it allows the frontend of your site to know if you are logged in or not. [deprecated as of 3.1] | ||
+ | <code># Make login cookie available sitewide. | ||
+ | #define('GSCOOKIEISSITEWIDE', TRUE);</code> | ||
+ |