// Output header
loadIncludeOnce('inc/header.php');
-// Banner in text
-$content['banner'] = loadTemplate('doubler_banner', TRUE);
-
-// Load header/footer templates
-$content['header'] = loadTemplate('doubler_header', TRUE);
-$content['footer'] = loadTemplate('doubler_footer', TRUE);
-
if (isUserDataValid()) {
// Transfer userid/nickname to constant
$content['refid'] = getUserData('userid');
// Does the "mailid" call-back
function doMailIdCallback ($data) {
- // Load banner generically
- $data['banner'] = loadTemplate('mailid_banner', TRUE);
-
// Generate call-back function name
$callbackName = 'doMailId' . trim(capitalizeUnderscoreString($data['do']));
// Start listing holiday requests
$result = SQL_QUERY("SELECT
- h.`id`,
- h.`userid`,
- h.`holiday_start`,
- h.`holiday_end`,
- h.`comments`,
+ `h`.`id`,
+ `h`.`userid`,
+ `h`.`holiday_start`,
+ `h`.`holiday_end`,
+ `h`.`comments`,
`d`.`status`,
`d`.`last_online`
FROM
LEFT JOIN
`{?_MYSQL_PREFIX?}_user_data` AS `d`
ON
- h.`userid`=`d`.`userid`
+ `h`.`userid`=`d`.`userid`
ORDER BY
- h.`userid` ASC", __FILE__, __LINE__);
+ `h`.`userid` ASC", __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result)) {
// List all holiday requests
`t`.`type`,
`p`.`payout_timestamp`,
`p`.`status`,
- `t`.`allow_url` AS `allow`,
- `p`.`target_url` AS `url`,
- `p`.`link_text` AS `alt`,
- `p`.`banner_url` AS `banner`
+ `t`.`allow_url`
+ `p`.`target_url`,
+ `p`.`link_text`
+ `p`.`banner_url`
FROM
`{?_MYSQL_PREFIX?}_user_payouts` AS `p`
LEFT JOIN
}
// Nothing entered must be secured in member/what-payputs.php !
- if ($content['allow'] == 'Y') {
+ if ($content['allow_url'] == 'Y') {
// Banner/Textlink views/clicks request
- if (!empty($content['banner'])) {
+ if (!empty($content['banner_url'])) {
// Load template for the banner
$content['target_account'] = loadTemplate('admin_list_payouts_banner', TRUE, $content);
} else {
}
// Admins can addionally test the URL for framekillers
- $content['target_bank'] = '<a href="' . generateFrametesterUrl($content['url']) . '" target="_blank">{--CLICK_HERE--}</a>';
+ $content['target_bank'] = '<a href="' . generateFrametesterUrl($content['target_url']) . '" target="_blank">{--CLICK_HERE--}</a>';
} // END - if
// Add/Translate some data
if (isExtensionActive('holiday')) {
// Total holiday requests
$result = SQL_QUERY("SELECT
- COUNT(h.`userid`) AS `count_holidays`
+ COUNT(`h`.`userid`) AS `count_holidays`
FROM
`{?_MYSQL_PREFIX?}_user_holidays` AS `h`
LEFT JOIN
`{?_MYSQL_PREFIX?}_user_data` AS `d`
ON
- h.`userid`=`d`.`userid`
+ `h`.`userid`=`d`.`userid`
WHERE
`d`.`holiday_active`='Y'
" . runFilterChain('user_exclusion_sql', ' '),
SQL_FREERESULT($result);
// Check for his payouts
- $result_payouts = SQL_QUERY_ESC("SELECT
+ $result_payouts = SQL_QUERY_ESC('SELECT
`p`.`id`,
`p`.`payout_total`,
`p`.`target_account`,
`t`.`type`,
`p`.`payout_timestamp`,
`p`.`status`,
- `t`.`allow_url` AS `allow`,
- `p`.`target_url` AS `url`,
+ `t`.`allow_url`,
+ `p`.`target_url`,
`p`.`link_text`,
- `p`.`banner_url` AS `banner`
+ `p`.`banner_url`
FROM
`{?_MYSQL_PREFIX?}_user_payouts` AS `p`
LEFT JOIN
WHERE
`p`.`userid`=%s
ORDER BY
- `p`.`payout_timestamp` DESC",
+ `p`.`payout_timestamp` DESC',
array(getMemberId()), __FILE__, __LINE__);
if (!SQL_HASZERONUMS($result_payouts)) {
// List all his requests
$OUT = '';
while ($content = SQL_FETCHARRAY($result_payouts)) {
// Nothing entered must be secured in member/what-payputs.php !
- if ($content['allow'] == 'Y') {
+ if ($content['allow_url'] == 'Y') {
// Banner/Textlink views/clicks request
if (!empty($content['banner'])) {
// Banner
// Textlink
$content['target_account'] = $content['link_text'];
}
- $content['target_bank'] = '<a href="{%pipe,generateDereferrerUrl=' . $content['url'] . '%}" target="_blank">{--CLICK_HERE--}</a>';
+ $content['target_bank'] = '<a href="{%pipe,generateDereferrerUrl=' . $content['target_url'] . '%}" target="_blank">{--CLICK_HERE--}</a>';
} // END - if
// Prepare data for the template
}
} else {
// Chedk if he can get paid by selected type
- $result = SQL_QUERY_ESC("SELECT `type`, `rate`, `min_points`, `allow_url` AS `allow` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `type`, `rate`, `min_points`, `allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
array(bigintval(getRequestElement('payout'))), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
subtractPoints('payout', getMemberId(), $points);
// Add entry to his tranfer history
- if ($content['allow'] == 'Y') {
+ if ($content['allow_url'] == 'Y') {
// Banner/textlink ordered
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_user_payouts` (`userid`, `payout_total`, `payout_id`, `payout_timestamp`, `status`, `target_url`, `link_text`, `banner_url`)
VALUES (%s,%s,%s, UNIX_TIMESTAMP(), 'NEW','%s','%s','%s')",
// Load template and output it
displayMessage('{--MEMBER_PAYOUT_REQUEST_SENT--}');
- } elseif ($content['allow'] == 'Y') {
+ } elseif ($content['allow_url'] == 'Y') {
// Prepare content
$content = array(
'max' => $max,
------------------------------
Ziel-URL: $content[turl]
Linktext: $content[link_text]
-Banner-URL: $content[banner]
+Banner-URL: $content[banner_url]
------------------------------
Bitte überprüfen Sie diese Daten und überweisen Sie dann den geforderten Betrag.
------------------------------
Ziel-URL: $content[turl]
Linktext: $content[link_text]
-Banner-URL: $content[banner]
+Banner-URL: $content[banner_url]
------------------------------
Die dazu nötigen $content[payout_points] haben wir Ihnen bereits abgezogen.
<div class="para">
{--PAYOUT_OPTIONAL_BANNER--}:
- <strong><a href="$content[banner]" title="$content[link_text]" target="_blank">$content[banner]</a></strong>
+ <strong><a href="$content[banner_url]" title="$content[link_text]" target="_blank">$content[banner_url]</a></strong>
</div>
<div class="para">
</div>
<div class="para">
{--PAYOUT_TARGET_URL--}:
- <strong>$content[url]</strong>
+ <strong>$content[target_url]</strong>
</div>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" class="table" width="100%">
<tr>
- <td height="80" align="center">$content[header]</td>
+ <td height="80" align="center">
+ {%template,LoadTemplate=doubler_header%}
+ </td>
</tr>
<tr>
<td align="center">
{--DOUBLER_YOUR_ADVERTISING_HERE--} <a
href="{%url=modules.php?module=index&what=impressum&refid=$content[refid]%}">{--DOUBLER_CONTACT_US--}</a><br />
<br />
- $content[banner]<br />
+ {%template,LoadTemplate=doubler_banner%}<br />
<br />
$content[payout_history]</td>
</tr>
<tr>
- <td height="80" align="center">$content[footer]</td>
+ <td height="80" align="center">
+ {%template,LoadTemplate=doubler_footer%}
+ </td>
</tr>
</table>
</div>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>
</td>
<td align="center">
<div class="banner dashed">
- $content[banner]
+ {%template,LoadTemplate=mailid_banner%}
</div>
</td>
</tr>