Changed temp file write to from due to leftover file possiblity, At least they...
authorlbergman <lbergman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 3 Jul 2000 14:44:49 +0000 (14:44 +0000)
committerlbergman <lbergman@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 3 Jul 2000 14:44:49 +0000 (14:44 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@583 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/addressbook_csvimport.php

index 2fa1af87f44e75baba790f94de0b7c8f0e11ce1f..1b262d2ca200cc4ef4fbda85c3a8c08c12b472da 100644 (file)
@@ -81,7 +81,7 @@
    if($flag <= 1) {                                      // If first run of script, setup the filename to copy
       $tempfilename = ($username . (time()+2592000));
       $nameholder = $tempfilename;
-      if(copy($smusercsv, "$data_dir$tempfilename")) { // Set up variable to use in printing status
+      if(copy($smusercsv, "$attachment_dir$tempfilename")) {   // Set up variable to use in printing status
          $goodcopy = true;
       } else {
          $goodcopy = false;
           echo "   </TR>\n";
           echo "   <TR>\n";
           echo "      <TD>";
-          if(!$goodcopy && $flag == 0) {                       // print correct status of file copying
+          if(!$goodcopy && $flag == 0) {                                   // print correct status of file copying
              echo _("Failed to create working copy, Please try again.");
           } else {
              echo _("Created working copy, continuing with process...");
 
    // open the correct filename to work with
        if($flag <= 1) {                            // before submit
-          $fp = fopen("$data_dir$tempfilename", "r");
+          $fp = fopen("$attachment_dir$tempfilename", "r");
        } elseif($flag >= 2) {                      // after submit
-          $fp = fopen("$data_dir$nameholder", "r");
+          $fp = fopen("$attachment_dir$nameholder", "r");
        }
 
        echo "<CENTER><TABLE WIDTH=\"95%\" FRAME=\"void\" CELLSPACING=\"1\">\n";        // user's data table
 
    // Clean up after ourselves.
    if($finish) {
-      unlink ("$data_dir$tempfilename");
+      unlink ("$attachment_dir$tempfilename");
    }
    
 ?>