// Expression call-back for dynamic messages
function doExpressionMessage ($data) {
+ // Debug message
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'callback=' . $data['callback'] . ',extra_func=' . $data['extra_func'] . ',value=' . $data['value']);
+
// Message string replacement depends on if message is masked
if ((isMessageMasked($data['callback'])) && ((!empty($data['extra_func'])) || ($data['extra_func'] == '0'))) {
// Message should be masked
$replacer = "{DQUOTE} . getMaskedMessage('" . $data['callback'] . "', '" . $data['extra_func'] . "') . {DQUOTE}";
+ } elseif (!empty($data['value'])) {
+ // value is set, so it is masked message
+ $replacer = "{DQUOTE} . getMaskedMessage('" . $data['callback'] . "', '" . $data['value'] . "') . {DQUOTE}";
} else {
// Regular message
$replacer = "{DQUOTE} . getMessage('" . $data['callback'] . "') . {DQUOTE}";
// Redirects to an URL and if neccessarry extends it with own base URL
function redirectToUrl ($URL, $allowSpider = true) {
+ // Remove {%url=
+ if (substr($URL, 0, 6) == '{%url=') $URL = substr($URL, 6, -2);
+
// Compile out codes
eval('$URL = "' . compileRawCode(encodeUrl($URL)) . '";');
// Non-guest has login failures found, get both data and prepare it for template
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "accessLevel={$accessLevel}<br />");
$content = array(
- 'login_failures' => getSession('mailer_' . $accessLevel . '_failures'),
+ 'login_failures' => 'mailer_' . $accessLevel . '_failures',
'last_failure' => generateDateTime(getSession('mailer_' . $accessLevel . '_last_failure'), 2)
);
return;
}
-// Prepare content
-$content = array(
- 'restart' => bigintval(getRequestParameter('restart')),
- 'autostart' => getRequestParameter('autostart')
-);
-
// Load template
-loadTemplate('js_surfbar_stopped', false, $content);
+loadTemplate('js_surfbar_stopped');
// [EOF]
?>
'ADMIN_STATUS_CHANGED' => "Es wurden <span class=\"data\">%s</span> von <span class=\"data\">%s</span> Einträgen geändert.",
// Missing menu entries
- 'MENU_ACTION_404' => "Hauptmenü deaktiviert, da keine Scriptdatei auf dem Server gefunden wurde.",
- 'MENU_WHAT_404' => "Untermenü deaktiviert, da keine Scriptdatei auf dem Server gefunden wurde.",
+ 'MENU_ACTION_404' => "Hauptmenü %s deaktiviert, da keine Scriptdatei auf dem Server gefunden wurde.",
+ 'MENU_WHAT_404' => "Untermenü %s deaktiviert, da keine Scriptdatei auf dem Server gefunden wurde.",
// Cache messages
'CACHE_PROBLEMS_DETECTED' => "Probleme mit dem Cache-Subsystem erkannt.",
$OUT .= '[<a href="{%url=modules.php?module=admin&action=' . $menu . '%}">';
}
} else {
- $OUT .= '<em style="cursor:help" class="admin_note" title="{--MENU_ACTION_404--}">';
+ $OUT .= '<em style="cursor:help" class="admin_note" title="{%message,MENU_ACTION_404=' . $menu . '}">';
}
$OUT .= $title;
$OUT .= '[<a href="{%url=modules.php?module=admin&what=' . $what_sub . '%}">';
}
} else {
- $OUT .= '<em style="cursor:help" class="admin_note" title="{--MENU_WHAT_404--}">';
+ $OUT .= '<em style="cursor:help" class="admin_note" title="{%message,MENU_WHAT_404=' . $what_sub . '%}">';
}
$OUT .= $title_what;
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
if (isFormSent()) {
+ // Replace german decimal comma with computer decimal dot
+ if (isPostRequestParameterSet('refback_min_perc')) setPostRequestParameter('refback_min_perc', convertCommaToDot(postRequestParameter('refback_min_perc')));
+ if (isPostRequestParameterSet('refback_max_perc')) setPostRequestParameter('refback_max_perc', convertCommaToDot(postRequestParameter('refback_max_perc')));
+
// Save configuration
adminSaveSettingsFromPostData();
} else {
// Prepare content
- $content = array(
- 'refback_min_perc' => getConfig(('refback_min_perc')),
- 'refback_max_perc' => getConfig(('refback_max_perc'))
- );
+ $content = array();
- // Add more content
+ // Translate Y/N switches
switch (getConfig('refback_enabled')) {
case 'Y': // Refback enabled
$content['refback_enabled_y'] = ' checked="checked"';
$content['refback_enabled_y'] = '';
$content['refback_enabled_n'] = ' checked="checked"';
break;
- }
+ } // END - switch
// Load template
loadTemplate('admin_config_refback', false, $content);
// Was the form submitted?
if (isFormSent()) {
// Replace german decimal comma with computer decimal dot
- if (isPostRequestParameterSet(('surfbar_static_reward'))) setPostRequestParameter('surfbar_static_reward' , convertCommaToDot(postRequestParameter('surfbar_static_reward')));
- if (isPostRequestParameterSet(('surfbar_static_costs'))) setPostRequestParameter('surfbar_static_costs' , convertCommaToDot(postRequestParameter('surfbar_static_costs')));
- if (isPostRequestParameterSet(('surfbar_dynamic_percent'))) setPostRequestParameter('surfbar_dynamic_percent', convertCommaToDot(postRequestParameter('surfbar_dynamic_percent')));
+ if (isPostRequestParameterSet('surfbar_static_reward')) setPostRequestParameter('surfbar_static_reward' , convertCommaToDot(postRequestParameter('surfbar_static_reward')));
+ if (isPostRequestParameterSet('surfbar_static_costs')) setPostRequestParameter('surfbar_static_costs' , convertCommaToDot(postRequestParameter('surfbar_static_costs')));
+ if (isPostRequestParameterSet('surfbar_dynamic_percent')) setPostRequestParameter('surfbar_dynamic_percent', convertCommaToDot(postRequestParameter('surfbar_dynamic_percent')));
// Save settings
adminSaveSettingsFromPostData();
if (fetchUserData(getRequestParameter('userid'))) {
// Prepare content
$content = array(
- 'email' => generateEmailLink(getUserData('email'), 'user_data'),
- 'surname' => getUserData('surname'),
- 'family' => getUserData('family'),
- 'header' => getMaskedMessage('ADMIN_HEADER_DEL_ACCOUNT', bigintval(getRequestParameter('userid'))),
- 'text' => getMaskedMessage('ADMIN_TEXT_DEL_ACCOUNT', bigintval(getRequestParameter('userid'))),
- 'userid' => bigintval(getRequestParameter('userid'))
+ 'email' => generateEmailLink(getUserData('email'), 'user_data'),
+ 'userid' => bigintval(getRequestParameter('userid'))
);
// Display form
// Does the account exists?
$result_user = SQL_QUERY_ESC("SELECT
- `gender`, `surname`, `family`, `street_nr`, `zip`, `city`, `country`, `email`, `birth_day`, `birth_month`, `birth_year`, `max_mails`, `receive_mails`, `refid`, `status`, `REMOTE_ADDR`, `last_online`, `last_module`, `ref_clicks`, `total_logins`, `used_points`, `emails_sent`, `joined`, `last_update`, `last_profile_sent`, `notified`, `ref_payout`, `emails_received`, `mails_confirmed`".$MORE."
+ `userid`, `gender`, `surname`, `family`, `street_nr`, `zip`, `city`, `country`, `email`, `birth_day`, `birth_month`, `birth_year`, `max_mails`, `receive_mails`, `refid`, `status`, `REMOTE_ADDR`, `last_online`, `last_module`, `ref_clicks`, `total_logins`, `used_points`, `emails_sent`, `joined`, `last_update`, `last_profile_sent`, `notified`, `ref_payout`, `emails_received`, `mails_confirmed`".$MORE."
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
} // END - if
// Add userid
-$content = array(
- 'userid' => getMemberId()
-);
+$content = array();
// Init variable to prevent notices
$url = '';
// Prepare data for template
$content = array(
- 'userid' => getMemberId(),
'data' => bigintval($DATA),
'type' => $type,
'subject' => $subject,
$OUT .= '<a name="menu" class="menu_blur" href="{%url=modules.php?module=' . getModule() . '&what=' . $content['sub_what'] . '%}" target="_self">';
} else {
// Not found! - open
- $OUT .= '<em style="cursor:help" class="admin_note" title="{--MENU_WHAT_404--}">';
+ $OUT .= '<em style="cursor:help" class="admin_note" title="{%message,MENU_WHAT_404=' . $content['sub_what'] . '%}">';
}
// Menu title
'percents' => $per,
'level' => bigintval($GLOBALS['ref_level']),
'points' => $ref_points,
- 'refid' => getUserData('refid')
);
// Load email template
// Prepare output
$content = array(
'selection_box' => $OUT,
- 'module' => getModule(),
- 'what' => getWhat()
);
// Load template and return it
Hier sehen Sie genau, in welcher Ebene Sie ihn geworben haben:
-----------------
-Referal-Ebene ($content[percents]%): $content[level]
-{?POINTS?}: $content[points]
+Referal-Ebene (translateComma=$content[percents]%}%): $content[level]
+{?POINTS?}: {%pipe,translateComma=$content[points]%}
ID des Mitgliedes: {%user,refid,bigintval=$userid%}
-----------------
{--ADMIN_CONFIG_REFBACK_MIN_PERCENTS--}
</td>
<td>
- <input type="text" name="refback_min_perc" size="3" maxlength="3" value="$content[refback_min_perc]" />%
+ <input type="text" name="refback_min_perc" size="3" maxlength="3" value="{%config,translateComma=refback_min_perc%}" />%
</td>
</tr>
<tr>
{--ADMIN_CONFIG_REFBACK_MAX_PERCENTS--}
</td>
<td class="bottom">
- <input type="text" name="refback_max_perc" size="3" maxlength="3" value="$content[refback_max_perc]" />%
+ <input type="text" name="refback_max_perc" size="3" maxlength="3" value="{%config,translateComma=refback_max_perc%}" />%
</td>
</tr>
<tr>
<div class="admin_table dashed">
<div align="center" class="admin_title bottom">
- <strong>$content[header]</strong>
+ <strong>{%message,ADMIN_HEADER_DEL_ACCOUNT=$content[userid]%}</strong>
</div>
<div align="center">
- $content[text]
+ {%message,ADMIN_TEXT_DEL_ACCOUNT=$content[userid]%}
</div>
<div align="center">
- [ <a href="$content[email]">$content[surname] $content[family]</a> ]
+ [ <a href="$content[email]">{%user,surname=$content[userid]%} {%user,family=$content[userid]%}</a> ]
</div>
<div class="bottom" align="center">
var interval = null;
-var countDown = "$content[restart]";
+var countDown = "{%pipe,getRequestParameter,bigintval=restart%}";
var timer = document.getElementById("surfbar_counter");
var buttonDiv = document.getElementById("surfbar_button");
function counter () {
if (countDown == 0) {
- if ($content[autostart] == true) {
+ if ({%pipe,getRequestParameter=autostart%} == true) {
restart();
} else {
showButton();
<div class="login_failure_header">
Warnung!
</div>
- Letzten <strong>$content[login_failures]</strong> Loginversuche waren
+ Letzten <strong>{%pipe,getSession=$content[login_failures]%}</strong> Loginversuche waren
fehlgeschlagen, der letzte war am <strong>$content[last_failure]</strong>
</div>
</div>
<table border="0" cellspacing="0" cellpadding="0" class="member_table dashed">
<tr>
<td class="header_column bottom" colspan="2">
- <strong>{--YOUR_LOGIN--}: $content[userid]</strong>
+ <strong>{--YOUR_LOGIN--}: {%pipe,getMemberId%}</strong>
</td>
</tr>
<tr>
</tr>
<tr>
<td align="right">{--YOUR_LOGIN--}:</td>
- <td><strong>$content[userid]</strong></td>
+ <td><strong>{%pipe,getMemberId%}</strong></td>
</tr>
<tr>
<td align="right">{--GENDER--}:</td>
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- [<a href="{%url=mailid.php?userid=$content[userid]&$content[type]=$content[data]%}" target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
+ [<a href="{%url=mailid.php?userid={%pipe,getMemberId%}&$content[type]=$content[data]%}" target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
$content[sender]
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right">
- [<a href="{%url=mailid.php?userid=$content[userid]&$content[type]=$content[data]%}"
+ [<a href="{%url=mailid.php?userid={%pipe,getMemberId%}&$content[type]=$content[data]%}"
target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
<div align="center">
<form accept-charset="utf-8" action="{?URL?}/modules.php" method="get">
-<input type="hidden" name="module" value="$content[module]" />
-<input type="hidden" name="what" value="$content[what]" />
+<input type="hidden" name="module" value="{%pipe,getModule%}" />
+<input type="hidden" name="what" value="{%pipe,getWhat%}" />
<div class="admin_table dashed">
<div class="admin_title bottom">
<strong>{--ADMIN_NETWORK_SELECT_TITLE--}</strong>
<div align="center">
<form accept-charset="utf-8" action="{?URL?}/modules.php" method="get">
-<input type="hidden" name="module" value="$content[module]" />
-<input type="hidden" name="what" value="$content[what]" />
+<input type="hidden" name="module" value="{%pipe,getModule%}" />
+<input type="hidden" name="what" value="{%pipe,getWhat%}" />
<input type="hidden" name="network" value="{%network,getNetworkDataById,network_id=%network%%}" />
<div class="admin_table dashed">
<div class="admin_title bottom">
<div align="center">
<form accept-charset="utf-8" action="{?URL?}/modules.php" method="get">
-<input type="hidden" name="module" value="$content[module]" />
-<input type="hidden" name="what" value="$content[what]" />
+<input type="hidden" name="module" value="{%pipe,getModule%}" />
+<input type="hidden" name="what" value="{%pipe,getWhat%}" />
<div class="admin_table dashed">
<div class="admin_title bottom">
<div>