Browse Source

fixed bug in color stuff

Luke Ehresman 25 năm trước cách đây
mục cha
commit
b6c453b202
2 tập tin đã thay đổi với 4 bổ sung7 xóa
  1. 1 2
      functions/prefs.php
  2. 3 5
      src/webmail.php

+ 1 - 2
functions/prefs.php

@@ -69,9 +69,8 @@
    /** This checks if there is a pref file, if there isn't, it will create it. **/
    function checkForPrefs($data_dir, $username) {
       $filename = "$data_dir$username.pref";
-      echo "$filename";
       if (!file_exists($filename)) {
-         if (!copy("$data_dir$default_pref", $filename)) {
+         if (!copy("$data_dir" . "default_pref", $filename)) {
             echo "Error opening $filename";
             exit;
          }

+ 3 - 5
src/webmail.php

@@ -16,14 +16,13 @@
    setcookie("logged_in", 1, 0, "/");
 ?>
 <HTML><HEAD>
-<TITLE>
 <?
    include ("../config/config.php");
    include ("../functions/prefs.php");
+   echo "<TITLE>";
    echo "$org_title";
-?>
-</TITLE>
-<FRAMESET COLS="200, *" NORESIZE BORDER=0>
+   echo "</TITLE>";
+   echo "<FRAMESET COLS=\"200, *\" NORESIZE BORDER=0>";
 
 /**
     There are three ways to call webmail.php
@@ -37,7 +36,6 @@
     This was done to create a pure HTML way of refreshing the folder list since
     we would like to use as little Javascript as possible.
 **/
-<?
    checkForPrefs($data_dir, $username);
 
    if ($right_frame == "right_main.php") {