Browse Source

Fixed some bugs in data directory stuff

Luke Ehresman 25 years ago
parent
commit
0fd7a6774f
2 changed files with 3 additions and 2 deletions
  1. 1 1
      config/config.php
  2. 2 1
      functions/prefs.php

+ 1 - 1
config/config.php

@@ -117,5 +117,5 @@
 //  Relative (to the config directory):
 //    $data_dir = "../data/";
 
-    $data_dir = "../data/haha/";
+    $data_dir = "../data/";
 ?>

+ 2 - 1
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;
          }