<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 05/08/2004 *
- * ================ Last change: 08/12/2004 *
+ * =================== Last change: 08/12/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-list_payouts.php *
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
loadTemplate('admin_settings_saved', false, getMessage('PAYOUT_FAILED_OBTAIN_TASK_ID'));
}
} else {
- if (!isGetRequestElementSet('do')) setRequestGetElement('do', '');
-
if (getRequestElement('do') == 'delete') {
// Delete all requests
$result = SQL_QUERY("TRUNCATE `{?_MYSQL_PREFIX?}_user_payouts`", __FILE__, __LINE__);
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['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>";
} else {
// Translate status
$content['status'] = getMessage('PAYOUT_STATUS_'.strtoupper($content['status']).'');