fixed bug in color stuff
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Jan 2000 19:51:42 +0000 (19:51 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Jan 2000 19:51:42 +0000 (19:51 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@116 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/prefs.php
src/webmail.php

index 79cee53ebd825187f431ab9379e181b61329f396..f66f863780019f64a159423ef8a7571928e798de 100644 (file)
@@ -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";
    /** 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 (!file_exists($filename)) {
-         if (!copy("$data_dir$default_pref", $filename)) {
+         if (!copy("$data_dir" . "default_pref", $filename)) {
             echo "Error opening $filename";
             exit;
          }
             echo "Error opening $filename";
             exit;
          }
index 54eb524c6a15abba307a8e26b0e3939cc486e51a..ed6df33c8759723eacfa941c77f8ec1a16eca802 100644 (file)
    setcookie("logged_in", 1, 0, "/");
 ?>
 <HTML><HEAD>
    setcookie("logged_in", 1, 0, "/");
 ?>
 <HTML><HEAD>
-<TITLE>
 <?
    include ("../config/config.php");
    include ("../functions/prefs.php");
 <?
    include ("../config/config.php");
    include ("../functions/prefs.php");
+   echo "<TITLE>";
    echo "$org_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
 
 /**
     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.
 **/
     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") {
    checkForPrefs($data_dir, $username);
 
    if ($right_frame == "right_main.php") {