// Some security stuff...
if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
}
if (SQL_NUMROWS($result) > 0) {
// List found payouts
$OUT = ''; $SW = 2;
- while ($content = SQL_FETCHROW($result)) {
+ while ($content = SQL_FETCHARRAY($result)) {
if ($content['status'] == "NEW") {
// Generate links for direct accepting and rejecting
$content['status'] = "<a href=\"{!URL!}/modules.php?module=admin&what=list_payouts&do=accept&pid=".$content['id']."\">".PAYOUT_ACCEPT_PAYOUT."</a> | <a href=\"{!URL!}/modules.php?module=admin&what=list_payouts&do=reject&pid=".$content['id']."\">".PAYOUT_REJECT_PAYOUT."</a>";
$content['target_bank'] = "<a href=\"".FRAMETESTER($content['url'])."\" target=\"_blank\">{--CLICK_HERE--}</a>";
} else {
// e-currency payout request
- if (empty($content['target_account'])) $content['target_account'] = "---";
- if (empty($content['target_bank'])) $content['target_bank'] = "---";
+ if (empty($content['target_account'])) $content['target_account'] = '---';
+ if (empty($content['target_bank'])) $content['target_bank'] = '---';
}
// Remember data in array for the template