Pref file now isn't created if the login failed
[squirrelmail.git] / src / load_prefs.php
CommitLineData
d3cdb279 1<?
d0747e26 2 include("../config/config.php");
d3cdb279 3 include("../functions/prefs.php");
4
d0747e26 5 $chosen_theme = getPref($data_dir, $username, "chosen_theme");
d3cdb279 6
f3d17401 7 if ((isset($chosen_theme)) && (file_exists($chosen_theme))) {
d3cdb279 8 require("$chosen_theme");
9 } else {
f3d17401 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 }
d3cdb279 17 }
18?>