From 96ba920bb2821a38dfa3d7554f7b3406d3464544 Mon Sep 17 00:00:00 2001 From: lkehresman Date: Thu, 6 Jan 2000 19:37:55 +0000 Subject: [PATCH 1/1] Fixed some bugs in data directory stuff git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@115 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/config.php | 2 +- functions/prefs.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/config.php b/config/config.php index 4ae1f376..e8954679 100644 --- a/config/config.php +++ b/config/config.php @@ -117,5 +117,5 @@ // Relative (to the config directory): // $data_dir = "../data/"; - $data_dir = "../data/haha/"; + $data_dir = "../data/"; ?> diff --git a/functions/prefs.php b/functions/prefs.php index 93682733..79cee53e 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -69,8 +69,9 @@ /** 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_dirdefault_pref", $filename)) { + if (!copy("$data_dir$default_pref", $filename)) { echo "Error opening $filename"; exit; } -- 2.25.1