5b5803551e6e90f6749445d219f4bb86dab996c8
[squirrelmail.git] / src / load_prefs.php
1 <?
2 include("../config/config.php");
3 include("../functions/prefs.php");
4
5 $chosen_theme = getPref($data_dir, $username, "chosen_theme");
6
7 if ((isset($chosen_theme)) && (file_exists($chosen_theme))) {
8 require("$chosen_theme");
9 } else {
10 if (file_exists($theme[0]["PATH"])) {
11 require($theme[0]["PATH"]);
12 } else {
13 echo "Theme: " . $theme[0]["PATH"] . " was not found.<BR>";
14 echo "Exiting abnormally";
15 exit;
16 }
17 }
18 ?>