*/ include 'basic.php'; include 'template_functions.php'; define('GSROOTPATH', get_root_path()); if (file_exists(GSROOTPATH . 'gsconfig.php')) { require_once GSROOTPATH . 'gsconfig.php'; } if (defined('GSADMIN')) { $GSADMIN = GSADMIN; } else { $GSADMIN = 'admin'; } /** * Define some constants */ define('GSADMINPATH', get_admin_path()); define('GSADMININCPATH', GSADMINPATH . 'inc/'); define('GSPLUGINPATH', GSROOTPATH . 'plugins/'); define('GSLANGPATH', GSADMINPATH . 'lang/'); define('GSDATAPATH', GSROOTPATH . 'data/'); define('GSDATAOTHERPATH', GSROOTPATH . 'data/other/'); define('GSDATAPAGESPATH', GSROOTPATH . 'data/pages/'); define('GSDATAUPLOADPATH', GSROOTPATH . 'data/uploads/'); define('GSTHUMBNAILPATH', GSROOTPATH . 'data/thumbs/'); define('GSBACKUPSPATH', GSROOTPATH . 'backups/'); define('GSTHEMESPATH', GSROOTPATH . 'theme/'); define('GSUSERSPATH', GSROOTPATH . 'data/users/'); define('GSBACKUSERSPATH', GSROOTPATH . 'backups/users/'); /** * Debugging */
// Anti-CSRF, highly experimental include_once 'nonce.php'; // Anti-XSS, highly experimental include_once 'xss.php'; foreach ($_GET as &$xss) { $xss = antixss($xss); } // Basic functionality include 'basic.php'; include 'template_functions.php'; // Define some constants define('GSROOTPATH', get_root_path()); define('GSADMINPATH', get_admin_path()); define('GSADMININCPATH', get_admin_path() . 'inc/'); define('GSPLUGINPATH', get_root_path() . 'plugins/'); define('GSLANGPATH', get_admin_path() . 'lang/'); define('GSDATAPATH', get_root_path() . 'data/'); define('GSDATAOTHERPATH', get_root_path() . 'data/other/'); define('GSDATAPAGESPATH', get_root_path() . 'data/pages/'); define('GSDATAUPLOADPATH', get_root_path() . 'data/uploads/'); define('GSTHUMBNAILPATH', get_root_path() . 'data/thumbs/'); define('GSBACKUPSPATH', get_root_path() . 'backups/'); define('GSTHEMESPATH', get_root_path() . 'theme/'); if (file_exists(GSROOTPATH . 'gsconfig.php')) { include GSROOTPATH . 'gsconfig.php'; } // Debugging if (defined('GSDEBUG') && GSDEBUG == TRUE) { error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1); } else {