| 1 | <?php |
| 2 | if (!isset($config_php)) |
| 3 | include("../config/config.php"); |
| 4 | if (!isset($prefs_php)) |
| 5 | include("../functions/prefs.php"); |
| 6 | |
| 7 | $load_prefs_php = true; |
| 8 | checkForPrefs($data_dir, $username); |
| 9 | |
| 10 | $chosen_theme = getPref($data_dir, $username, "chosen_theme"); |
| 11 | |
| 12 | if ((isset($chosen_theme)) && (file_exists($chosen_theme))) { |
| 13 | require("$chosen_theme"); |
| 14 | } else { |
| 15 | if (file_exists($theme[0]["PATH"])) { |
| 16 | require($theme[0]["PATH"]); |
| 17 | } else { |
| 18 | echo _("Theme: "); |
| 19 | echo $theme[0]["PATH"]; |
| 20 | echo _(" was not found."); |
| 21 | echo "<BR>"; |
| 22 | echo _("Exiting abnormally"); |
| 23 | exit; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | |
| 28 | /** Load the user's trash folder preferences **/ |
| 29 | $move_to_trash = getPref($data_dir, $username, "move_to_trash"); |
| 30 | if ($move_to_trash == "") |
| 31 | $move_to_trash = $default_move_to_trash; |
| 32 | |
| 33 | $show_num = getPref($data_dir, $username, "show_num"); |
| 34 | if ($show_num == "") |
| 35 | $show_num = 25; |
| 36 | |
| 37 | $wrap_at = getPref($data_dir, $username, "wrap_at"); |
| 38 | if ($wrap_at == "") |
| 39 | $wrap_at = 86; |
| 40 | |
| 41 | $left_size = getPref($data_dir, $username, "left_size"); |
| 42 | if ($left_size == "") { |
| 43 | if (isset($default_left_size)) |
| 44 | $left_size = $default_left_size; |
| 45 | else |
| 46 | $left_size = 200; |
| 47 | } |
| 48 | |
| 49 | $folder_prefix = getPref($data_dir, $username, "folder_prefix"); |
| 50 | if ($folder_prefix == "") |
| 51 | $folder_prefix = $default_folder_prefix; |
| 52 | |
| 53 | $editor_size = getPref($data_dir, $username, "editor_size"); |
| 54 | if ($editor_size == "") |
| 55 | $editor_size = 76; |
| 56 | |
| 57 | $use_signature = getPref($data_dir, $username, "use_signature"); |
| 58 | if ($use_signature == "") |
| 59 | $use_signature = false; |
| 60 | |
| 61 | $left_refresh = getPref($data_dir, $username, "left_refresh"); |
| 62 | if ($left_refresh == "") |
| 63 | $left_refresh = false; |
| 64 | |
| 65 | /** Load up the Signature file **/ |
| 66 | if ($use_signature == true) { |
| 67 | $signature = getSig($data_dir, $username); |
| 68 | } else { |
| 69 | } |
| 70 | ?> |