<?
include("../config/config.php");
- include("../functions/prefs.php");
+
+ if (!isset($prefs_php))
+ include("../functions/prefs.php");
checkForPrefs($data_dir, $username);
if (file_exists($theme[0]["PATH"])) {
require($theme[0]["PATH"]);
} else {
- echo "Theme: " . $theme[0]["PATH"] . " was not found.<BR>";
- echo "Exiting abnormally";
+ echo _("Theme: ");
+ echo $theme[0]["PATH"];
+ echo _(" was not found.");
+ echo "<BR>";
+ echo _("Exiting abnormally");
exit;
}
}
if ($wrap_at == "")
$wrap_at = 86;
+ $left_size = getPref($data_dir, $username, "left_size");
+ if ($left_size == "") {
+ if (isset($default_left_size))
+ $left_size = $default_left_size;
+ else
+ $left_size = 200;
+ }
+
$editor_size = getPref($data_dir, $username, "editor_size");
if ($editor_size == "")
$editor_size = 76;
if ($use_signature == "")
$use_signature = false;
+ $left_refresh = getPref($data_dir, $username, "left_refresh");
+ if ($left_refresh == "")
+ $left_refresh = false;
+
/** Load up the Signature file **/
if ($use_signature == true) {
$signature = getSig($data_dir, $username);
} else {
- $signature = "";
}
?>
-