Couple minor fixes to previous Direct Messages Receiving commit.
authorbradymiller <bradymiller@users.sourceforge.net>
Mon, 18 Feb 2013 09:07:34 +0000 (18 01:07 -0800)
committerbradymiller <bradymiller@users.sourceforge.net>
Tue, 19 Feb 2013 07:57:31 +0000 (18 23:57 -0800)
interface/reports/direct_message_log.php
library/classes/Installer.class.php
library/direct_message_check.inc

index c4df0f1..8e8fba9 100644 (file)
@@ -157,8 +157,10 @@ require_once("../globals.php");
 
       <?php if ($row['status'] == "Q") { ?>
           <td align='center'><?php echo xlt("Queued") ?></td>
+      <?php } else if ($row['status'] == "S") { ?>
+          <td align='center'><?php echo xlt("Sent, but delivery not yet confirmed.") ?></td>
       <?php } else if ($row['status'] == "D") { ?>
-          <td align='center'><?php echo xlt("Dispatched") ?></td>
+          <td align='center'><?php echo xlt("Delivery Confirmed") ?></td>
       <?php } else if ($row['status'] == "R") { ?>
           <td align='center'><?php echo xlt("Received") ?></td>
       <?php } else if ($row['status'] == "F") { ?>
index cbb0716..74cc57d 100644 (file)
@@ -159,8 +159,10 @@ class Installer
   public function load_dumpfiles() {
     $sql_results = ''; // information string which is returned
     foreach ($this->dumpfiles as $filename => $title) {
-        $sql_results .= $this->load_file($filename,$title);
-        if ($sql_results == FALSE) return FALSE;
+        $sql_results_temp = '';
+        $sql_results_temp = $this->load_file($filename,$title);
+        if ($sql_results_temp == FALSE) return FALSE;
+        $sql_results .= $sql_results_temp;
     }
     return $sql_results;
   }
index 4f5e3a2..c2a93cc 100644 (file)
@@ -306,11 +306,9 @@ function phimail_logit($success,$text,$pid=0,$event="direct-message-check") {
  */
 function phimail_read_blob($fp,$len) {
 
-   $fpath=dirname(__FILE__) . "/../sites/default/documents/tmp_direct";
+   $fpath=$GLOBALS['temporary_files_dir'];
    if(!@file_exists($fpath)) {
-      if(!@mkdir($fpath,0700)) {
-         return FALSE;
-      }
+     return FALSE;
    }
    $name = uniqid("direct-");
    $fn = $fpath . "/" . $name . ".dat";