templates/de/html/admin/admin_list_online.tpl -text
templates/de/html/admin/admin_list_online_row.tpl -text
templates/de/html/admin/admin_list_payments.tpl -text
+templates/de/html/admin/admin_list_payments_row.tpl -text
templates/de/html/admin/admin_list_payouts.tpl -text
templates/de/html/admin/admin_list_payouts_banner.tpl -text
templates/de/html/admin/admin_list_payouts_row.tpl -text
array($total_gain), __FUNCTION__, __LINE__);
// Get total runs and total optimization count
- $result = SQL_QUERY("SELECT COUNT(`id`) AS rows, SUM(`gain`) AS opti FROM `{?_MYSQL_PREFIX?}_optimize_gain`", __FUNCTION__, __LINE__);
- list($total_rows, $total_opti) = SQL_FETCHROW($result);
+ $result = SQL_QUERY("SELECT COUNT(`id`) AS `total_rows`, SUM(`gain`) AS `total_optimized` FROM `{?_MYSQL_PREFIX?}_optimize_gain`", __FUNCTION__, __LINE__);
+ $ret = merge_array($ret, SQL_FETCHARRAY($result));
// Free memory
SQL_FREERESULT($result);
- // Transfer data
- $ret['total_rows'] = $total_rows;
- $ret['total_opti'] = $total_opti;
-
// Return array
return $ret;
}
$content = array(
'hash' => $hash,
'userid' => $userid,
- 'gender' => translateGender(postRequestParameter('gender')),
+ 'gender' => SQL_ESCAPE(postRequestParameter('gender')),
'surname' => SQL_ESCAPE(postRequestParameter('surname')),
'family' => SQL_ESCAPE(postRequestParameter('family')),
'email' => SQL_ESCAPE(postRequestParameter('email')),
$content = array(
'hash' => $hash,
'userid' => $userid,
- 'gender' => translateGender(postRequestParameter('gender')),
+ 'gender' => SQL_ESCAPE(postRequestParameter('gender')),
'surname' => SQL_ESCAPE(postRequestParameter('surname')),
'family' => SQL_ESCAPE(postRequestParameter('family')),
'email' => SQL_ESCAPE(postRequestParameter('email')),
// Prepare content
$content = merge_array($extraFields, array(
'url' => $url,
- 'frametester' => generateFrametesterUrl($url),
'url_userid' => $userid,
'url_status' => $status,
));
$DOUBLER_POINTS -= $content['points'];
// Prepare array
- $content = array(
- // Doubler transmission id
- 'id' => $content['id'],
- // Doubled points
- 'points' => $content['points'],
- // Timemark
- 'timemark' => generateDateTime($content['timemark'], 2),
- // IP number when the member submitted the doubling form
- 'remote_ip' => $content['remote_ip'],
- );
+ $content['timemark'] = generateDateTime($content['timemark'], 2);
// Load mail template and send mail away...
$message = loadEmailTemplate('member_doubler', $content, $content['userid']);
if (SQL_HASZERONUMS($result)) {
// Add now
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_payout_types`
-(type, rate, min_points, from_account, from_pass, engine_url, engine_ret_ok, engine_ret_failed, pass_enc, allow_url)
-VALUES ('%s', %d, %d,'%s','%s','%s','%s','%s','%s','%s')",
+(`type`, `rate`, `min_points`, `from_account`, `from_pass`, `engine_url`, `engine_ret_ok`, `engine_ret_failed`, `pass_enc`, `allow_url`)
+VALUES ('%s', %s, %s,'%s','%s','%s','%s','%s','%s','%s')",
array(
postRequestParameter('title'),
bigintval(postRequestParameter('rate')),
`id`=%s
LIMIT 1",
array(
- postRequestParameter('title', $id),
+ postRequestParameter('type', $id),
convertCommaToDot(postRequestParameter('rate', $id)),
convertCommaToDot(postRequestParameter('min_points' , $id)),
- postRequestParameter('allow', $id),
+ postRequestParameter('allow_url', $id),
bigintval($id)
),__FILE__, __LINE__, false));
}
$OUT = '';
foreach (postRequestParameter('sel') as $id => $sel) {
// Load data
- $result = SQL_QUERY_ESC("SELECT type, rate, min_points, allow_url FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- list($title, $rate, $min_points, $allow) = SQL_FETCHROW($result);
+ $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points`, `allow_url` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+ $content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
// Prepare data for the row template
- $content = array(
- 'id' => $id,
- 'title' => $title,
- 'rate' => translateComma($rate),
- 'min_points' => translateComma($min_points),
- 'allow' => addSelectionBox('yn', $allow, 'allow[' . $id . ']'),
- );
+ $content['allow_url'] = addSelectionBox('yn', $content['allow_url'], 'allow_url[' . $content['id'] . ']');
// Load row template and switch color
$OUT .= loadTemplate('admin_config_payouts_edit_row', true, $content);
// Delete entries
foreach (postRequestParameter('sel') as $id => $sel) {
addSql(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__, false));
+ array(bigintval($id)), __FILE__, __LINE__, false));
} // END - foreach
// Run all SQLs
$id = bigintval($id);
// Load data
- $result = SQL_QUERY_ESC("SELECT type, rate, min_points FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
- array($id), __FILE__, __LINE__);
- list($title, $rate, $min_points) = SQL_FETCHROW($result);
+ $result = SQL_QUERY_ESC("SELECT `id`, `type`, `rate`, `min_points` FROM `{?_MYSQL_PREFIX?}_payout_types` WHERE `id`=%s LIMIT 1",
+ array($id), __FILE__, __LINE__);
+ $content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
- // Prepare data for the row template
- $content = array(
- 'id' => $id,
- 'title' => $title,
- 'rate' => translateComma($rate),
- 'min_points' => translateComma($min_points),
- );
-
// Load row template and switch color
$OUT .= loadTemplate('admin_config_payouts_del_row', true, $content);
} // END - foreach
// List all payout types
$OUT = '';
while ($content = SQL_FETCHARRAY($result_type)) {
- // Prepare data for the row template
- $content = array(
- 'id' => $content['id'],
- 'from_account' => $content['from_account'],
- 'type' => $content['type'],
- 'rate' => translateComma($content['rate']),
- 'min_points' => translateComma($content['min_points']),
- );
-
// Load row template and switch color
$OUT .= loadTemplate('admin_config_payouts_row', true, $content);
} // END - while
setPostRequestParameter('percents', array($id => convertCommaToDot(postRequestParameter('percents', $id))));
// Update entry
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`='%s', `percents`='%s' WHERE `id`=%s LIMIT 1",
- array(bigintval($value), postRequestParameter('percents', $id), $id), __FILE__, __LINE__);
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refdepths` SET `level`=%s, `percents`=%s WHERE `id`=%s LIMIT 1",
+ array(bigintval($value), convertCommaToDot(postRequestParameter('percents', $id)), $id), __FILE__, __LINE__);
}
$message = '{--REF_DEPTHS_SAVED--}';
break;
// Delete entries
$OUT = '';
foreach (postRequestParameter('sel') as $id => $value) {
- $result = SQL_QUERY_ESC("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
$content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
- // Prepare data for the row template
- $content = array(
- 'id' => $id,
- 'level' => $content['level'],
- 'percents' => translateComma($content['percents']),
- );
-
// Load row template and switch color
$OUT .= loadTemplate('admin_points_del_row', true, $content);
} // END - foreach
// Edit entries
$OUT = '';
foreach (postRequestParameter('sel') as $id => $value) {
- $result = SQL_QUERY_ESC("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`, `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `id`=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
$content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
- // Prepare data for the row template
- $content = array(
- 'id' => $id,
- 'level' => $content['level'],
- 'percents' => translateComma($content['percents']),
- );
-
// Load row template and switch color
$OUT .= loadTemplate('admin_points_edit_row', true, $content);
} // END - foreach
case 'overview': // List all registered extensions
if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) {
// Load extension data with CSS informations
- $result = SQL_QUERY("SELECT `id` AS ext_id, `ext_name`, `ext_active`, `ext_has_css` AS ext_css, `ext_version`
-FROM `{?_MYSQL_PREFIX?}_extensions`
+ $result = SQL_QUERY("SELECT
+ `id` AS ext_id, `ext_name`, `ext_active`, `ext_has_css` AS ext_css, `ext_version`
+FROM
+ `{?_MYSQL_PREFIX?}_extensions`
".$where."
-ORDER BY `ext_name` ASC", __FILE__, __LINE__);
+ORDER BY
+ `ext_name` ASC", __FILE__, __LINE__);
} else {
// Load extension data without CSS informations
- $result = SQL_QUERY("SELECT `id` AS ext_id, `ext_name`, `ext_active`, `id`, `ext_version`
-FROM `{?_MYSQL_PREFIX?}_extensions`
+ $result = SQL_QUERY("SELECT
+ `id` AS ext_id, `ext_name`, `ext_active, `ext_version`
+FROM
+ `{?_MYSQL_PREFIX?}_extensions`
".$where."
-ORDER BY `ext_name` ASC", __FILE__, __LINE__);
+ORDER BY
+ `ext_name` ASC", __FILE__, __LINE__);
}
// Are there some entries?
if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) $cssSelection = translateYesNo($content['ext_css']);
// Prepare data for the row template
- // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
- $content = array(
- 'id' => $content['ext_id'],
- 'name' => $content['ext_name'],
- 'active' => translateYesNo($content['ext_active']),
- 'act_val' => $content['ext_active'],
- 'css' => $cssSelection,
- 'ver' => $content['ext_version'],
- );
+ $content['ext_css'] = $cssSelection;
// Load row template and switch color
$OUT .= loadTemplate('admin_extensions_row', true, $content);
'link' => $LINK,
'subject' => $content['subject'],
'timestamp' => generateDateTime($content['timestamp'], 0),
- 'cat' => getCategory($content['cat_id']),
+ 'cat_id' => $content['cat_id'],
);
// Load row template
'status' => $content['status'],
'sponsor_created' => generateDateTime($content['sponsor_created'], 2),
'last_online' => generateDateTime($content['last_online'], 2),
- 'points' => translateComma($content['points_amount'] - $content['points_used']),
+ 'points' => ($content['points_amount'] - $content['points_used']),
'remote_addr' => $content['remote_addr'],
);
$OUT = '';
foreach (postRequestParameter('id') as $id => $sel) {
// Load entry
- $result = SQL_QUERY_ESC("SELECT `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`='%s' LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id`, `pay_name`, `pay_rate`, `pay_min_count`, `pay_currency` FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Load data
- list($name, $rate, $min, $curr) = SQL_FETCHROW($result);
- SQL_FREERESULT($result);
-
- // Transfer data to array
- $content = array(
- 'id' => bigintval($id),
- 'name' => htmlspecialchars($name),
- 'rate' => translateComma($rate),
- 'min' => bigintval($min),
- 'curr' => htmlspecialchars($curr)
- );
+ $content = SQL_FETCHARRAY($result);
if (isFormSent('edit')) {
// Edit entry
// Entry invalid
$OUT .= loadTemplate('admin_list_sponsor_pay_404', true, $id);
}
+
+ // Free result
+ SQL_FREERESULT($result);
} // END - foreach
// Load main template depending on mode (edit/delete)
// List alle found payment types
while ($content = SQL_FETCHARRAY($result)) {
- // Remember data in array
- $content = array(
- 'id' => $content['id'],
- 'name' => $content['pay_name'],
- 'rate' => translateComma($content['pay_rate']),
- 'min' => $content['pay_min_count'],
- 'currency' => $content['pay_currency']
- );
-
// Add row
$OUT .= loadTemplate('admin_list_sponsor_pay_row', true, $content);
} // END - while
'tpl' => $row_array[0],
'rep' => $REP,
'opt' => $OPT,
- 'sum' => translateComma($row_array[3]),
- 'sav' => translateComma($row_array[4]),
+ 'sum' => $row_array[3],
+ 'sav' => $row_array[4],
);
// Load row template and switch color
// Remember rows
$content['rows'] = $OUT;
-// Prepare data for the template
-$content['total_tabs'] = $DATA['total_tabs'];
-$content['total_size'] = translateComma($DATA['total_size']);
-$content['total_rows'] = $DATA['total_rows'];
-$content['total_optimized'] = translateComma($DATA['total_opti']);
+// Transfer data to $content for template
+$content = merge_array($content, $DATA);
$content['now_optimized'] = $gain_tabs;
-$content['now_saved'] = translateComma($DATA['total_gain']);
// Load main template
loadTemplate('admin_optimize', false, $content);
// List already existing categories for editing
while ($content = SQL_FETCHARRAY($result)) {
- // Prepare array for the row template
- // @TODO Rewritings: title->mail_title in template
- $content = array(
- 'id' => $content['id'],
- 'time' => $content['time'],
- 'title' => $content['mail_title'],
- 'payment' => translateComma($content['payment']),
- 'price' => translateComma($content['price'])
- );
-
// Load row template and switch colors
- $OUT .= loadTemplate('admin_payments_list_row', true, $content);
+ $OUT .= loadTemplate('admin_list_payments_row', true, $content);
} // END - switch
// Free memory
switch (getRequestParameter('mode')) {
case 'add':
// Check if banner is already added
- $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE url='%s' LIMIT 1",
- array(postRequestParameter('url')), __FILE__, __LINE__);
+ $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `url`='%s' LIMIT 1",
+ array(postRequestParameter('url')), __FILE__, __LINE__);
+
+ // Was the banner found?
if (SQL_HASZERONUMS($result)) {
// Add banner
- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (url, alternate, visible)
+ SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_refbanner` (`url`, `alternate`, `visible`)
VALUES ('%s','%s','%s')",
- array(postRequestParameter('url'), postRequestParameter('alternate'), postRequestParameter('visible')), __FILE__, __LINE__);
- } else {
- // Free memory
- SQL_FREERESULT($result);
- }
+ array(
+ postRequestParameter('url'),
+ postRequestParameter('alternate'),
+ postRequestParameter('visible')
+ ), __FILE__, __LINE__);
+ } // END - if
+
+ // Free memory
+ SQL_FREERESULT($result);
break;
case 'edit': // Update banner
$id = bigintval($id);
// Update entry
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET url='%s', alternate='%s', `visible`='%s' WHERE `id`=%s LIMIT 1",
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_refbanner` SET `url`='%s', `alternate`='%s', `visible`='%s' WHERE `id`=%s LIMIT 1",
array(
postRequestParameter('url', $id),
postRequestParameter('alternate', $id),
$OUT = '';
foreach (postRequestParameter('sel') as $id => $sel) {
// Load data
- $result = SQL_QUERY_ESC("SELECT url, alternate, visible FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- list($url, $alt, $vis) = SQL_FETCHROW($result);
+ $result = SQL_QUERY_ESC("SELECT `url`, `alternate`, `visible` FROM `{?_MYSQL_PREFIX?}_refbanner` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+ $content = SQL_FETCHARRAY($result);
SQL_FREERESULT($result);
// Preapre data for the row
- $content = array(
- 'id' => $id,
- 'url' => $url,
- 'alt' => $alt,
- 'vis' => addSelectionBox('yn', $vis , 'visible'),
- );
+ $content['visible'] => addSelectionBox('yn', $content['visible'], 'visible');
// Load row template and switch color
$OUT .= loadTemplate('admin_refbanner_edit_row', true, $content);
} // END - if
// Referal levels
- $result = SQL_QUERY("SELECT id, url, alternate, visible, counter, clicks FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY url", __FILE__, __LINE__);
+ $result = SQL_QUERY('SELECT `id`, `url`, `alternate`, `visible`, `counter`, `clicks` FROM `{?_MYSQL_PREFIX?}_refbanner` ORDER BY `url` ASC', __FILE__, __LINE__);
// Entries found?
if (SQL_NUMROWS($result) > 0) {
// Make referal banner editable and deletable
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
- // Preapre data for the row
- // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
- $content = array(
- 'id' => $content['id'],
- 'url' => $content['url'],
- 'alt' => $content['alternate'],
- 'vis' => translateYesNo($content['visible']),
- 'cnt' => $content['counter'],
- 'clx' => $content['clicks']
- );
-
// Load row template and switch color
$OUT .= loadTemplate('admin_refbanner_row', true, $content);
} // END - while
// Load main template
loadTemplate('admin_refbanner', false, $OUT);
- }
+ } // END - if
// Form for adding new referal levels
loadTemplate('admin_add_banner');
// Prepare content
$content = array(
+ 'inc' => $INC,
'source' => $langFile,
- 'target' => basename($INC),
- 'diff_count' => translateComma(getLanguageComparisonDifference($INC)),
'diff_content' => $diffContent,
);
} else {
// Not readable, prepare content
$content = array(
- 'file' => basename($INC),
- 'lang' => $lang,
+ 'inc' => $INC,
+ 'lang' => $lang,
);
// Load template
// Preapre content
$content = array(
'rows' => $OUT,
- 'file_count' => translateComma(count($langFiles)),
- 'total_diff' => translateComma($GLOBALS['lang_diff_count']['total']),
- 'total_msgs' => translateComma($GLOBALS['msg_count'][getCurrentLanguage()]),
+ 'file_count' => count($langFiles),
+ 'total_diff' => $GLOBALS['lang_diff_count']['total'],
+ 'total_msgs' => $GLOBALS['msg_count'][getCurrentLanguage()],
);
// Load main template
// Clicks on beg links
$data = array(
'lang' => '{--MEDIA_BEG_CLICKS--}',
- 'value' => countSumTotalData('0', 'user_data', 'beg_clicks', 'userid', false, " AND `beg_clicks` > 0")
+ 'value' => countSumTotalData('0', 'user_data', 'beg_clicks', 'userid', false, ' AND `beg_clicks` > 0')
);
$OUT_EXTRA .= loadTemplate('mediadata_extra_row', true, $data);
}
// Add first line (count)
$data = array(
'lang' => '{--MEDIA_DOUBLER_COUNT--}',
- 'value' => countSumTotalData('Y','doubler','id','completed', true, " AND `points` > 0"),
+ 'value' => countSumTotalData('Y','doubler','id','completed', true, ' AND `points` > 0'),
);
// Add points
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row2', true, $data);
$data = array(
'lang' => '{--MEDIA_DOUBLER_CPOINTS--}',
- 'value' => translateComma(countSumTotalData('Y','doubler','id','completed', false, " AND `points` > 0"))
+ 'value' => countSumTotalData('Y','doubler','id','completed', false, ' AND `points` > 0')
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
'lang' => '{--MEDIA_DOUBLER_WAITING--}',
- 'value' => translateComma(countSumTotalData('N','doubler','id','completed', true, " AND `points` > 0"))
+ 'value' => countSumTotalData('N','doubler','id','completed', true, ' AND `points` > 0')
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
'lang' => '{--MEDIA_DOUBLER_WPOINTS--}',
- 'value' => translateComma(countSumTotalData('N','doubler','id','completed', false, " AND `points` > 0"))
+ 'value' => countSumTotalData('N','doubler','id','completed', false, ' AND `points` > 0')
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
}
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row2', true, $data);
$data = array(
'lang' => '{--MEDIA_TRANSFER_IN_POINTS--}',
- 'value' => translateComma($points_in)
+ 'value' => $points_in
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
'lang' => '{--MEDIA_TRANSFER_OUT_POINTS--}',
- 'value' => translateComma($points_out)
+ 'value' => $points_out
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
} // END - if
// Load all orders
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
- // Is the ZIP code set? If not, set dashes
- if (empty($content['zip'])) $content['zip'] = '---';
-
// Prepare content for output
- // @TODO More usage of EL at this array
- $content = array(
- 'id' => $content['id'],
- 'cat' => getCategory($content['cat_id']),
- 'pay' => getPaymentTitlePrice($content['payment_id']),
- 'subject' => $content['subject'],
- 'url' => generateDerefererUrl($content['url']),
- 'timestamp' => generateDateTime($content['timestamp'], 2),
- 'target_send' => $content['target_send'],
- 'type' => translatePoolType($content['data_type']),
- 'zip' => $content['zip']
- );
+ $content['timestamp'] = generateDateTime($content['timestamp'], 2);
// Load template
$OUT .= loadTemplate('member_pool_row', true, $content);
// @TODO This can be easily moved out after the merge from EL branch to this is complete
$content = array(
'run_time' => $runTime,
- 'sql_time' => translateComma(getConfig('sql_time') * 1000),
+ 'sql_time' => (getConfig('sql_time') * 1000),
);
// Load the template
'userid' => $url_userid,
'type' => $type,
'data' => $urlId,
- 'url' => generateDerefererUrl($URL)
+ 'url' => $URL
);
// Load template
Neue URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
URL angemeldet: $content[url_registered]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Gesamteinblendungen: {%pipe,translateComma=$content[url_views_total]%}
------------------------------------------
Gebuchte URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
Email: {%user,email=$userid%}
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
URL angemeldet: $content[url_registered]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Zuletzt gesperrt: $content[url_last_locked]
------------------------------------------
Email: {%user,email=$userid%}
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
Email: {%user,email=$userid%}
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
URL angemeldet: $content[url_registered]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Gesamteinblendungen: {%pipe,translateComma=$content[url_views_total]%}
------------------------------------------
URL angemeldet: $content[url_registered]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Gesamteinblendungen: {%pipe,translateComma=$content[url_views_total]%}
------------------------------------------
URL angemeldet: $content[url_registered]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Gesamteinblendungen: {%pipe,translateComma=$content[url_views_total]%}
------------------------------------------
Email: {%user,email=$userid%}
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
Gebuchte URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
URL angemeldet: $content[url_registered]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Gesamteinblendungen: {%pipe,translateComma=$content[url_views_total]%}
------------------------------------------
Gebuchte URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Status: {%pipe,translateSurfbarUrlStatus=$content[url_status]%}
------------------------------------------
URL: $content[url]
------------------------------------------
Framekiller-Test:
-$content[frametester]
+{%pipe,generateFrametesterUrl=$content[url]%}
------------------------------------------
Mitglieder-Id: $content[url_userid]
------------------------------------------
<input type="hidden" name="sel[$content[id]]" value="1" />
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[title]
+ $content[type]
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[rate]
+ {%pipe,translateComma=$content[rate]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[min_points]
+ {%pipe,translateComma=$content[min_points]%}
</td>
</tr>
<input type="hidden" name="sel[$content[id]]" value="1" />
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- <input type="text" name="title[$content[id]]" class="admin_normal" value="$content[title]" size="20" maxlength="255" />
+ <input type="text" name="type[$content[id]]" class="admin_normal" value="$content[type]" size="20" maxlength="255" />
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- <input type="text" name="rate[$content[id]]" class="admin_normal" value="$content[rate]" size="5" maxlength="10" />
+ <input type="text" name="rate[$content[id]]" class="admin_normal" value="{%pipe,translateComma=$content[rate]%}" size="5" maxlength="10" />
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- <input type="text" name="min_points[$content[id]]" class="admin_normal" value="$content[min_points]" size="5" maxlength="10" />
+ <input type="text" name="min_points[$content[id]]" class="admin_normal" value="{%pipe,translateComma=$content[min_points]%}" size="5" maxlength="10" />
</td>
<td align="center" class="{%template,ColorSwitch%} bottom">
- $content[allow]
+ $content[allow_url]
</td>
</tr>
<input type="checkbox" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" class="admin_normal" value="1" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[from_account]
+ $content[from_account]
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[type]
+ $content[type]
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[rate]
+ {%pipe,translateComma=$content[rate]%}
</td>
<td class="{%template,ColorSwitch%} bottom">
- $content[min_points]
+ {%pipe,translateComma=$content[min_points]%}
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- <input type="checkbox" title="{--ID_SELECT--} $content[id]" class="admoin_normal" name="sel[$content[id]]" value="$content[act_val]" />
+ <input type="checkbox" title="{--ID_SELECT--} $content[ext_id]" class="admoin_normal" name="sel[$content[ext_id]]" value="$content[ext_active]" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[name]
+ $content[ext_name]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[css]
+ $content[ext_css]
</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">
- $content[active]
+ {%pipe,translateYesNo=$content[ext_active]%}
</td>
<td class="{%template,ColorSwitch%} bottom" align="center">
- v$content[ver]
+ v$content[ext_version]
</td>
</tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[link]</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[subject]</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[timestamp]</td>
- <td align="center" class="{%template,ColorSwitch%} bottom">$content[cat]</td>
+ <td align="center" class="{%template,ColorSwitch%} bottom">{%pipe,getCategory=$content[cat_id]%}</td>
</tr>
--- /dev/null
+<tr>
+ <td align="center" class="bottom right {%template,ColorSwitch%}">
+ <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
+ </td>
+ <td align="center" class="bottom right {%template,ColorSwitch%}">
+ $content[time] {--_SECONDS--}
+ </td>
+ <td align="center" class="bottom right {%template,ColorSwitch%}">
+ {%pipe,translateComma=$content[payment]%}
+ </td>
+ <td align="center" class="bottom right {%template,ColorSwitch%}">
+ {%pipe,translateComma=$content[price]%}
+ </td>
+ <td align="center" class="bottom {%template,ColorSwitch%}">
+ $content[mail_title]
+ </td>
+</tr>
<input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[name]
+ {%pipe,encodeEntities=$content[pay_name]%}
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[rate]
+ {%pipe,translateComma=$content[pay_rate]%}
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[min]
+ {%pipe,translateComma=$content[pay_min_count]%}
</td>
<td class="{%template,ColorSwitch%} bottom">
- $content[curr]
+ {%pipe,encodeEntities=$content[pay_currency]%}
</td>
</tr>
<input type="hidden" name="id[$content[id]]" class="admin_normal" value="1" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- <input type="text" name="name[$content[id]]" class="admin_normal" size="16" maxlength="255" value="$content[name]" />
+ <input type="text" name="name[$content[id]]" class="admin_normal" size="16" maxlength="255" value="$content[pay_name]" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- <input type="text" name="rate[$content[id]]" class="admin_normal" size="19" maxlength="255" value="$content[rate]" />
+ <input type="text" name="rate[$content[id]]" class="admin_normal" size="19" maxlength="255" value="$content[pay_rate]" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- <input type="text" name="min[$content[id]]" class="admin_normal" size="3" maxlength="20" value="$content[min]" />
+ <input type="text" name="min[$content[id]]" class="admin_normal" size="3" maxlength="20" value="$content[pay_min_count]" />
</td>
<td class="{%template,ColorSwitch%} bottom">
- <input type="text" name="curr[$content[id]]" class="admin_normal" size="5" maxlength="255" value="$content[curr]" />
+ <input type="text" name="curr[$content[id]]" class="admin_normal" size="5" maxlength="255" value="$content[pay_currency]" />
</td>
-</tr>
\ No newline at end of file
+</tr>
<input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[name]
+ {%pipe,encodeEntities=$content[pay_name]%}
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[rate]
+ {%pipe,translateComma=$content[pay_rate]%}
</td>
<td class="{%template,ColorSwitch%} bottom right">
- $content[min]
+ {%pipe,translateComma=$content[pay_min_count]%}
</td>
<td class="{%template,ColorSwitch%} bottom">
- $content[currency]
+ {%pipe,encodeEntities=$content[pay_currency]%}
</td>
</tr>
<a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>
</td>
<td align="center" class="{%template,ColorSwitch%} bottom" width="160">
- [<strong><a href="{%url=modules.php?module=admin&what=edit_sponsor&id=$content[id]&mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}">$content[points]</a></strong>]
+ [<strong><a href="{%url=modules.php?module=admin&what=edit_sponsor&id=$content[id]&mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}">{%pipe,translateComma=$content[points]%}</a></strong>]
</td>
</tr>
<tr>
<tr>
<td colspan="5" class="admin_footer" style="padding-top: 15px; padding-bottom: 15px;">
{--OPTIMIZE_DB_TOTAL_TABLES--}: <strong>$content[total_tabs]</strong><br />
- {--OPTIMIZE_DB_TOTAL_SIZE--}: <strong>$content[total_size] {--KBYTES--}</strong><br />
+ {--OPTIMIZE_DB_TOTAL_SIZE--}: <strong>{%pipe,translateComma=$content[total_size]%} {--KBYTES--}</strong><br />
{--OPTIMIZE_DB_TOTAL_OPTIMIZE--}: <strong>$content[total_rows]</strong><br />
- {--OPTIMIZE_DB_TOTAL_OPTI--}: <strong>$content[total_optimized] {--KBYTES--}</strong><br />
+ {--OPTIMIZE_DB_TOTAL_OPTI--}: <strong>{%pipe,translateComma=$content[total_optimized]%} {--KBYTES--}</strong><br />
{--OPTIMIZE_DB_TOTAL_GAIN_TABLES--}: <strong>$content[now_optimized]</strong><br />
- {--OPTIMIZE_DB_TOTAL_GAIN_SIZE--}: <strong>$content[now_saved] {--KBYTES--}</strong>
+ {--OPTIMIZE_DB_TOTAL_GAIN_SIZE--}: <strong>{%pipe,translateComma=$content[total_gain]%} {--KBYTES--}</strong>
</td>
</tr>
</table>
<td class="{%template,ColorSwitch%} bottom right">$content[b1]$content[tpl]$content[b2]</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">$content[b1]$content[rep]$content[b2]</td>
<td class="{%template,ColorSwitch%} bottom right" align="center">$content[b1]$content[opt]$content[b2]</td>
- <td class="{%template,ColorSwitch%} bottom right">$content[b1]$content[sum]$content[b2]</td>
- <td class="{%template,ColorSwitch%} bottom">$content[b1]$content[sav]$content[b2]</td>
+ <td class="{%template,ColorSwitch%} bottom right">$content[b1]{%pipe,translateComma=$content[sum]%}$content[b2]</td>
+ <td class="{%template,ColorSwitch%} bottom">$content[b1]{%pipe,translateComma=$content[sav]%}$content[b2]</td>
</tr>
-<tr>
- <td align="center" class="bottom right {%template,ColorSwitch%}">
- <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
- </td>
- <td align="center" class="bottom right {%template,ColorSwitch%}">
- $content[time] {--_SECONDS--}
- </td>
- <td align="center" class="bottom right {%template,ColorSwitch%}">
- {%pipe,translateComma=$content[pay]%}
- </td>
- <td align="center" class="bottom right {%template,ColorSwitch%}">
- $content[price]
- </td>
- <td align="center" class="bottom {%template,ColorSwitch%}">
- $content[title]
- </td>
-</tr>
+<!-- @DEPRECATED //-->
</tr>
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom">
- $content[percents]% <span class="tiny">({--ID_SELECT--} $content[id])</span>
+ {%pipe,translateComma=$content[percents]%}% <span class="tiny">({--ID_SELECT--} $content[id])</span>
<input type="hidden" name="id[$content[id]]" value="1" />
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%} bottom" align="right">{--REF_PERCENT--}: </td>
<td class="{%template,ColorSwitch%} bottom" align="left">
- <input type="text" name="perc[$content[id]]" class="admin_normal" value="$content[percents]" size="3" maxlength="5" />%
+ <input type="text" name="perc[$content[id]]" class="admin_normal" value="{%pipe,translateComma=$content[percents]%}" size="3" maxlength="5" />%
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%}" align="right">{--ADMIN_EDIT_ALTERNATE--}:</td>
<td class="{%template,ColorSwitch%}">
- <input type="text" name="alternate[$content[id]]" class="admin_normal" value="$content[alt]" size="30" maxlength="255" />
+ <input type="text" name="alternate[$content[id]]" class="admin_normal" value="$content[alternate]" size="30" maxlength="255" />
</td>
</tr>
<tr>
<td class="{%template,ColorSwitch%} bottom" align="right">{--ADMIN_SELECT_BANNER_ACTIVE--}:</td>
- <td class="{%template,ColorSwitch%} bottom">$content[vis]</td>
+ <td class="{%template,ColorSwitch%} bottom">$content[visible]</td>
</tr>
<img src="$content[url]" alt="$content[alt]" border="0" title="$content[alt]" />
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[alt]
+ $content[alternate]
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[cnt]
+ {%pipe,translateComma=$content[cnt]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[clx]
+ {%pipe,translateComma=$content[clicks]%}
</td>
<td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
- $content[vis]
+ {%pipe,translateYesNo=$content[visible]%}
</td>
</tr>
$content[rows]
</div>
<div class="admin_footer">
- Es wurden <span class="data">$content[file_count]</span> Sprachdateien
- analysiert. Dabei wurden <span class="data">$content[total_msgs]</span>
- Sprachelemente untersucht und <span class="data">$content[total_diff]</span>
+ Es wurden <span class="data">{%pipe,translateComma=$content[file_count]%}</span> Sprachdateien
+ analysiert. Dabei wurden <span class="data">{%pipe,translateComma=$content[total_msgs]%}</span>
+ Sprachelemente untersucht und <span class="data">{%pipe,translateComma=$content[total_diff]%}</span>
Unterschiede an allen gefundenen Dateien entdeckt.
</div>
</div>
<div class="{%template,ColorSwitch%} bottom2">
<div>
- Das Sprachpaket <span class="data">$content[file]</span> (Sprache:
- <span class="data">$content[lang]</span>) wurde nicht gefunden.
+ Das Sprachpaket
+ <span class="data">{%pipe,basename=$content[inc]%}</span>
+ (Sprache: <span class="data">$content[lang]</span>)
+ wurde nicht gefunden.
</div>
</div>
<div class="{%template,ColorSwitch%} bottom2">
<div>
- Das Sprachpaket <span class="data">$content[target]</span> hat <span class="data">$content[diff_count]</span> Unterschiede zu <span class="data">$content[source]</span>:
+ Das Sprachpaket <span class="data">{%pipe,basename=$content[inc]%}</span> hat <span class="data">{%pipe,getLanguageComparisonDifference,translateComma=$content[inc]%}</span> Unterschiede zu <span class="data">$content[source]</span>:
</div>
<div>
<strong>Nicht gefundene Sprachelemente:</strong>
<frameset rows="120,*" frameborder="no" framespacing="0" border="0">
<frame name="mailid_top" src="{%url=mailid_top.php?userid=$content[userid]&$content[type]=$content[data]%}" />
- <frame name="mailid_url" src="$content[url]" />
+ <frame name="mailid_url" src="{%pipe,generateDerefererUrl=$content[url]%}" />
</frameset>
<noframes>
Ihr Browser unterstützt keine frames!
<tr>
<td class="bottom media_left" align="right">$content[lang]:</td>
- <td class="bottom media_right">$content[value]</td>
+ <td class="bottom media_right">{%pipe,translateComma=$content[value]%}</td>
</tr>
<tr>
<td class="bottom media_left" align="right">$content[lang]:</td>
- <td class="bottom media_right">$content[value]</td>
+ <td class="bottom media_right">{%pipe,translateComma=$content[value]%}</td>
</tr>
<tr>
<td align="center" class="switch_mem$content[sw] top right">
{--EMAIL_PAYMENT--}:<br />
- <strong>{%pipe,translateComma=$content[pay]%}</strong>
+ <strong>{%pipe,translateComma=$content[payment_id]%}</strong>
</td>
<td align="center" class="switch_mem$content[sw] top right">
{--EMAIL_CATEGORY--}:<br />
- <strong>$content[cat]</strong>
+ <strong>{%pipe,getCategory=$content[cat_id]%}</strong>
</td>
<td align="center" class="switch_mem$content[sw] top">
{--EMAIL_URL--}:<br />
- <strong><a href="$content[url]" target="_blank">{--MEMBER_TEST_URL--}</a></strong>
+ <strong><a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank">{--MEMBER_TEST_URL--}</a></strong>
</td>
</tr>
<tr>
</td>
<td align="center" class="switch_mem$content[sw] top right">
{--EMAIL_TYPE--}:<br />
- <strong>$content[type]</strong>
+ <strong>{%pipe,translatePoolType=$content[data_type]%}</strong>
</td>
<td align="center" class="switch_mem$content[sw] top">
{--EMAIL_ZIP--}:<br />
- <strong>$content[zip]</strong>
+ <strong>{%pipe,fixEmptyContentToDashes=$content[zip]%}</strong>
</td>
</tr>
</span></li>
<li class="show_timings_column" style="margin-left: 2px"><span class="show_timings_column">
{--SHOW_TIMINGS_SQL_TIME--}
- <span class="show_timings_data">$content[sql_time] ms</span>
+ <span class="show_timings_data">{%pipe,translateComma=$content[sql_time]%} ms</span>
</span></li>
<li class="show_timings_column" style="margin-right: 2px"><span class="show_timings_column">
{--SHOW_TIMINGS_NUM_TEMPLATES--}