d3cdb279 |
1 | <? |
d0747e26 |
2 | include("../config/config.php"); |
d3cdb279 |
3 | include("../functions/prefs.php"); |
4 | |
b4da6659 |
5 | checkForPrefs($data_dir, $username); |
6 | |
d0747e26 |
7 | $chosen_theme = getPref($data_dir, $username, "chosen_theme"); |
d3cdb279 |
8 | |
f3d17401 |
9 | if ((isset($chosen_theme)) && (file_exists($chosen_theme))) { |
d3cdb279 |
10 | require("$chosen_theme"); |
11 | } else { |
f3d17401 |
12 | if (file_exists($theme[0]["PATH"])) { |
13 | require($theme[0]["PATH"]); |
14 | } else { |
67c62ef9 |
15 | echo _("Theme: "); |
f94ff7ce |
16 | echo $theme[0]["PATH"]; |
17 | echo _(" was not found."); |
18 | echo "<BR>"; |
67c62ef9 |
19 | echo _("Exiting abnormally"); |
f3d17401 |
20 | exit; |
21 | } |
d3cdb279 |
22 | } |
11307a4c |
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; |
f804972b |
37 | |
38 | $use_signature = getPref($data_dir, $username, "use_signature"); |
39 | if ($use_signature == "") |
40 | $use_signature = false; |
41 | |
469eb37b |
42 | $left_refresh = getPref($data_dir, $username, "left_refresh"); |
43 | if ($left_refresh == "") |
44 | $left_refresh = false; |
45 | |
f804972b |
46 | /** Load up the Signature file **/ |
47 | if ($use_signature == true) { |
48 | $signature = getSig($data_dir, $username); |
49 | } else { |
f804972b |
50 | } |
11307a4c |
51 | ?> |
52 | |