Fixes some bugs in preferences
[squirrelmail.git] / src / load_prefs.php
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: " . $theme[0]["PATH"] . " was not found.<BR>";
16 echo "Exiting abnormally";
17 exit;
18 }
19 }
20 ?>