** $Id$
**/
- if (defined ('validate_php')) {
+ if (defined ('validate_php'))
return;
- } else {
- define ('validate_php', true);
- }
+ define ('validate_php', true);
session_start();
+ include ('../functions/i18n.php');
include ('../functions/auth.php');
- // Everyone needs stuff from config, and config needs stuff from
- // strings.php, so include them both here.
- include ('../functions/strings.php');
- include ('../config/config.php');
-
is_logged_in();
}
}
+ // Everyone needs stuff from config, and config needs stuff from
+ // strings.php, so include them both here.
+ // Include them down here instead of at the top so that all config
+ // variables overwrite any passed in variables (for security)
+ include ('../functions/strings.php');
+ include ('../config/config.php');
+ include ('../src/load_prefs.php');
+ include ('../functions/page_header.php');
+
+ // Set up the language
+ // i18n.php was included by auth.php
+ global $username, $data_dir;
+ set_up_language(getPref($data_dir, $username, 'language'));
?>