// @todo remove for production // debug catcher for this core wide change issues if (htmlentities($_SERVER['SCRIPT_NAME'], ENT_QUOTES) !== htmlentities($_SERVER['PHP_SELF'], ENT_QUOTES)) { die('PHP_SELF mismatch ' . htmlentities($_SERVER['PHP_SELF'])); } /** * Set PHP enviroments */ if (function_exists('mb_internal_encoding')) { mb_internal_encoding("UTF-8"); } // set multibyte encoding /** * GSCONFIG definitions */ $GS_constants = array('GSROOTPATH' => getGSRootPath(), "GSDATEFORMAT" => "M j, Y", "GSDATEANDTIMEFORMAT" => "F jS, Y - g:i A", "GSTIMEFORMAT" => "g:i A", 'GSSTARTTIME' => microtime(), 'GSBASE' => false, 'GSCONFIGFILE' => 'gsconfig.php', 'GSWEBSITEFILE' => 'website.xml', 'GSCOMPONENTSFILE' => 'components.xml', 'GSSNIPPETSFILE' => 'snippets.xml', 'GSAUTHFILE' => 'authorization.xml', 'GSPLUGINTRIGGERFILE' => 'plugin-update.trigger', 'GSCSSMAINFILE' => 'css.php', 'GSADMINTHEMEFILE' => 'admin.xml', 'GSPAGECACHEFILE' => 'pages.xml', 'GSPLUGINSFILE' => 'plugins.xml', 'GSADMINTHEMEENABLE' => true, 'GSCSSCUSTOMFILE' => 'admin.css', 'GSCSSCUSTOMENABLE' => true, 'GSSTYLECACHEENABLE' => false, 'GSTEMPLATEFILE' => 'template.php', 'GSINSTALLTEMPLATE' => 'Innovation', 'GSINSTALLPLUGINS' => 'InnovationPlugin.php', 'GSSTYLEWIDE' => 'wide', 'GSSTYLE_SBFIXED' => 'sbfixed', 'GSFRONT' => 1, 'GSBACK' => 2, 'GSBOTH' => 3, 'GSDEFAULTLANG' => 'en_US', 'GSTITLEMAX' => 70, 'GSFILENAMEMAX' => 255, 'GSPASSLENGTHMIN' => 4, 'GSBAKFILESUFFIX' => '', 'GSBAKFILEPREFIX' => '.bak', 'GSRESETFILESUFFIX' => '.reset', 'GSRESETFILEPREFIX' => '', 'GSDEFAULTPERMALINK' => '%path%/%slug%/', 'GSTOKENDELIM' => '%', 'GSLOGINQSALLOWED' => 'id,draft,nodraft,safemode,i,path', 'GSCONSTANTSLOADED' => true); $GS_definitions = array('GSSUPERUSER' => '', 'GSTABS' => 'pages,upload,theme,backups,plugins', 'GSDEFAULTPAGE' => 'pages.php', 'GSHEADERCLASS' => '', 'GSHTTPPREFIX' => '', 'GSSLUGNOTFOUND' => '404', 'GSSLUGPRIVATE' => '403', 'GSADMIN' => 'admin', 'GSSITEMAPFILE' => 'sitemap.xml', 'GSERRORLOGENABLE' => true, 'GSERRORLOGFILE' => 'errorlog.txt', 'GSASSETSCHEMES' => false, 'GSASSETURLREL' => true, 'GSSITEURLREL' => true, 'GSEMAILLINKBACK' => 'http://get-simple.info/', 'GSAJAXSAVE' => true, 'GSINDEXSLUG' => 'index', 'GSPLUGINORDER' => '', 'GSSTYLE' => 'wide,sbfixed', 'GSWIDTH' => '1024px', 'GSWIDTHWIDE' => '1366px', 'GSWIDEPAGES' => 'theme-edit,components,snippets', 'GSCHMOD' => 0644, 'GSCHMODFILE' => 0644, 'GSCHMODDIR' => 0755, 'GSDOCHMOD' => true, 'GSSHOWCODEHINTS' => true, 'GSALLOWLOGIN' => true, 'GSALLOWRESETPASS' => true, 'GSALLOWDOWNLOADS' => true, 'GSPROFILEALLOWADD' => true, 'GSPROFILEALLOWEDIT' => true, 'GSALLOWUPLOADS' => true, 'GSALLOWUPLOADCREATE' => true, 'GSALLOWUPLOADDELETE' => true, 'GSALLOWBROWSEUPLOAD' => true, 'GSUSEGSUPLOADER' => true, 'GSTHEMEEDITROOT' => true, 'GSTHEMEEDITEXTS' => 'php,css,js,html,htm,txt,xml,', 'GSEDITORHEIGHT' => '500', 'GSEDITORTOOL' => 'basic', 'GSEDITORCONFIGFILE' => 'custom_config.js', 'GSSNIPPETSATTRIB' => 'getHtmlEditorAttr', 'GSCOMPONENTSATTRIB' => 'getCodeEditorAttr', 'GSPAGESATTRIB' => 'getDefaultHtmlEditorAttr', 'GSHTMLEDITINLINE' => false, 'GSHTMLEDITCOMPACT' => true, 'GSHTMLEDITAUTOHEIGHT' => true, 'GSCODEEDITORTHEMES' => '3024-day,3024-night,ambiance,base16-light,base16-dark,blackboard,cobalt,colorforth,eclipse,elegant,erlang-dark,lesser-dark,mbo,midnight,monokai,neat,night,paraiso-dark,paraiso-light,rubyblue,solarized dark,solarized light,the-matrix,twilight,tomorrow-night-eighties,vibrant-ink,xq-dark,xq-light', 'GSUSEDRAFTS' => true, 'GSUSEPAGESTACK' => true, 'GSDRAFTSTACKDEFAULT' => true, 'GSSDRAFTSPUBLISHEDTAG' => true, 'GSAUTOSAVE' => false, 'GSIMAGEWIDTH' => 200, 'GSTHUMBSMWIDTH' => 80, 'GSTHUMBSMHEIGHT' => 160, 'GSDEBUGINSTALL' => false, 'GSDEBUG' => false, 'GSDEBUGAPI' => false, 'GSDEBUGREDIRECTS' => false, 'GSDEBUGFILEIO' => false, 'GSDEBUGHOOKS' => false, 'GSSAFEMODE' => false, 'GSDEFINITIONSLOADED' => true); /* Define Constants */ GS_defineFromArray($GS_constants); /** * Variable Globalization */ global $TEMPLATE, $GSADMIN, $GS_debug, $components, $snippets, $nocache, $microtime_start, $pagesArray, $pageCacheXml, $plugin_info, $live_plugins, $plugins, $pluginHooks, $filters, $pluginFilters, $secfilters, $securityFilters, $GS_scripts, $GS_styles; if (isset($_GET['nocache'])) { // @todo: disables caching, this should probably only be allowed for auth users, it is also not well inplemented $nocache = true; } /* * If backend Load config, else do front end stuff */ if (!GSBASE) {
// @todo remove for production // debug catcher for this core wide change issues if (htmlentities($_SERVER['SCRIPT_NAME'], ENT_QUOTES) !== htmlentities($_SERVER['PHP_SELF'], ENT_QUOTES)) { die('PHP_SELF mismatch ' . $_SERVER['PHP_SELF']); } /** * Set PHP enviroments */ if (function_exists('mb_internal_encoding')) { mb_internal_encoding("UTF-8"); } // set multibyte encoding /** * GSCONFIG definitions */ $GS_constants = array('GSROOTPATH' => getGSRootPath(), "GSDATEFORMAT" => "M j, Y", "GSDATEANDTIMEFORMAT" => "F jS, Y - g:i A", "GSTIMEFORMAT" => "g:i A", 'GSTARTTIME' => microtime(), 'GSBASE' => false, 'GSCONFIGFILE' => 'gsconfig.php', 'GSWEBSITEFILE' => 'website.xml', 'GSAUTHFILE' => 'authorization.xml', 'GSCSSMAINFILE' => 'css.php', 'GSCSSCUSTOMFILE' => 'admin.css', 'GSTEMPLATEFILE' => 'template.php', 'GSINSTALLTEMPLATE' => 'Innovation', 'GSINSTALLPLUGINS' => 'InnovationPlugin.php', 'GSSTYLEWIDE' => 'wide', 'GSSTYLE_SBFIXED' => 'sbfixed', 'GSFRONT' => 1, 'GSBACK' => 2, 'GSBOTH' => 3, 'GSDEFAULTLANG' => 'en_US', 'GSTITLEMAX' => '70', 'GSFILENAMEMAX' => '255', 'GSCONSTANTSLOADED' => true); $GS_definitions = array('GSHEADERCLASS' => '', 'GSHTTPPREFIX' => '', 'GSSLUGNOTFOUND' => '404', 'GSSLUGPRIVATE' => '403', 'GSADMIN' => 'admin', 'GSSITEMAPFILE' => 'sitemap.xml', 'GSERRORLOGFILE' => 'errorlog.txt', 'GSERRORLOGENABLE' => true, 'GSSTYLE' => 'wide,sbfixed', 'GSWIDTH' => '1024px', 'GSWIDTHWIDE' => '1366px', 'GSWIDEPAGES' => 'theme-edit,components', 'GSALLOWLOGIN' => true, 'GSALLOWRESETPASS' => true, 'GSTHEMEEDITEXTS' => 'php,css,js,html,htm,txt,xml,', 'GSASSETSCHEMES' => false, 'GSASSETURLREL' => true, 'GSSITEURLREL' => true, 'GSALLOWDOWNLOADS' => true, 'GSEDITORHEIGHT' => '500', 'GSEDITORTOOL' => 'basic', 'GSEDITORCONFIGFILE' => 'config.js', 'GSEMAILLINKBACK' => 'http://get-simple.info/', 'GSAJAXSAVE' => true, 'GSDEFINITIONSLOADED' => true); /* Define Constants */ GS_defineFromArray($GS_constants); /** * Variable Globalization */ global $TEMPLATE, $USR, $GSADMIN, $GS_debug, $components, $nocache, $microtime_start, $pagesArray, $pageCacheXml, $plugins_info, $live_plugins, $plugins, $filters, $GS_scripts, $GS_styles; if (isset($_GET['nocache'])) { // @todo: disables caching, this should probably only be allowed for auth users, it is also not well inplemented $nocache = true; } /* * If backend Load config, else do front end stuff */ if (!GSBASE) {