]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-transfer.php
More bugs resolved, thanks to profi-concept
[mailer.git] / inc / modules / member / what-transfer.php
index e1516ea15251bd8b1e339d2a81600553e8bc7c2e..701f13352decd19728bb7373ca237e39527a3fb6 100644 (file)
@@ -162,11 +162,7 @@ case "new": // Start new transfer
 
                        // Remember transfer reason and fancy date/time in constants
                        define('__TRANSFER_REASON', $_POST['reason']);
-                       if (function_exists('CREATE_FANCY_TIME')) {
-                               define('__TRANSFER_EXPIRES', CREATE_FANCY_TIME(getConfig('transfer_age')));
-                       } else {
-                               define('__TRANSFER_EXPIRES', round(getConfig('transfer_age')/60/60/24)." ".DAYS);
-                       }
+                       define('__TRANSFER_EXPIRES', CREATE_FANCY_TIME(getConfig('transfer_age')));
 
                        // Generate tranafer id
                        define('__TRANS_ID', bigintval(GEN_RANDOM_CODE("10", mt_rand(0, 99999), $GLOBALS['userid'], $_POST['reason'])));
@@ -323,23 +319,23 @@ case "list_out": // List only outgoing transactions
                $OUT = ""; $SW = 2;
                while (list($tid, $uid, $points, $reason, $stamp) = SQL_FETCHROW($result)) {
                        if ($type == "OUT") $points = "$points-";
-                       $OUT .= "<TR>
-  <TD class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
+                       $OUT .= "<tr>
+  <td class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row1\">".$tid."</div>
-  </TD>
-  <TD class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
+  </td>
+  <td class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row2\">".MAKE_DATETIME($stamp, "3")."</div>
-  </TD>
-  <TD class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
+  </td>
+  <td class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row3\">".$uid."</div>
-  </TD>
-  <TD class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
+  </td>
+  <td class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row4\">".$reason."</div>
-  </TD>
-  <TD class=\"transfer_row5 switch_sw".$SW." bottom2\">
+  </td>
+  <td class=\"transfer_row5 switch_sw".$SW." bottom2\">
     <div class=\"transfer_row5\">".$points."</div>
-  </TD>
-</TR>\n";
+  </td>
+</tr>\n";
                        $total += $points;
                        $SW = 3 - $SW;
                }
@@ -348,11 +344,11 @@ case "list_out": // List only outgoing transactions
                SQL_FREERESULT($result);
        } else {
                // Nothing for in or out
-               $OUT = "<TR>
-  <TD colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
+               $OUT = "<tr>
+  <td colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
     ".LOAD_TEMPLATE("admin_settings_saved", true, $NOTHING)."
-  </TD>
-</TR>";
+  </td>
+</tr>";
        }
 
        // ... and add them to a constant for the template
@@ -412,23 +408,23 @@ array($GLOBALS['userid'], getConfig('transfer_max')), __FILE__, __LINE__);
                $result = SQL_QUERY("SELECT party_uid, trans_id, points, reason, time_trans, trans_type FROM "._MYSQL_PREFIX."_transfers_tmp ORDER BY time_trans DESC", __FILE__, __LINE__);
                while(list($uid, $idx, $points, $reason, $stamp, $type) = SQL_FETCHROW($result)) {
                        if ($type == "OUT") $points = "-$points";
-                       $OUT .= "<TR>
-  <TD class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
+                       $OUT .= "<tr>
+  <td class=\"transfer_row1 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row1\">".$idx."</div>
-  </TD>
-  <TD class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
+  </td>
+  <td class=\"transfer_row2 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row2\">".MAKE_DATETIME($stamp, "3")."</div>
-  </TD>
-  <TD class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
+  </td>
+  <td class=\"transfer_row3 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row3\">".$uid."</div>
-  </TD>
-  <TD class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
+  </td>
+  <td class=\"transfer_row4 switch_sw".$SW." bottom2 right2\">
     <div class=\"transfer_row4\">".$reason."</div>
-  </TD>
-  <TD class=\"transfer_row5 switch_sw".$SW." bottom2\">
+  </td>
+  <td class=\"transfer_row5 switch_sw".$SW." bottom2\">
     <div class=\"transfer_row5\">".$points."</div>
-  </TD>
-</TR>\n";
+  </td>
+</tr>\n";
                        $total += $points;
                        $SW = 3 - $SW;
                }
@@ -437,11 +433,11 @@ array($GLOBALS['userid'], getConfig('transfer_max')), __FILE__, __LINE__);
                SQL_FREERESULT($result);
        } else {
                // Nothing for in and out
-               $OUT = "<TR>
-  <TD colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
+               $OUT = "<tr>
+  <td colspan=\"5\" align=\"center\" class=\"bottom2\" height=\"70\">
     ".LOAD_TEMPLATE("admin_settings_saved", true, TRANSFER_NO_INOUT_TRANSFERS)."
-  </TD>
-</TR>";
+  </td>
+</tr>";
        }
 
        // ... and add them to a constant for the template