]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_transfer.php
Fixes for stripped HTML tags, and false warnings in debug log
[mailer.git] / inc / modules / admin / what-list_transfer.php
index 64b64747506fbfc7a3beb65118dcd5390448cd7b..c2a1d56268ed9af912082ecbccfc7828e2dbf698 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']) || (!IS_ADMIN()))
-{
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 // We only need outgoing transfers
-$result = SQL_QUERY("SELECT userid, to_uid, trans_id, points, reason, time_trans FROM "._MYSQL_PREFIX."_user_transfers_out ORDER BY trans_id", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT userid, to_uid, trans_id, points, reason, time_trans FROM `{!_MYSQL_PREFIX!}_user_transfers_out` ORDER BY trans_id", __FILE__, __LINE__);
 $total = 0;
 if (SQL_NUMROWS($result) > 0)
 {
        // Output rows
        $OUT = ""; $SW = 2;
-       while(list($uid1, $uid2, $idx, $points, $reason, $stamp) = SQL_FETCHROW($result))
+       while (list($uid1, $uid2, $idx, $points, $reason, $stamp) = SQL_FETCHROW($result))
        {
                // Prepare data for the row template
                $content = array(
@@ -72,11 +71,11 @@ if (SQL_NUMROWS($result) > 0)
  else
 {
        // Nothing for in and out
-       $OUT = "<TR>
-  <TD colspan=\"6\" align=\"center\" class=\"bottom2\" height=\"70\">
+       $OUT = "<tr>
+  <td colspan=\"6\" 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