git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@116
7612ce4b-ef26-0410-bec9-
ea0150e637f0
/** 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";
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;
}
setcookie("logged_in", 1, 0, "/");
?>
<HTML><HEAD>
setcookie("logged_in", 1, 0, "/");
?>
<HTML><HEAD>
<?
include ("../config/config.php");
include ("../functions/prefs.php");
<?
include ("../config/config.php");
include ("../functions/prefs.php");
-?>
-</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
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") {