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 4ae1f37..e895467 100644 (file)
 //  Relative (to the config directory):
 //    $data_dir = "../data/";
 
-    $data_dir = "../data/haha/";
+    $data_dir = "../data/";
 ?>
index 9368273..79cee53 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;
          }