2 include("../config/config.php");
3 include("../functions/prefs.php");
5 checkForPrefs($data_dir, $username);
7 $chosen_theme = getPref($data_dir, $username, "chosen_theme");
9 if ((isset($chosen_theme)) && (file_exists($chosen_theme))) {
10 require("$chosen_theme");
12 if (file_exists($theme[0]["PATH"])) {
13 require($theme[0]["PATH"]);
15 echo "Theme: " . $theme[0]["PATH"] . " was not found.<BR>";
16 echo "Exiting abnormally";
22 /** Load the user's trash folder preferences **/
23 $move_to_trash = getPref($data_dir, $username, "move_to_trash");
24 if ($move_to_trash == "")
25 $move_to_trash = $default_move_to_trash;
27 $wrap_at = getPref($data_dir, $username, "wrap_at");
31 $editor_size = getPref($data_dir, $username, "editor_size");
32 if ($editor_size == "")
35 $use_signature = getPref($data_dir, $username, "use_signature");
36 if ($use_signature == "")
37 $use_signature = false;
39 /** Load up the Signature file **/
40 if ($use_signature == true) {
41 $signature = getSig($data_dir, $username);