Fixed some bugs in data directory stuff
authorlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Jan 2000 19:37:55 +0000 (19:37 +0000)
committerlkehresman <lkehresman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Jan 2000 19:37:55 +0000 (19:37 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@115 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/config.php
functions/prefs.php

index 4ae1f37655622c55357ac01a2378678b34718074..e89546791fdf2552c239e82cf82cfde712b7eb24 100644 (file)
 //  Relative (to the config directory):
 //    $data_dir = "../data/";
 
-    $data_dir = "../data/haha/";
+    $data_dir = "../data/";
 ?>
index 93682733a1ebe49d7883d82287c22d2cd6961f07..79cee53ebd825187f431ab9379e181b61329f396 100644 (file)
@@ -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;
          }