$CFG->moddata = 'moddata';
-/// Load up theme variables (colours etc)
- if (isset($_GET['theme'])) {
- if (confirm_sesskey()) {
- if (!detect_munged_arguments($_GET['theme'], 0) and file_exists($CFG->dirroot .'/theme/'. $_GET['theme'])) {
- $SESSION->theme = $_GET['theme'];
- }
- }
- }
-
- if (!isset($CFG->theme)) {
- $CFG->theme = 'standard';
- }
-
- theme_setup(); // Sets up theme global variables
-
-
/// A hack to get around magic_quotes_gpc being turned off
if (!ini_get_bool('magic_quotes_gpc') ) {
// session_register("SESSION");
+
+/// Load up theme variables (colours etc)
+ if (isset($_GET['theme'])) {
+ if (confirm_sesskey()) {
+ if (!detect_munged_arguments($_GET['theme'], 0) and file_exists($CFG->dirroot .'/theme/'. $_GET['theme'])) {
+ $SESSION->theme = $_GET['theme'];
+ }
+ }
+ }
+
+ if (!isset($CFG->theme)) {
+ $CFG->theme = 'standard';
+ }
+
+ theme_setup(); // Sets up theme global variables
+
+
+
/// Set language/locale of printed times. If user has chosen a language that
/// that is different from the site language, then use the locale specified
/// in the language file. Otherwise, if the admin hasn't specified a locale