소스 검색

Fixed some bugs in data directory stuff

Luke Ehresman 25 년 전
부모
커밋
0fd7a6774f
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  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;
          }