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"]);
16 echo $theme[0]["PATH"];
17 echo _(" was not found.");
19 echo _("Exiting abnormally");
25 /** Load the user's trash folder preferences **/
26 $move_to_trash = getPref($data_dir, $username, "move_to_trash");
27 if ($move_to_trash == "")
28 $move_to_trash = $default_move_to_trash;
30 $wrap_at = getPref($data_dir, $username, "wrap_at");
34 $editor_size = getPref($data_dir, $username, "editor_size");
35 if ($editor_size == "")
38 $use_signature = getPref($data_dir, $username, "use_signature");
39 if ($use_signature == "")
40 $use_signature = false;
42 $left_refresh = getPref($data_dir, $username, "left_refresh");
43 if ($left_refresh == "")
44 $left_refresh = false;
46 /** Load up the Signature file **/
47 if ($use_signature == true) {
48 $signature = getSig($data_dir, $username);