************************************************************************/
// 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(
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