| 1 | <? |
| 2 | include("../config/config.php"); |
| 3 | include("../functions/prefs.php"); |
| 4 | |
| 5 | checkForPrefs($data_dir, $username); |
| 6 | |
| 7 | $chosen_theme = getPref($data_dir, $username, "chosen_theme"); |
| 8 | |
| 9 | if ((isset($chosen_theme)) && (file_exists($chosen_theme))) { |
| 10 | require("$chosen_theme"); |
| 11 | } else { |
| 12 | if (file_exists($theme[0]["PATH"])) { |
| 13 | require($theme[0]["PATH"]); |
| 14 | } else { |
| 15 | echo _("Theme: "); |
| 16 | echo $theme[0]["PATH"]; |
| 17 | echo _(" was not found."); |
| 18 | echo "<BR>"; |
| 19 | echo _("Exiting abnormally"); |
| 20 | exit; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | |
| 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; |
| 29 | |
| 30 | $wrap_at = getPref($data_dir, $username, "wrap_at"); |
| 31 | if ($wrap_at == "") |
| 32 | $wrap_at = 86; |
| 33 | |
| 34 | $editor_size = getPref($data_dir, $username, "editor_size"); |
| 35 | if ($editor_size == "") |
| 36 | $editor_size = 76; |
| 37 | |
| 38 | $use_signature = getPref($data_dir, $username, "use_signature"); |
| 39 | if ($use_signature == "") |
| 40 | $use_signature = false; |
| 41 | |
| 42 | /** Load up the Signature file **/ |
| 43 | if ($use_signature == true) { |
| 44 | $signature = getSig($data_dir, $username); |
| 45 | } else { |
| 46 | } |
| 47 | ?> |
| 48 | |