./inc/extensions-functions.php:143: // @TODO Do we still need this? setExtensionUpdateNotes('');
./inc/extensions-functions.php:422:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
./inc/extensions-functions.php:538: // @TODO Extension is loaded, what next?
-./inc/functions.php:1078:// @TODO $simple/$constants are deprecated
-./inc/functions.php:1105: // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
-./inc/functions.php:2382: // @TODO This can be easily moved out after the merge from EL branch to this is complete
-./inc/functions.php:2531: // @TODO Add a little more infos here
-./inc/functions.php:2615: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
-./inc/functions.php:2638: // @TODO Rewrite this old lost code to a template
+./inc/functions.php:1072:// @TODO $simple/$constants are deprecated
+./inc/functions.php:1099: // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
+./inc/functions.php:2379: // @TODO This can be easily moved out after the merge from EL branch to this is complete
+./inc/functions.php:2528: // @TODO Add a little more infos here
+./inc/functions.php:2612: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
+./inc/functions.php:2635: // @TODO Rewrite this old lost code to a template
./inc/functions.php:266: // @TODO Remove this sanity-check if all is fine
./inc/functions.php:269: // @TODO Try to rewrite all $DATA to $content
-./inc/functions.php:2728: // @TODO Are these convertions still required?
-./inc/functions.php:2746:// @TODO Rewrite this function to use readFromFile() and writeToFile()
-./inc/functions.php:3622:// @TODO Lame description for this function
-./inc/functions.php:3641: // @TODO Move this in a filter
-./inc/functions.php:3765: // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:482: // @TODO Do only use $content, not $DATA or raw variables
-./inc/functions.php:555: // @TODO Extension 'msg' does not exist
-./inc/functions.php:618:// @TODO Rewrite this to an extension 'smtp'
+./inc/functions.php:2725: // @TODO Are these convertions still required?
+./inc/functions.php:2743:// @TODO Rewrite this function to use readFromFile() and writeToFile()
+./inc/functions.php:3619:// @TODO Lame description for this function
+./inc/functions.php:3638: // @TODO Move this in a filter
+./inc/functions.php:3762: // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:476: // @TODO Do only use $content, not $DATA or raw variables
+./inc/functions.php:549: // @TODO Extension 'msg' does not exist
+./inc/functions.php:612:// @TODO Rewrite this to an extension 'smtp'
./inc/install-functions.php:63: // @TODO DEACTIVATED: changeDataInFile(getConfig('CACHE_PATH') . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
./inc/language/de.php:1143:// @TODO Rewrite these two constants
./inc/language/de.php:1158:// @TODO Rewrite these three constants
./inc/modules/admin/what-config_admins.php:146: // @TODO Rewrite this to filter 'run_sqls'
./inc/modules/admin/what-config_mods.php:57: // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
./inc/modules/admin/what-config_points.php:113: // @TODO Rewrite this to a filter
-./inc/modules/admin/what-config_rallye_prices.php:209: // @TODO Rewritings: level->price_level, infos->info in template
-./inc/modules/admin/what-config_rallye_prices.php:226: // @TODO Rewrite these two constants
+./inc/modules/admin/what-config_rallye_prices.php:212: // @TODO Rewritings: level->price_level, infos->info in template
+./inc/modules/admin/what-config_rallye_prices.php:229: // @TODO Rewrite these two constants
./inc/modules/admin/what-config_register.php:78: // @TODO Move this HTML code into a template
./inc/modules/admin/what-del_email.php:60: // @TODO Unused: $price = getPaymentPoints($content['payment_id'], 'price');
./inc/modules/admin/what-del_email.php:61: // @TODO Unused: cat_id, payment_id
./inc/modules/admin/what-edit_user.php:20: * @TODO Add support for ext-country *
./inc/modules/admin/what-email_stats.php:48:// @TODO Unused at the moment
-./inc/modules/admin/what-extensions.php:362: // @TODO Rewrite this to a filter
+./inc/modules/admin/what-extensions.php:282: // @TODO Rewrite in template: id->ext_id,name->ext_name,active->ext_active,ver->ext_ver
+./inc/modules/admin/what-extensions.php:363: // @TODO Rewrite this to a filter
./inc/modules/admin/what-guest_add.php:137: // @TODO This can be somehow rewritten to a function
./inc/modules/admin/what-guest_add.php:69: // @TODO Cant this be rewritten?
./inc/modules/admin/what-guest_add.php:85: // @TODO This can be somehow rewritten to a function
./inc/modules/admin/what-holiday_list.php:48:// @TODO Unused at the moment
./inc/modules/admin/what-list_autopurge.php:49:// @TODO Rewrite those lines to filter
-./inc/modules/admin/what-list_bonus.php:136: // @TODO Can't this be moved into our expression language?
+./inc/modules/admin/what-list_bonus.php:135: // @TODO Can't this be moved into our expression language?
./inc/modules/admin/what-list_cats.php:56: // @TODO No longer needed? define('__CATS_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
-./inc/modules/admin/what-list_cats.php:72: // @TODO Rewrite this to countSum.....() function
+./inc/modules/admin/what-list_cats.php:71: // @TODO Rewrite this to countSum.....() function
./inc/modules/admin/what-list_links.php:57: // @TODO Try to rewrite this to a filter
./inc/modules/admin/what-list_links.php:89: // @TODO Find a way to rewrite this. See some lines above for different queries
./inc/modules/admin/what-list_links.php:98: // @TODO Rewrite this to includes/filter
./inc/modules/admin/what-list_unconfirmed.php:100: // @TODO Rewrite this to $content = SQL_FETCHARRAY(), look some lines above for two differrent queries
./inc/modules/admin/what-list_unconfirmed.php:77: // @TODO This constant might be unused? define('__LIST_UNCON_TITLE', getMessage('LIST_UNCONFIRMED_BONUS_LINKS'));
./inc/modules/admin/what-list_unconfirmed.php:88: // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
-./inc/modules/admin/what-list_user.php:157: // @TODO Rewrite these to filters
-./inc/modules/admin/what-list_user.php:275: // @TODO Rewrite this into a filter
-./inc/modules/admin/what-list_user.php:322: // @TODO Rewrite this into a filter
+./inc/modules/admin/what-list_user.php:156: // @TODO Rewrite these to filters
+./inc/modules/admin/what-list_user.php:268: // @TODO Rewrite this into a filter
+./inc/modules/admin/what-list_user.php:314: // @TODO Rewrite this into a filter
./inc/modules/admin/what-list_user.php:59:// @TODO Rewrite these if-blocks in a filter
./inc/modules/admin/what-logs.php:69: // @TODO Fix content-type here
./inc/modules/admin/what-logs.php:72: // @TODO Fix content-type here
./inc/modules/admin/what-payments.php:152: // @TODO Rewritings: title->mail_title, pay->payment in template
./inc/modules/admin/what-refbanner.php:145: // @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template
./inc/modules/admin/what-unlock_emails.php:89: // @TODO Rewrite these if-blocks to a filter
-./inc/modules/admin/what-unlock_sponsor.php:204: // @TODO Rewritings: remote->remote_addr, created->sponsor_created in template
./inc/modules/admin/what-usage.php:88: // @TODO This code is double, see loadTemplate() and loadEmailTemplate() in functions.php
./inc/modules/admin/what-usr_online.php:51: // @TODO Add a filter for sponsor
./inc/modules/guest/what-beg.php:60:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout')));
./inc/modules/member/what-beg.php:65:// @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout')));
./inc/modules/member/what-bonus.php:57: // @TODO Rewrite this to a filter
./inc/modules/member/what-categories.php:129: // @TODO Rewrite this to use $OUT .= ...
-./inc/modules/member/what-doubler.php:56:// @TODO The '*100' is in the way to get moved into the template
-./inc/modules/member/what-order.php:458: // @TODO Rewrite this to a filter
+./inc/modules/member/what-order.php:457: // @TODO Rewrite this to a filter
./inc/modules/member/what-order.php:65:// @TODO Rewrite this to a filter
./inc/modules/member/what-payout.php:222: // @TODO Rewrite this to a filter
./inc/modules/member/what-points.php:55:// @TODO Should we rewrite this to a filter?
./inc/modules/member/what-rallyes.php:91: // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&what=impressum&admin=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
-./inc/modules/member/what-refback.php:130: // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']);
+./inc/modules/member/what-refback.php:128: // @TODO UNUSED: $refRow['status'] = translateUserStatus($refRow['status']);
./inc/modules/member/what-reflinks.php:54:// @TODO Move this into a filter
./inc/modules/member/what-transfer.php:132: // @TODO Rewrite this to a filter
./inc/modules/member/what-transfer.php:222: // @TODO Try to rewrite his to $content = SQL_FETCHARRAY(), see some lines above for two different queries
// Is the data valid?
if (!isUserDataValid()) {
// Output message that the userid is not okay
- loadTemplate('admin_settings_saved', false, getMessage('DOUBLER_USERID_INVALID'));
+ loadTemplate('admin_settings_saved', false, '{--DOUBLER_USERID_INVALID--}');
} // END - if
// Remove any dots and unwanted chars from the points
$points = countSumTotalData(getUserData('userid'), 'user_points', 'points') - countSumTotalData(getUserData('userid'), 'user_data', 'used_points');
// So let's continue with probing his points amount
- if (($points - getConfig('doubler_left') - postRequestParameter('points') * getConfig('doubler_charge')) >= 0) {
+ if (($points - getConfig('doubler_left') - postRequestParameter('points') * getConfig('doubler_charge') / 100) >= 0) {
// Enough points are left so let's continue with the doubling process
// Create doubling "account" width *DOUBLED* points
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`, `refid`, `points`, `remote_ip`, `timemark`, `completed`, `is_ref`) VALUES ('%s','%s','%s','".detectRemoteAddr()."', UNIX_TIMESTAMP(), 'N','N')",
subtractPoints('doubler', getUserData('userid'), postRequestParameter('points'));
// Add points to "total payed" including charge
- $points = postRequestParameter('points') - postRequestParameter('points') * getConfig('doubler_charge');
+ $points = postRequestParameter('points') - postRequestParameter('points') * getConfig('doubler_charge') / 100;
updateConfiguration('doubler_points', $points, '+');
incrementConfigEntry('doubler_points', $points);
SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_doubler` (`userid`, `refid`, `points`, `remote_ip`, `timemark`, `completed`, `is_ref`) VALUES ('%s',0,'%s','".detectRemoteAddr()."',UNIX_TIMESTAMP(),'N','Y')",
array(
determineReferalId(),
- bigintval(postRequestParameter('points') * 2 * getConfig('doubler_ref'))
+ bigintval(postRequestParameter('points') * 2 * getConfig('doubler_ref') / 100)
), __FILE__, __LINE__);
// And that's why we don't want to you more than one referal level of doubler-points. ^^^
$content['refid'] = determineReferalId();
}
-// Percent values etc.
-$content['charge'] = translateComma(getConfig('doubler_charge') * 100);
-$content['ref'] = translateComma(getConfig('doubler_ref') * 100);
-$content['total'] = translateComma(getConfig('doubler_points'));
-$content['min'] = translateComma(getConfig('doubler_min'));
-$content['max'] = translateComma(getConfig('doubler_max'));
-
// Text "Enter login"
if (isExtensionActive('nickname')) {
// Choose login/nickname
// Generate table with already payed out doubles
$content['payout_history'] = generateDoublerTable(0, 'Y', 'N', 'DESC');
-// Generate timemark
-$content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));
-
-// Points left to doubler
-$content['left'] = translateComma(DOUBLER_GET_TOTAL_POINTS_LEFT());
-
// Output neccessary form for this
loadTemplate('doubler_index', false, $content);
$OUT = loadTemplate('admin_ext_sql_table', true, $content);
} elseif ((isExtensionInstalledAndNewer('sql_patches', '0.0.7')) && (getConfig('verbose_sql') == 'Y')) {
// No addional SQL commands to run
- $OUT = loadTemplate('admin_settings_saved', true, getMessage('ADMIN_NO_ADDITIONAL_SQLS'));
+ $OUT = loadTemplate('admin_settings_saved', true, '{--ADMIN_NO_ADDITIONAL_SQLS--}');
} // END - if
// Return output
} // END - if
// Version number
-setThisExtensionVersion('0.1.6');
+setThisExtensionVersion('0.1.7');
// Version history array (add more with , '0.1.0' and so on)
-setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6'));
+setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7'));
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running (modules.php?module=admin is called)
// --> This also means who fast the doubled points will be payed out!
addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_send_mode ENUM('DIRECT','RESET') NOT NULL DEFAULT 'DIRECT'");
// Timeout for entries to be purged (default: one week)
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_timeout BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('ONE_DAY')*7)."");
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_timeout` BIGINT(20) UNSIGNED NOT NULL DEFAULT ".(getConfig('ONE_DAY')*7)."");
// Number of newest entries to display
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_display_new TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_display_new` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
// Number of entries which will be payed out soon
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_display_pay TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_display_pay` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
// Number of entries which are already payed out
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_display_old TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_display_old` TINYINT(3) UNSIGNED NOT NULL DEFAULT 10");
// Points used by every member
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD doubler_points FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_data` ADD `doubler_points` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000");
// Counter for usage of the doubler
- addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD doubler_counter BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
+ addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_config` ADD `doubler_counter` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
//
// --- MENU SYSTEMS ---
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
break;
- }
+
+ case '0.1.7': // SQL queries for v0.1.7
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_config` SET `doubler_charge`=`doubler_charge`*100");
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_config` SET `doubler_ref`=`doubler_ref`*100");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Fehlerhinweis bei deaktivierter Erweiterung verbessert.");
+ break;
+ } // END - switch
break;
case 'modify': // When the extension got modified
default: // Unknown extension mode
logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
break;
-}
+} // END - switch
// [EOF]
?>
// Make sure all template names are lowercase!
$template = strtolower($template);
- // Default 'nickname' if extension is not installed
- $nick = '---';
-
- // Neutral email address is default
- $email = getConfig('WEBMASTER');
-
// Is content an array?
if (is_array($content)) {
// Add expiration to array
);
// Mail inserted into bonus pool
- if ($output) loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_SEND'));
+ if ($output) loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_SEND--}');
} elseif ($output) {
// More entered than can be reached!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_MORE_SELECTED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_MORE_SELECTED--}');
} else {
// Debug log
logDebugMessage(__FUNCTION__, __LINE__, "cat={$data['cat']},receiver={$data['receiver']},data=".base64_encode(serialize($data))." More selected, than available!");
loadTemplate('admin_del_admins', false, $OUT);
} else {
// Cannot delete last account!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ADMINS_CANNOT_DELETE_LAST'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_CANNOT_DELETE_LAST--}');
}
}
return loadTemplate($mode . '_doubler_list', true, $OUT);
}
-//
-function DOUBLER_GET_TOTAL_POINTS_LEFT() {
+// Get total points left in doubler pot
+function getDoublerTotalPointsLeft() {
// Initialize variables
$points = '0';
// Return value
return $points;
}
-//
+
+// [EOF]
?>
SQL_FREERESULT($result);
} else {
// No categories setted up so far...
- $OUT .= loadTemplate('admin_settings_saved', true, getMessage('NO_CATEGORIES_VISIBLE'));
+ $OUT .= loadTemplate('admin_settings_saved', true, '{--NO_CATEGORIES_VISIBLE--}');
}
if ($return === true) {
// Did this work?
if ($userid == '0') {
// Something bad happened!
- loadTemplate('admin_settings_saved', false, getMessage('USER_NOT_REGISTERED'));
+ loadTemplate('admin_settings_saved', false, '{--USER_NOT_REGISTERED--}');
// Stop here
return;
$OUT .= loadTemplate('sponsor_action', true, $content);
} else {
// No sub menus active
- $OUT .= loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_SUB_MENUS_ACTIVE'));
+ $OUT .= loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_SUB_MENUS_ACTIVE--}');
}
// Free memory
}
} else {
// No main menus active
- $OUT .= loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_MAIN_MENUS_ACTIVE'));
+ $OUT .= loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MAIN_MENUS_ACTIVE--}');
}
// Free memory
switch (getWhat()) {
case 'account': // Change account data
if ($EMAIL === true) {
- $message = getMessage('SPONSOR_ACCOUNT_EMAIL_CHANGED');
- $templ = 'admin_sponsor_change_email';
- $subj = getMessage('ADMIN_SPONSOR_ACC_EMAIL_SUBJ');
+ $message = getMessage('SPONSOR_ACCOUNT_EMAIL_CHANGED');
+ $templ = 'admin_sponsor_change_email';
+ $subj = getMessage('ADMIN_SPONSOR_ACC_EMAIL_SUBJ');
} else {
- $message = getMessage('SPONSOR_ACCOUNT_DATA_SAVED');
- $templ = 'admin_sponsor_change_data';
- $subj = getMessage('ADMIN_SPONSOR_ACC_DATA_SUBJ');
+ $message = getMessage('SPONSOR_ACCOUNT_DATA_SAVED');
+ $templ = 'admin_sponsor_change_data';
+ $subj = getMessage('ADMIN_SPONSOR_ACC_DATA_SUBJ');
}
break;
case 'settings': // Change settings
- // Translate some data
- $content['receive'] = translateYesNo($content['receive_warnings']);
- $content['interval'] = createFancyTime($content['warning_interval']);
-
// Set message template and subject for admin
- $message = getMessage('SPONSOR_SETTINGS_SAVED');
- $templ = 'admin_sponsor_settings';
- $subj = getMessage('ADMIN_SPONSOR_SETTINGS_SUBJ');
+ $message = getMessage('SPONSOR_SETTINGS_SAVED');
+ $templ = 'admin_sponsor_settings';
+ $subj = getMessage('ADMIN_SPONSOR_SETTINGS_SUBJ');
break;
default: // Unknown sponsor what value!
logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown sponsor module (what) %s detected.", getWhat()));
$message = getMaskedMessage('SPONSOR_UNKNOWN_WHAT', getWhat());
- $templ = ''; $subj = '';
+ $templ = '';
+ $subj = '';
break;
} // END - switch
// Add all data to content
$content['new_data'] = $postData;
- // Translate some data
- if (isset($content['gender'])) $content['gender'] = translateGender($content['gender']);
- if (isset($content['new_data']['gender'])) $content['new_data']['gender'] = translateGender($content['new_data']['gender']);
- if (isset($content['receive_warnings'])) $content['new_data']['receive'] = translateYesNo($content['new_data']['receive_warnings']);
- if (isset($content['warning_interval'])) $content['new_data']['interval'] = createFancyTime($content['new_data']['warning_interval']);
-
// Send email to admins
sendAdminNotification($subj, $templ, $content);
sendEmail($userid, getMessage('GUEST_NEW_PASSWORD'), $message);
// Output note to user
- loadTemplate('admin_settings_saved', false, getMessage('GUEST_NEW_PASSWORD_SEND'));
+ loadTemplate('admin_settings_saved', false, '{--GUEST_NEW_PASSWORD_SEND--}');
} else {
// Account is locked or unconfirmed
$errorCode = generateErrorCodeFromUserStatus($status);
if (isExtensionActive('jackpot')) $jackpotPoints = getJackpotPoints();
// Get total points of the doubler itself
-$DOUBLER_POINTS = DOUBLER_GET_TOTAL_POINTS_LEFT();
+$DOUBLER_POINTS = getDoublerTotalPointsLeft();
if ($DOUBLER_POINTS == '0') {
// Exit here to prevent some SQL errors (SQL_QUERY_ESC doen't insert zeros! We need to fix this...)
return;
} // END - if
// Output message in seperate template
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ACCOUNT_NOT_REGISTERED_YET'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ACCOUNT_NOT_REGISTERED_YET--}');
// Load register template
loadTemplate('admin_reg_form', false, $content);
loadTemplate('admin_reset_password_form', false, $content);
} else {
// Cannot validate the login data and hash
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED--}');
}
} elseif ((isPostRequestParameterSet('reset_pass')) && (isPostRequestParameterSet('hash')) && (isPostRequestParameterSet('login')) && (isPostRequestParameterSet('pass1')) && (postRequestParameter('pass1') == postRequestParameter('pass2'))) {
// Okay, we shall the admin password here. So first revalidate the hash
loadTemplate('admin_reset_pass_done', false, doResetAdminPassword(postRequestParameter('login'), postRequestParameter('pass1')));
} else {
// Validation failed
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2--}');
}
} else {
// Output reset password form
if (isGetRequestParameterSet('register')) {
// Registration of first admin is done
- if (getRequestParameter('register') == 'done') loadTemplate('admin_settings_saved', false, getMessage('ADMIN_REGISTER_DONE'));
+ if (getRequestParameter('register') == 'done') loadTemplate('admin_settings_saved', false, '{--ADMIN_REGISTER_DONE--}');
} // END - if
// Check if the admin has submitted data or not
case 'pass': // Wrong password
setPostRequestParameter('ok', $ret);
- loadTemplate('admin_settings_saved', false, getMessage('WRONG_PASS'));
+ loadTemplate('admin_settings_saved', false, '{--WRONG_PASS--}');
destroyAdminSession();
break;
rebuildCache('config', 'config');
// Settings saved, so display message?
- if ($displayMessage === true) loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ if ($displayMessage === true) loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
// Return affected rows
return $affected;
loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_STATUS_CHANGED'), $cnt, count($IDs)));
} else {
// Nothing selected!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NOTHING_SELECTED_CHANGE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NOTHING_SELECTED_CHANGE--}');
}
}
// Was this fine?
if (SQL_AFFECTEDROWS() == count($IDs)) {
// All deleted
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ALL_ENTRIES_REMOVED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_ENTRIES_REMOVED--}');
} else {
// Some are still there :(
loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_DELETED'), SQL_AFFECTEDROWS(), count($IDs)));
// Was this fine?
if ($affected == count($IDs)) {
// All deleted
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ALL_ENTRIES_EDITED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_ENTRIES_EDITED--}');
} else {
// Some are still there :(
loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_EDITED'), $affected, count($IDs)));
// Output message for other status than ask/agreed
if (($return != 'ask') && ($return != 'agreed')) {
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_EXPERT_SETTINGS_STATUS_' . strtoupper($return)));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_EXPERT_SETTINGS_STATUS_' . strtoupper($return) . '--}');
} // END - if
// Return status
SQL_FREERESULT($result_main);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ALL_POINTS_ADDED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_POINTS_ADDED--}');
} else {
// Display form add points
loadTemplate('admin_add_points_all');
$message = loadEmailTemplate('add-points', $content, bigintval(getRequestParameter('userid')));
sendEmail(bigintval(getRequestParameter('userid')), getMessage('ADMIN_ADD_SUBJ'), $message);
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_POINTS_ADDED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_ADDED--}');
} else {
// Prepare content
$content['user'] = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . $content['surname'] . ' ' . $content['family'] . '</a>';
redirectToUrl('modules.php?module=admin&what=config_rallye_prices&rallye='.$id);
} else {
// Problem detected...
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_PROBLEM_CREATE'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_PROBLEM_CREATE--}');
}
} else {
// Free memory
SQL_FREERESULT($result);
// Overlapping detected
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_OVERLAP_TIMES'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_OVERLAP_TIMES--}');
}
}
// Then add this URL
if (SURFBAR_ADMIN_ADD_URL($postData['url'], $postData['limit'], $postData['reload'])) {
// URL was added
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_URL_ADDED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_URL_ADDED--}');
} else {
// Not added
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_URL_NOT_ADDED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_URL_NOT_ADDED--}');
}
} // END - if
), __FILE__, __LINE__
);
}
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
} else {
// Is demo login!
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_NOT_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
}
// [EOF]
}
// Load template
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
break;
case 'del': // Delete menu
} // END - foreach
// Load template
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
break;
default: // Unexpected action
loadTemplate('admin_amenu_edit', false, $content);
} else {
// Menu entries are missing... (???)
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MENUS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
}
}
$FORM = false;
// Admin login saved
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ADMINS_ADD_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ADD_DONE--}');
// Run filter chain
runFilterChain('post_admin_added', postRequestArray());
}
// Mail / message dropped
- loadTemplate('admin_settings_saved', false, getMessage('ADMINS_ADMIN_CONTACTED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMINS_ADMIN_CONTACTED--}');
} elseif (isGetRequestParameterSet('admin')) {
// Load contact form template
$content['admin'] = getRequestParameter('admin');
loadTemplate('admin_admins_contct_form', false, $content);
} else {
// Please select an admin!
- loadTemplate('admin_settings_saved', false, getMessage('ADMINS_SELECT_ADMIN'));
+ loadTemplate('admin_settings_saved', false, '{--ADMINS_SELECT_ADMIN--}');
}
// [EOF]
loadTemplate('admin_admins_mails_edit', false, $rows);
} else {
// Nothing selected
- loadTemplate('admin_settings_saved', false, getMessage('ADMINS_NO_MAIL_CHECKED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMINS_NO_MAIL_CHECKED--}');
}
} else {
// Load all assigned mails
loadTemplate('admin_admins_mails_list', false, $OUT);
} else {
// No entries found
- loadTemplate('admin_settings_saved', false, getMessage('ADMINS_MAILS_NO_ENTRIES'));
+ loadTemplate('admin_settings_saved', false, '{--ADMINS_MAILS_NO_ENTRIES--}');
}
}
// Activated?
if (getConfig('STATS_ENABLED') == 'Y') {
- // Calculate total hits
- $totalHits = (getStatsEntry('db_hits') + getStatsEntry('cache_hits'));
-
// Prepare data for the template
- $content['db_hits'] = translateComma(getStatsEntry('db_hits'));
- $content['cache_hits'] = translateComma(getStatsEntry('cache_hits'));
- $content['total_hits'] = translateComma($totalHits);
- $content['cache_perc'] = translateComma((getStatsEntry('cache_hits') / $totalHits * 100));
+ $content['db_hits'] = getStatsEntry('db_hits');
+ $content['cache_hits'] = getStatsEntry('cache_hits');
+ $content['total_hits'] = (getStatsEntry('db_hits') + getStatsEntry('cache_hits'));
+ $content['cache_perc'] = (getStatsEntry('cache_hits') / $content['total_hits'] * 100);
// Load template
loadTemplate('admin_cache_stats', false, $content);
} else {
// Deactivated, which is good for performance
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CACHE_DB_STATS_DEACTIVATED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CACHE_DB_STATS_DEACTIVATED--}');
}
// [EOF]
loadTemplate('admin_list_chk_reg', false, $OUT);
} else {
// No registrations left - or all has confirmed their email address... :-)
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ALL_CONFIRMED_EMAIL'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_CONFIRMED_EMAIL--}');
}
// Free memory
} // END - if
// Entries changed
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ADMINS_ENTRIES_CHANGED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ENTRIES_CHANGED--}');
} elseif ((isFormSent('del')) && (countPostSelection() > 0)) {
// Delete ACLs
$OUT = ''; $SW = 2;
} // END - if
// Entries deleted
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ADMINS_ENTRIES_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ENTRIES_DELETED--}');
} elseif (isFormSent('add')) {
// Check if everything is fine...
$mode = getAdminDefaultAcl(bigintval(postRequestParameter('admin_id')));
if (isFormSent()) {
// Replace commata with decimal dot
- setPostRequestParameter('doubler_charge', (convertCommaToDot(postRequestParameter('doubler_charge')) / 100));
- setPostRequestParameter('doubler_ref' , (convertCommaToDot(postRequestParameter('doubler_ref')) / 100));
+ setPostRequestParameter('doubler_charge', convertCommaToDot(postRequestParameter('doubler_charge')));
+ setPostRequestParameter('doubler_ref' , convertCommaToDot(postRequestParameter('doubler_ref')));
setPostRequestParameter('doubler_min' , convertCommaToDot(postRequestParameter('doubler_min')));
setPostRequestParameter('doubler_max' , convertCommaToDot(postRequestParameter('doubler_max')));
setPostRequestParameter('doubler_left' , convertCommaToDot(postRequestParameter('doubler_left')));
// Save settings
adminSaveSettingsFromPostData();
} else {
- // Prepare data for the template
- // - Charge rate
- $content['charge'] = translateComma((getConfig('doubler_charge') * 100), false);
- // - Referal rate
- $content['referal'] = translateComma((getConfig('doubler_ref') * 100), false);
- // - Minimum points to double
- $content['minimum'] = translateComma(getConfig('doubler_min'), false);
- // - Maximum points to double
- $content['maximum'] = translateComma(getConfig('doubler_max'), false);
- // - Points left on users account after doubling
- $content['left'] = translateComma(getConfig('doubler_left'), false);
-
// Init all Y/N selections
foreach (array('jackpot','own','sent_all') as $entry) {
$content[$entry . '_y'] = '';
loadTemplate('admin_mods_edit', false, $OUT);
} else {
// Nothing selected
- loadTemplate('admin_settings_saved', false, getMessage('MODS_NOTHING_SELECTED'));
+ loadTemplate('admin_settings_saved', false, '{--MODS_NOTHING_SELECTED--}');
// Remove maybe confusing data
unsetPostRequestParameter('edit');
} // END - if
// Entries updated
- loadTemplate('admin_settings_saved', false, getMessage('MODS_CHANGED'));
+ loadTemplate('admin_settings_saved', false, '{--MODS_CHANGED--}');
}
if (countPostSelection() == 0) {
loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&what=list_payouts%}">{--ADMIN_PAYOUT_LIST_REQUESTS--}</a>');
} elseif ($display) {
// No member requests so far
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_NO_MEMBER_REQUESTS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_NO_MEMBER_REQUESTS--}');
}
// Free result
adminSaveSettingsFromPostData();
} else {
// Invalid!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PROXY_SETTINGS_INVALID'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PROXY_SETTINGS_INVALID--}');
}
} else {
// Load template
if (SQL_HASZERONUMS($result)) {
// Ok, new price level entered!
- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_rallye_prices` (rallye_id, price_level, points, info)
-VALUES ('%s','%s','%s','%s')",
+ SQL_QUERY_ESC("INSERT INTO
+ `{?_MYSQL_PREFIX?}_rallye_prices`
+(`rallye_id`, `price_level`, `points`, `info`)
+ VALUES
+(%s, %s, '%s', '%s')",
array(
bigintval(getRequestParameter('rallye')),
bigintval(postRequestParameter('level')),
postRequestParameter('points'),
postRequestParameter('info')
), __FILE__, __LINE__);
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_PRICE_LEVEL_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_PRICE_LEVEL_SAVED--}');
} else {
// Free memory
SQL_FREERESULT($result);
// Price level found!
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_PRICE_ALREADY_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_PRICE_ALREADY_FOUND--}');
}
}
} elseif (isFormSent('remove')) {
} // END - foreach
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_ENTRIES_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_DELETED--}');
} else {
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_ENTRIES_NOT_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_NOT_DELETED--}');
}
} elseif (isFormSent('change')) {
// Change entries
}
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_ENTRIES_CHANGED'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_CHANGED--}');
}
if (isFormSent('edit')) {
loadTemplate('admin_list_rallye_prices', false, $OUT);
} else {
// No rallyes setup so far
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_NO_RALLYES_SETUP'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SETUP--}');
}
}
adminSaveSettingsFromPostData();
} else {
// Invalid!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SESSION_SAVE_PATH_INVALID'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SESSION_SAVE_PATH_INVALID--}');
}
} else {
// Prepare content
adminSaveSettingsFromPostData();
} else {
// Config not saved
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CONFIG_YOOMEDIA_TEST_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
}
} else {
// Erotic selection
// Shall we pay the points back to the user?
if ($totalPoints == 0) {
// No points repayed!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_POINTS_REPAYED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_POINTS_REPAYED--}');
} elseif (getConfig('repay_deleted_mails') != 'SHRED') {
//* DEBUG: */ debugOutput($stats_id.':'.$totalPoints.'/'.$links.'/'.$price);
// Shall we payback to user or jackpot?
outputHtml(getMaskedMessage('ADMIN_DELETED_MAILS_COUNT', $cnt));
} else {
// Mail already deleted!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NORMAL_MAIL_ALREADY_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NORMAL_MAIL_ALREADY_DELETED--}');
}
// Free result
array(bigintval(getRequestParameter('pid'))), __FILE__, __LINE__);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_USER_STATS_REMOVED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_STATS_REMOVED--}');
} elseif ((isGetRequestParameterSet('bid')) && (isExtensionActive('bonus'))) {
// Load data from bonus mail
$result = SQL_QUERY_ESC("SELECT `id`, `subject`, `url`, `timestamp`, `mails_sent` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `id`=%s",
loadTemplate('admin_del_email_bonus', false, $content);
} else {
// Mail already deleted!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_MAIL_ALREADY_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_MAIL_ALREADY_DELETED--}');
}
// Free result
loadTemplate('admin_del_email_notify', false, $content);
} else {
// Mail already deleted!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NOTIFY_MAIL_ALREADY_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NOTIFY_MAIL_ALREADY_DELETED--}');
}
// Free result
SQL_FREERESULT($result);
} else {
// No mail orders fond
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_WRONG_CALL'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}');
}
-//
+// [EOF]
?>
loadTemplate('admin_settings_saved', false, getMaskedMessage('HOLIDAY_ADMIN_MULTI_DEL', $cnt));
} elseif (isGetRequestParameterSet('userid')) {
// Set default message
- $message = getMessage('HOLIDAY_ADMIN_SINGLE_404');
+ $message = '{--HOLIDAY_ADMIN_SINGLE_404--}';
// Fetch data
$result_load = SQL_QUERY_ESC("SELECT
sendEmail(getRequestParameter('userid'), getMessage('HOLIDAY_ADMIN_REMOVED_SUBJ'), $message);
// Set message
- $message = getMessage('HOLIDAY_ADMIN_SINGLE_DELETED');
- }
+ $message = '{--HOLIDAY_ADMIN_SINGLE_DELETED--}';
+ } // END - if
// Free memory
SQL_FREERESULT($result_load);
loadTemplate('admin_settings_saved', false, $message);
} else {
// Please call me over other scripts... ;)
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_NO_DIRECT_CALL'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_NO_DIRECT_CALL--}');
}
// [EOF]
SQL_FREERESULT($result);
} else {
// Not called by what-list_sponsor.php
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CALL_NOT_DIRECTLY'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
}
// [EOF]
// Nothing for in and out
$OUT = '<tr>
<td colspan="6" align="center" class="bottom">
- ' . loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS')) . '
+ ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . '
</td>
</tr>';
}
deleteUserAccount(getRequestParameter('userid'), postRequestParameter('reason'));
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_DEL_COMPLETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_DEL_COMPLETED--}');
} else {
// Account does not exists!
loadTemplate('admin_settings_saved', false, '<div class="admin_failed">' . getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))) . '</div>');
// Warning because low points
$content['receive_warnings'] = addSelectionBox('yn', $content['receive_warnings'], 'receive_warning');
- $content['interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh');
+ $content['warning_interval'] = createTimeSelections($content['warning_interval'], 'warning_interval', 'MWDh');
// Init variables here
$TPL = sprintf("admin_edit_sponsor_%s", getRequestParameter('mode'));
SQL_FREERESULT($result_main);
} else {
// Not called by what-list_sponsor.php
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CALL_NOT_DIRECTLY'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
}
// [EOF]
loadTemplate('admin_email_archiv', false, $content);
} else {
// No mail orders fond
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MAILS_IN_POOL'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
}
// Free memory
if ($MAIL === false) {
// No mail orders fond
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MAILS_IN_POOL'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
} // END - if
// [EOF]
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(
'sw' => $SW,
'id' => $content['ext_id'],
loadTemplate('admin_extensions', false, $OUT);
} else {
// No extensions are registered
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_EXTENSION_REGISTERED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_EXTENSION_REGISTERED--}');
}
break;
} // END - if
} elseif (isExtensionInstalled($ext_name)) {
// Notify the admin that we have a problem here...
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_ALREADY'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_ALREADY--}');
} else {
// Notify the admin that we have a problem here...
loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_404', $ext_name));
}
} else {
// Motify the admin that we have a problem here...
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_DEPRECATED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_DEPRECATED--}');
}
} else {
// Extension was not found in task management
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_ID_404'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_ID_404--}');
}
} elseif ($task_found == '0') {
// No longer assigned or old task
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_ASSIGED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_ASSIGED--}');
} else {
// id is invalid
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_INVALID'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_INVALID--}');
}
break;
case 'demo':
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_NOT_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
break;
} // END - switch
postRequestParameter('active'),
), __FILE__, __LINE__);
}
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
} else {
// Demo mode!
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_NOT_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
}
// [EOF]
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `title`='%s', `action`='%s', `what`='%s' WHERE ".$AND." AND `id`=%s LIMIT 1",
array($menu, postRequestParameter('sel_action', $sel), postRequestParameter('sel_what', $sel), $sel),__FILE__, __LINE__);
} // END - foreach
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
break;
case 'del': // Delete menu
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_guest_menu` WHERE ".$AND." AND `id`=%s LIMIT 1",
array(bigintval($sel)), __FILE__, __LINE__);
} // END - foreach
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
break;
case 'status': // Change access levels
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_guest_menu` SET `visible`='%s', `locked`='%s' WHERE ".$AND." AND `id`=%s LIMIT 1",
array(postRequestParameter('visible', $sel), postRequestParameter('locked', $sel), $sel), __FILE__, __LINE__);
} // END - foreach
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
break;
default: // Unexpected action
loadTemplate('admin_gmenu_edit', false, $content);
} else {
// Menu entries are missing... (???)
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MENUS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
}
}
loadTemplate('admin_list_autopurge', false, $content);
} else {
// All members are active or you don't have any registered
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_AUTOPURGE_ALL_ACTIVE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_AUTOPURGE_ALL_ACTIVE--}');
}
// [EOF]
if ($show === false) return;
// Load all banking packages from DB
-$result = SQL_QUERY("SELECT id, title, description, account_fee AS 'fee', package_active AS 'active', interest_plus AS 'plus', interest_minus AS 'minus'
-FROM `{?_MYSQL_PREFIX?}_bank_packages`
-ORDER BY `id` ASC", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT
+ `id`, `title`, `description`, `account_fee`, `package_active`, `interest_plus`, `interest_minus`
+FROM
+ `{?_MYSQL_PREFIX?}_bank_packages`
+ORDER BY
+ `id` ASC", __FILE__, __LINE__);
// Is there at lease one package?
if (SQL_NUMROWS($result) > 0) {
// List all packages
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
- // "Translate" some data
- $content['active'] = translateYesNo($content['active']);
- $content['fee'] = translateComma($content['fee']);
- $content['plus'] = translateComma($content['plus']);
- $content['minus'] = translateComma($content['minus']);
+ // Add color switch
$content['sw'] = $SW;
// Load row template
loadTemplate('admin_list_bank_package', false, $OUT);
} else {
// No packages found!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BANK_NO_PACKAGES_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BANK_NO_PACKAGES_FOUND--}');
}
// Free the result
SQL_FREERESULT($result);
-//
+// [EOF]
?>
$curr = date('m', time()) - 1;
if (strlen($curr) == 1) $curr = '0' . $curr;
updateConfiguration('last_month', $curr);
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BEG_WITHDRAW_PREPARED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_WITHDRAW_PREPARED--}');
} // END - if
// Autopurge installed?
loadTemplate('admin_list_beg', false, $content);
} else {
// No one has joined the begging rallye...
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BEG_NO_RALLYE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_NO_RALLYE--}');
}
} else {
// Rallye deactivated
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BEG_RALLYE_DEACTIVATED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_RALLYE_DEACTIVATED--}');
}
// [EOF]
$curr = date('m', time()) - 1;
if (strlen($curr) == 1) $curr = '0' . $curr;
updateConfiguration('last_month', $curr);
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_WITHDRAW_PREPARED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_WITHDRAW_PREPARED--}');
} // END - if
if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
$USE .= ')';
} else {
// Old version ???
- $USE = 'turbo_bonus';
+ $USE = '`turbo_bonus`';
}
// Autopurge installed?
- $lastOnline = "%s"; $ONLINE = '';
+ $lastOnline = '%s'; $ONLINE = '';
if (isExtensionActive('autopurge')) {
// Use last online timestamp to keep inactive members away from here
- $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)";
- $ONLINE = getConfig('ap_inactive_since');
- }
+ $lastOnline = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
+ } // END - if
// Check if at least one is in the active rallye
$result = SQL_QUERY_ESC("SELECT
loadTemplate('admin_list_bonus', false, $content);
} else {
// No one has become an "activity bonus"...
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_NO_ACTIVE_RALLYE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_NO_ACTIVE_RALLYE--}');
}
} else {
// Aktive-Rallye not activated
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_BONUS_RALLYE_DEACTIVATED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_RALLYE_DEACTIVATED--}');
}
// [EOF]
loadTemplate('admin_list_holiday', false, $OUT);
} else {
// No holiday requests found
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_ADMIN_NOTHING_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_ADMIN_NOTHING_FOUND--}');
}
// [EOF]
sendEmail(getUserData('email'), getMessage('ADMIN_DEL_LINK_SUBJ'), $message);
// Display message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_LINKS_DELETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_LINKS_DELETED--}');
} else {
// Init variables
$OUT = ''; $SW = 2;
$ADD = sprintf(" AND p.`network_type_id`=%s", bigintval(postRequestParameter('network_type_id')));
// Display message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_REQUEST_PARAMETER_LIST_LIMITED_TO_TYPE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_REQUEST_PARAMETER_LIST_LIMITED_TO_TYPE--}');
} // END - if
// Load all advert types for given network
loadTemplate('admin_list_networks', false, $OUT);
} else {
// Display a message that there are sponsor networks supported, yet
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NETWORK_NONE_SUPPORTED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_NONE_SUPPORTED--}');
}
// Free result
}
} elseif ((SQL_NUMROWS($result_max) === 0) && (is_resource($result_max))) {
// No notifications found
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_NOTIFICATIONS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_NOTIFICATIONS--}');
}
// [EOF]
if (empty($task)) $task = '0';
} elseif ((empty($userid)) || ($userid == '0')) {
// Cannot obtain member id!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_FAILED_OBTAIN_USERID'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_USERID--}');
} else {
// Get task id from URL
$task = getRequestParameter('task');
// Output message
if ($data['allow_url'] == 'Y') {
// Banner / Textlink request
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_BANNER_ACCEPTED_NOTIFIED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_BANNER_ACCEPTED_NOTIFIED--}');
} else {
// Normal request
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_ACCEPTED_NOTIFIED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_ACCEPTED_NOTIFIED--}');
}
// Finally send mail
$message = loadEmailTemplate('member_payout_rejected', postRequestParameter('text'), $userid);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_REJECTED_NOTIFIED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_REJECTED_NOTIFIED--}');
// Finally send mail
sendEmail(getUserData('email'), getMessage('MEMBER_PAYOUT_REJECTED_SUBJECT'), $message);
}
} else {
// Cannot load user data
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_FAILED_OBTAIN_USERDATA'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_USERDATA--}');
}
} elseif ((empty($task)) || ($task == '0')) {
// Failed loading task id
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_FAILED_OBTAIN_TASK_ID'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_TASK_ID--}');
}
} else {
if (getRequestParameter('do') == 'delete') {
loadTemplate('admin_list_payouts', false, $OUT);
} else {
// No payout requests are sent so far
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PAYOUT_NO_REQUESTS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_NO_REQUESTS_FOUND--}');
}
}
loadTemplate('admin_list_primera_main', false, $OUT);
} else {
// Nothing to display!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_PRIMERA_NO_TRANSFERS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_PRIMERA_NO_TRANSFERS--}');
}
// Free the result
loadTemplate('admin_edit_rallyes', false, $OUT);
} else {
// Nothing selected to edit
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_NO_RALLYES_SELECTED'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SELECTED--}');
}
} elseif ((getRequestParameter('sub') == 'users') && (getRequestParameter('rallye') > 0)) {
// List users and their refs before start and current
loadTemplate('admin_list_rallye_usr', false, $content);
} else {
// No entries found?
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_ADMIN_USERS_404'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_ADMIN_USERS_404--}');
}
} else {
// Start listing rallyes
loadTemplate('admin_list_rallyes', false, $content);
} else {
// No rallyes setup so far
- loadTemplate('admin_settings_saved', false, getMessage('RALLYE_NO_RALLYES_SETUP'));
+ loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SETUP--}');
}
}
}
} elseif (isExtensionActive('refback')) {
// No levels found, very bad!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_REF_LEVELS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_REF_LEVELS--}');
} else {
// No refs made so far
- loadTemplate('admin_settings_saved', false, getMessage('USER_REF_404'));
+ loadTemplate('admin_settings_saved', false, '{--USER_REF_404--}');
}
// Free result
loadTemplate('admin_list_sponsor', false, $OUT);
} else {
// No sponsors registered so far
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_REGISTERED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_REGISTERED--}');
}
}
$content['list_out'] = loadTemplate('admin_list_sponsor_pay', true, $OUT);
} else {
// Noting setup so far!
- $content['list_out'] = loadTemplate('admin_settings_saved', true, getMessage('ADMIN_SPONSOR_NO_PAYTYPES'));
+ $content['list_out'] = loadTemplate('admin_settings_saved', true, '{--ADMIN_SPONSOR_NO_PAYTYPES--}');
}
// Free memory
// Some security stuff...
if ((!defined('__SECURITY')) || (!isAdmin())) {
die();
-}
+} // END - if
// Add description as navigation point
addMenuDescription('admin', __FILE__);
}
} else {
// Not called by what-list_sponsor.php
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CALL_NOT_DIRECTLY'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
}
-//
+// [EOF]
?>
loadTemplate('admin_list_surfbar_actions', false, $OUT);
} else {
// No entries found, very bad!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_ACTIONS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_ACTIONS--}');
}
// Free result
// Check for 'url_id' element
if ((countRequestPost() > 0) && ((!isPostRequestParameterSet('url_id')) || (!is_array(postRequestParameter('url_id'))) || (count(postRequestParameter('url_id')) == 0))) {
// Not found so output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_SELECTIONS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_SELECTIONS--}');
// Abort here
return;
loadTemplate('admin_list_surfbar_urls', false, $OUT);
} else {
// No URLs in surfbar
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_URLS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_URLS_FOUND--}');
}
// Free result
// Nothing for in and out
$OUT = '<tr>
<td colspan="6" align="center" class="bottom">
- ' . loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS')) . '
+ ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . '
</td>
</tr>';
}
$listed = true; $DATA = $ID; $LINK = 'bonusid';
} else {
// @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_CALL_NOT_DIRECTLY'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
}
// Shall I display links or not?
SQL_FREERESULT($result);
} else {
// All links are confirmed... strange, you shall normally not get a link to this place in this scenario... hmmm.
- $OUT = loadTemplate('admin_settings_saved', true, getMessage('ADMIN_UNCONFIRMED_NO_LINK_LEFT'));
+ $OUT = loadTemplate('admin_settings_saved', true, '{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}');
}
// Prepare content
loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNCONFIRMED_STATS_MISSING', $ID));
} else {
// both or link is invalid
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_UNCONFIRMED_INVALID_LINK'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_UNCONFIRMED_INVALID_LINK--}');
}
// Free memory
SQL_FREERESULT($result2);
} elseif (isGetRequestParameterSet('bid')) {
// Data in bonus table not found
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_UNCONFIRMED_INVALID_LINK'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_UNCONFIRMED_INVALID_LINK--}');
}
// Free result
// Add lock reason?
if (isExtensionInstalledAndNewer('user', '0.3.5')) {
// Add them...
- $MORE .= ", `lock_reason`, UNIX_TIMESTAMP(`lock_timestamp`) AS lock_timestamp";
+ $MORE .= ", `lock_reason`, UNIX_TIMESTAMP(`lock_timestamp`) AS `lock_timestamp`";
} // END - if
} // END - if
$content['joined'] = generateDateTime($content['joined'], 0);
$content['last_update'] = generateDateTime($content['last_update'], 0);
$content['last_profile_sent'] = generateDateTime($content['last_profile_sent'], 0);
- $content['total'] = translateComma(countSumTotalData($userid, 'user_points', 'points'));
- $content['locked'] = translateComma(countSumTotalData($userid, 'user_points', 'locked_points'));
+ $content['total'] = countSumTotalData($userid, 'user_points', 'points');
+ $content['locked'] = countSumTotalData($userid, 'user_points', 'locked_points');
$content['lock_timestamp'] = generateDateTime($content['lock_timestamp'], 2);
// Is the lock reason not set?
$content['nickname'] = getMessage('EXT_NICKNAME_404');
}
- // Is the user extension newer?
- if (isExtensionInstalledAndNewer('user', '0.3.4')) {
- // Then "translate" the number
- $content['rand_confirmed'] = translateComma($content['rand_confirmed']);
- } // END - if
-
// Clickrate
$content['click_rate'] = '0';
if ($content['emails_received'] > 0) {
- $content['click_rate'] = translateComma($content['mails_confirmed'] / $content['emails_received'] * 100);
+ $content['click_rate'] = ($content['mails_confirmed'] / $content['emails_received'] * 100);
} // END - if
// Is the extension 'country' installed?
// Calculate page count (0.5 fixes a bug with page count)
if (getConfig('user_limit') == '0') {
setConfigEntry('user_limit', 100);
- loadTemplate('admin_settings_saved', false, getMessage('EXTENSION_WARNING_USER_LIMIT'));
+ loadTemplate('admin_settings_saved', false, '{--EXTENSION_WARNING_USER_LIMIT--}');
} // END - if
// Activate the extension please!
loadTemplate('admin_list_user', false, $content);
} else {
// No one as registered so far! :-(
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_NONE_REGISTERED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_NONE_REGISTERED--}');
}
// Free memory
loadTemplate('admin_list_wernis_main', false, $OUT);
} else {
// Nothing to display!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_WERNIS_NO_TRANSFERS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_WERNIS_NO_TRANSFERS--}');
}
// Free the result
// Enougth queries left?
if (getConfig('yoomedia_requests_remain') == '0') {
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_YOOMEDIA_REQUESTS_DEPLETED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_YOOMEDIA_REQUESTS_DEPLETED--}');
// Abort here!
return false;
// Sanity-check on result array
if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
// Invalid result
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_YOOMEDIA_INVALID_RESULT'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_YOOMEDIA_INVALID_RESULT--}');
return false;
} elseif (count($result[0]) < 7) {
// Error received so prepare error code
outputHtml('</ol>');
} else {
// logs directory does not exist
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_LOGS_DIR_404'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_LOGS_DIR_404--}');
}
}
bigintval(postRequestParameter('sort')),
), __FILE__, __LINE__);
}
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED'));
} else {
// Demo mode!
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_NOT_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
}
-//
+// [EOF]
?>
} // END - foreach
// Load template
- loadTemplate('admin_settings_saved', false, getMessage('SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
} else {
if ((isGetRequestParameterSet('act')) && (isGetRequestParameterSet('tid')) && (isGetRequestParameterSet('fid'))) {
// Init
loadTemplate('admin_mmenu_overview', false, $content);
} else {
// Menu entries are missing... (???)
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MENUS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
}
}
// Is sql_patches not yet installed?
if (!isExtensionInstalled('sql_patches')) {
// Output warning
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_WARNING_SQL_PATCHES_MISSING'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_WARNING_SQL_PATCHES_MISSING--}');
} // END - if
// Load include file 'overview-inc' (old standard overview page)
} // END - while
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NL_SEND_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NL_SEND_DONE--}');
} // END - if
// Free memory
SQL_FREERESULT($result_main);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ALL_POINTS_SUBTRACTED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_POINTS_SUBTRACTED--}');
} else {
// Display form add points
loadTemplate('admin_sub_points_all');
sendEmail($content['email'], getMessage('ADMIN_SUB_SUBJ'), $message);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_POINTS_SUBTRACTED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_SUBTRACTED--}');
} else {
// Prepare content
$content['user'] = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">' . translateGender($content['gender']) . ' ' . $content['surname'] . ' ' . $content['family'] . '</a>';
loadTemplate('admin_surfbar_url_stats', false, $content);
} else {
// No statistics so far
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_URL_STATS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_URL_STATS--}');
}
} else {
// Generate general statistics
loadTemplate('admin_surfbar_stats', false, $content);
} else {
// No statistics so far
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_STATS'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_STATS--}');
}
}
// No themes found???
$OUT .= '<tr>
<td colspan="7" class="bottom" height="60">
- ' . loadTemplate('admin_settings_saved', true, getMessage('ADMIN_NO_THEMES_FOUND')) . '
+ ' . loadTemplate('admin_settings_saved', true, '{--ADMIN_NO_THEMES_FOUND--}') . '
</td>
</tr>';
}
if (empty($OUT)) {
// No themes found???
- $OUT .= loadTemplate('admin_theme_import_none', true, loadTemplate('admin_settings_saved', true, getMessage('ADMIN_NO_THEMES_FOUND')));
+ $OUT .= loadTemplate('admin_theme_import_none', true, loadTemplate('admin_settings_saved', true, '{--ADMIN_NO_THEMES_FOUND--}'));
} // END - if
// Load template
loadTemplate('admin_unlock_emails_redir', false, $OUT);
} else {
// Nothing selected
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_MAILS_NOTHING_CHECKED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_MAILS_NOTHING_CHECKED--}');
}
} elseif ((isFormSent('lock')) && (countPostSelection() > 0) && (getConfig('url_blacklist') == 'Y')) {
// Lock URLs
} // END - foreach
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_URLS_BLOCKED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}');
} elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) {
// Mail orders are in pool so we can display them
$OUT = ''; $SW = 2;
loadTemplate('admin_unlock_emails', false, $content);
} elseif ((isFormSent('lock')) && (getConfig('url_blacklist') != 'Y')) {
// URL blacklist not activated
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_URL_BLACKLIST_DISABLED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_URL_BLACKLIST_DISABLED--}');
} else {
// Wrong call!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_WRONG_CALL'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}'));
}
} else {
// No mail orders fond
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_NO_MAILS_IN_POOL'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
}
// [EOF]
} // END - foreach
} else {
// Nothing selected
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_SELECTED_UNLOCK'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_SELECTED_UNLOCK--}');
}
} // END - if
$OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Transfer data to array
- // @TODO Rewritings: remote->remote_addr, created->sponsor_created in template
$content = array(
- 'sw' => $SW,
- 'id' => $content['id'],
- 'gender' => translateGender($content['gender']),
- 'surname' => $content['surname'],
- 'family' => $content['family'],
- 'email' => generateEmailLink($content['email'], 'sponsor_data'),
- 'remote' => $content['remote_addr'],
- 'created' => generateDateTime($content['sponsor_created'], 2),
+ 'sw' => $SW,
+ 'id' => $content['id'],
+ 'gender' => $content['gender'],
+ 'surname' => $content['surname'],
+ 'family' => $content['family'],
+ 'email' => generateEmailLink($content['email'], 'sponsor_data'),
+ 'remote_addr' => $content['remote_addr'],
+ 'sponsor_created' => generateDateTime($content['sponsor_created'], 2),
);
// Load row template and switch colors
loadTemplate('admin_unlock_sponsor', false, $OUT);
} else {
// No pending accounts found
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_PENDING'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_PENDING--}');
}
// Free memory
// Unlock selected URLs
if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestParameter('url_id'))) {
// Unlock done! :-)
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_UNLOCK_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_DONE--}');
} else {
// Unlock failed!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_UNLOCK_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_FAILED--}');
}
} elseif ((isPostRequestParameterSet(('reject'))) && (is_array(postRequestParameter('url_id'))) && (count(postRequestParameter('url_id')) > 0)) {
// Reject selected URLs
if (SURFBAR_ADMIN_REJECT_URL_IDS(postRequestParameter('url_id'))) {
// Unlock done! :-)
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_UNLOCK_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_DONE--}');
} else {
// Unlock failed!
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_UNLOCK_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_FAILED--}');
}
}
loadTemplate('admin_unlock_surfbar_urls', false, $OUT);
} else {
// No URLs in surfbar
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SURFBAR_NO_URLS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_URLS_FOUND--}');
}
// Free result
loadTemplate('admin_update_download', false, $ONLINE);
} else {
// You have the latest version!
- loadTemplate('admin_settings_saved', false, getMessage('NO_UPDATES_AVAILABLE'));
+ loadTemplate('admin_settings_saved', false, '{--NO_UPDATES_AVAILABLE--}');
}
// [EOF]
outputHtml($content);
} else {
// Nothing to load, then we have no directory 'usage'
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_USAGE_DIRECTORY_404'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_USAGE_DIRECTORY_404--}');
}
// [EOF]
sendEmail($content['email'], getMessage('ADMIN_CONTACT_USER_SUBJECT'), $message);
// Display message
- loadTemplate('admin_settings_saved', false, getMessage('ADMIN_USER_CONTACTED'));
+ loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_CONTACTED--}');
} else {
// Load contact form template
loadTemplate('admin_contct_user_form', false, $content);
} // END - if
} else {
// Online statistics deactivated!
- loadTemplate('admin_settings_saved', false, getMessage('ONLINE_STATISTICS_DEACTIVATED'));
+ loadTemplate('admin_settings_saved', false, '{--ONLINE_STATISTICS_DEACTIVATED--}');
}
// [EOF]
return;
} // END - if
-// Percent values etc.
-$content['charge'] = translateComma(getConfig('doubler_charge') * 100);
-$content['ref'] = translateComma(getConfig('doubler_ref') * 100);
-$content['total'] = translateComma(getConfig('doubler_points'));
-$content['min'] = translateComma(getConfig('doubler_min'));
-$content['max'] = translateComma(getConfig('doubler_max'));
-
-// Transfer referal id
-$content['refid'] = determineReferalId();
-
// Which mail-send-mode did the admin setup?
$content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode'));
// Generate table with already payed out doubles
$content['payout_history'] = generateDoublerTable(0, 'Y', 'N', 'DESC');
-// Generate table with next-to-run payouts
-$content['next_table'] = generateDoublerTable();
-
-// Generate timemark
-$content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));
-
-// Points left to double
-$content['left'] = translateComma(DOUBLER_GET_TOTAL_POINTS_LEFT());
-
// Load template
loadTemplate('guest_doubler', false, $content);
doRegistration();
// Output success registration
- loadTemplate('admin_settings_saved', false, getMessage('REGISTRATION_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--REGISTRATION_DONE--}');
} else {
// Do this only if form is sent
if (isFormSent()) {
}
} else {
// No pay types setuped so far!
- $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
+ $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
}
} else {
// No actions activated so far!
- $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
- $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_ACTIONS_ACTIVATED')));
+ $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
+ $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
}
// Free memory
sendAdminNotification(getMessage('ADMIN_NEW_SPONSOR'), 'admin_sponsor_pending', $data);
// Sponsor account set to pending
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACCOUNT_IS_PENDING'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_IS_PENDING--}');
} else {
// Could not unlock account!
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACCOUNT_PENDING_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_PENDING_FAILED--}');
}
} elseif ($data['status'] == 'EMAIL') {
// Changed email adress need to be confirmed
// Check on success
if (SQL_AFFECTEDROWS() == 1) {
// Sponsor account is unlocked again
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN--}');
} else {
// Could not unlock account!
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACCOUNT_EMAIL_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_EMAIL_FAILED--}');
}
} else {
/// ??? Other status?
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACCOUNT_STATUS_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_STATUS_FAILED--}');
}
} else {
// No sponsor found
sendEmail(postRequestParameter('email'), getMessage('SPONSOR_ACTIVATION_LINK_SUBJ'), $message_sponsor);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACTIVATION_LINK_SENT'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACTIVATION_LINK_SENT--}');
} else {
// No account found or not UNCONFIRMED
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_ACTIVATION_LINK_404'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACTIVATION_LINK_404--}');
}
// Free memory
sendEmail(postRequestParameter('email'), getMessage('SPONSOR_LOST_PASSWORD_SUBJ'), $message_sponsor);
// Update password
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET `password`='%s'
-WHERE `id`='%s' LIMIT 1",
+ SQL_QUERY_ESC("UPDATE
+ `{?_MYSQL_PREFIX?}_sponsor_data`
+SET
+ `password`='%s'
+WHERE
+ `id`=%s
+LIMIT 1",
array(md5($DATA['password']), bigintval($DATA['id'])), __FILE__, __LINE__);
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_LOST_PASSWORD_SENT'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOST_PASSWORD_SENT--}');
} else {
// No account found or not UNCONFIRMED
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_LOST_PASSWORD_404'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOST_PASSWORD_404--}');
}
// Free memory
redirectToUrl('modules.php?module=sponsor');
} else {
// Cookie setup failed!
- loadTemplate('admin_settings_saved', false, getMessage('SPONSPOR_COOKIE_SETUP_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSPOR_COOKIE_SETUP_FAILED--}');
// Login formular and other links
loadTemplate('guest_sponsor_login');
}
} else {
// Status is not fine
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_LOGIN_FAILED_' . strtoupper($status) . ''));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOGIN_FAILED_' . strtoupper($status) . '--}');
// Login formular and other links
loadTemplate('guest_sponsor_login');
}
} else {
// Account missing or wrong pass! We shall not find this out for the "cracker folks"...
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_LOGIN_FAILED_404_WRONG_PASS'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOGIN_FAILED_404_WRONG_PASS--}');
// Login formular and other links
loadTemplate('guest_sponsor_login');
// Errors found?
if (count($FORM_ERRORS) > 0) {
- $OUT = loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_REGISTER_SOMETHING_MISSING');
+ $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_REGISTER_SOMETHING_MISSING--}');
$OUT .= '<ol>';
foreach ($FORM_ERRORS as $error) {
$OUT .= '<li>' . $error . '</li>';
loadTemplate('guest_sponsor_reg', false, $content);
} else {
// Nothing added so far
- loadTemplate('admin_settings_saved', false, getMessage('SPONSOR_PAYMENT_LIST_IS_EMPTY'));
+ loadTemplate('admin_settings_saved', false, '{--SPONSOR_PAYMENT_LIST_IS_EMPTY--}');
}
// Free memory
loadTemplate('guest_stats_table', false, $content);
} else {
// No clicks detected
- loadTemplate('admin_settings_saved', false, getMessage('GUEST_STATS_NO_CLICKS'));
+ loadTemplate('admin_settings_saved', false, '{--GUEST_STATS_NO_CLICKS--}');
}
break;
case 'INACTIVE': // Deactivated stats
- loadTemplate('admin_settings_saved', false, getMessage('GUEST_STATS_DEACTIVATED'));
+ loadTemplate('admin_settings_saved', false, '{--GUEST_STATS_DEACTIVATED--}');
break;
} // END - switch
// Categories saved?
if ($cnt > 0) {
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_CATS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_CATS_SAVED--}');
} else {
// None save
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_CATS_NOT_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_CATS_NOT_SAVED--}');
}
} else {
if ($LEAST === true) {
// Also here we have to secure it... :(
- loadTemplate('admin_settings_saved', false, getMessage('CATS_LEAST'));
+ loadTemplate('admin_settings_saved', false, '{--CATS_LEAST--}');
} // END - if
// Put some data into constants for the template
}
} else {
// No cateogries are defined yet
- loadTemplate('admin_settings_saved', true, getMessage('MEMBER_NO_CATS'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_CATS--}');
}
// Free result
SQL_FREERESULT($result);
-//
+// [EOF]
?>
return;
} // END - if
-// Percent values etc.
-// @TODO The '*100' is in the way to get moved into the template
-$content['charge'] = translateComma(getConfig('doubler_charge') * 100);
-$content['ref'] = translateComma(getConfig('doubler_ref') * 100);
-
-// Default refid is the userid
-$content['userid'] = getMemberId();
+// Init nickname
+$content['nickname'] = '';
// Transfer referal id
if (isExtensionActive('nickname')) {
// Load nickname from DB
- $nick = getNickname(getMemberId());
-
- if (!empty($nick)) {
- // Set nickname
- $content['userid'] = $nick;
- } // END - if
+ $content['nickname'] = getNickname(getMemberId());
} // END - if
// Which mail-send-mode did the admin setup?
// Generate table with already payed out doubles
$content['payout_history'] = generateDoublerTable(getMemberId(), 'Y', 'N', 'DESC');
-// Generate table with next-to-run payouts
-$content['next_table'] = generateDoublerTable(getMemberId());
-
// Generate table with refferal payouts
$content['payout_ref'] = generateDoublerTable(getMemberId(), 'N', 'Y', 'DESC');
-// Generate timemark
-$content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));
-
-// Points left to double
-$content['left'] = translateComma(DOUBLER_GET_TOTAL_POINTS_LEFT());
-
// Load template
loadTemplate('member_doubler', false, $content);
createNewTask('{--HOLIDAY_ADMIN_SUBJECT--}', $message, 'HOLIDAY_REQUEST', getMemberId());
// Display message
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_IS_ACTIVATED_NOW'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_IS_ACTIVATED_NOW--}');
}
} // END - if
sendAdminNotification(getMessage('HOLIDAY_ADMIN_DEAC_SUBJ'), 'admin_holiday_deactivated', $content, getMemberId());
// Display message to user
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_MEMBER_DEACTIVATED_NOW'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_MEMBER_DEACTIVATED_NOW--}');
} else {
// Display message to user
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_MEMBER_CANNOT_DEACTIVATE'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_MEMBER_CANNOT_DEACTIVATE--}');
}
// Free result
SQL_FREERESULT($result2);
} elseif ($content['holiday_active'] == 'Y') {
// To fast!
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_MEMBER_LOCKED'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_MEMBER_LOCKED--}');
}
} else {
// User not found
}
} else {
// To fast!
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_MEMBER_LOCKED'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_MEMBER_LOCKED--}');
}
} // END - if
// Save settings
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `html`='%s' WHERE `userid`=%s LIMIT 1",
array(postRequestParameter('html'), getMemberId()), __FILE__, __LINE__);
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SETTINGS_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SETTINGS_SAVED--}');
} else {
// Prepare it
$content['html_y'] = '';
loadTemplate('admin_settings_saved', false, $content['update_check']);
} elseif ((!isEmailValid(postRequestParameter('email'))) && (!isAdmin())) {
// Invalid email address!
- loadTemplate('admin_settings_saved', false, getMessage('INVALID_EMAIL_ENTERED'));
+ loadTemplate('admin_settings_saved', false, '{--INVALID_EMAIL_ENTERED--}');
} else {
// Generate hash
$hash = generateHash(postRequestParameter('pass1'), substr($content['password'], 0, -40));
sendModeMails ('mydata', $modes);
} else {
// Something went wrong
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_UPDATE_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_UPDATE_FAILED--}');
}
} else {
// Entered wrong pass for updating profile
- loadTemplate('admin_settings_saved', false, getMessage('MEBER_UPDATE_PWD_WRONG'));
+ loadTemplate('admin_settings_saved', false, '{--MEBER_UPDATE_PWD_WRONG--}');
}
}
break;
if (($HOLIDAY == 'Y') && (isExtensionInstalledAndNewer('holiday', '0.1.3'))) {
// Holiday is active!
- loadTemplate('admin_settings_saved', false, getMessage('HOLIDAY_ORDER_NOT_POSSIBLE'));
+ loadTemplate('admin_settings_saved', false, '{--HOLIDAY_ORDER_NOT_POSSIBLE--}');
} elseif ((isPostRequestParameterSet('frametester')) && ($ALLOWED > 0) && (postRequestParameter('receiver') > 0)) {
// Continue with the frametester, we first need to store the data temporary in the pool
//
WHERE
`sender`=%s AND
`url`='%s' AND
- `timestamp` > (UNIX_TIMESTAMP() - %s)
+ `timestamp` > (UNIX_TIMESTAMP() - {?url_tlock?})
LIMIT 1",
array(
getMemberId(),
- postRequestParameter('url'),
- getConfig('url_tlock')
+ postRequestParameter('url')
), __FILE__, __LINE__);
$type = 'TEMP'; $id = '0';
$url = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS1');
} elseif (($ALLOWED == '0') && (getConfig('order_max_full') == 'ORDER')) {
// No more mail orders allowed
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_ORDER_ALLOWED_EXHAUSTED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_ORDER_ALLOWED_EXHAUSTED--}');
} elseif (($links < getConfig('unconfirmed')) && ($mmails == 1)) {
// Display order form
$result_cats = SQL_QUERY("SELECT
}
} elseif ($mmails == '0') {
// Please set more than 0 mails per day
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_HAS_ZERO_MMAILS'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_HAS_ZERO_MMAILS--}');
} else {
// Please confirm some mails first
loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_LINKS_LEFT'), $links);
outputPayoutList($totalPoints);
} else {
// No payout types setup
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PAYOUT_SETUP_INCOMPLETE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
}
} else {
// Chedk if he can get paid by selected type
sendAdminNotification(getMessage('ADMIN_PAYOUY_REQUEST_SUBJ'), $admin_tpl, postRequestArray(), getMemberId());
// Load template and output it
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PAYOUT_REQUEST_SENT'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_REQUEST_SENT--}');
} elseif ($content['allow'] == 'Y') {
// Prepare content
$content = array(
}
} else {
// Not enougth points
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PAYOUT_POINTS_NOT_ENOUGTH'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_POINTS_NOT_ENOUGTH--}');
}
} else {
// id is invalid
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PAYOUT_ID_INVALID'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_ID_INVALID--}');
}
// Free result
$content['rowspan'] = ($depths*2+15);
// Init some vars...
-$totalPoints = '0';
-$totalReferals = '0';
-$totalLocked = '0';
+$content['total_points'] = '0';
+$content['total_referals'] = '0';
+$content['total_locked'] = '0';
$OUT = '';
// Load ref levels
$content = merge_array($content, SQL_FETCHARRAY($result_points));
// Add both points
- $totalPoints += $content['points'];
- $totalLocked += $content['locked_points'];
+ $content['total_points'] += $content['points'];
+ $content['total_locked'] += $content['locked_points'];
} // END - if
// Free result
$content = merge_array($content, SQL_FETCHARRAY($result_refs));
// Add them to total refs
- $totalReferals += $content['counter'];
+ $content['total_referals'] += $content['counter'];
} // END - if
// Free result
$content['rows'] = $OUT;
// Initialize variables
-$CONFIRMED = '---';
-$SENT = '---';
-$RECEIVED = '---';
+$content['confirmed'] = '---';
+$content['sent'] = '---';
+$content['receive'] = '---';
// Only user >= v0.1.2: Fetch confirmed mails counter
if (isExtensionInstalledAndNewer('user', '0.1.2')) {
$add = '';
- $CONFIRMED = getUserData('mails_confirmed');
+ $content['confirmed'] = getUserData('mails_confirmed');
if (isExtensionInstalledAndNewer('user', '0.1.4')) {
- $SENT = getUserData('emails_sent');
- $RECEIVED = getUserData('emails_received');
+ $content['sent'] = getUserData('emails_sent');
+ $content['receive'] = getUserData('emails_received');
} // END - if
// Please update the user extension if you see 3 dashes
- if (empty($SENT)) $SENT = '---';
- if (empty($RECEIVED)) $RECEIVED = '---';
+ if (empty($content['sent'])) $content['sent'] = '---';
+ if (empty($content['receive'])) $content['receive'] = '---';
} else {
// Please update!
- $CONFIRMED = '---';
+ $content['confirmed'] = '---';
}
// If TLOCK is 0 add 3 zeros for floating
-if ($totalLocked == '0') $totalLocked = '0.00000';
+if ($content['total_locked'] == '0') $content['total_locked'] = '0.00000';
// Remember several values in constants
-$content['sum'] = ($totalPoints - getUserData('used_points'));
-$content['tref'] = $totalReferals;
-$content['tlock'] = $totalLocked;
+$content['total_points'] = ($content['total_points'] - getUserData('used_points'));
// Fixes a bug when there is no bonus extension installed
if (isExtensionInstalledAndOlder('bonus', '0.4.4')) setConfigEntry('bonus_active', 'X');
// Display login bonus and turbo-click bonus
if ((isExtensionInstalledAndNewer('bonus', '0.2.2')) && (isExtensionActive('bonus')) && (getConfig('bonus_active') == 'Y')) {
- // Fetch some data and init others (to avoid a notice here)
- $content['login'] = getUserData('login_bonus');
- $content['turbo'] = getUserData('turbo_bonus');
-
- // Get more data if ext-bonus is newer
- if (isExtensionInstalledAndNewer('bonus', '0.4.4')) {
- $content['ref'] = getUserData('bonus_ref');
- $content['order'] = getUserData('bonus_order');
- $content['stats'] = getUserData('bonus_stats');
- } // END - if
-
// Total bonus points
- $content['ttotal'] = $content['turbo'] + $content['login'] + $content['ref'] + $content['order'] + $content['stats'];
+ $content['total'] = getUserData('turbo_bonus') + getUserData('login_bonus') + getUserData('bonus_ref') + getUserData('bonus_order') + getUserData('bonus_stats');
// Output rows
$content['special_rows'] = loadTemplate('member_points_bonus_rows', true, $content);
$content['special_rows'] = loadTemplate('member_points_upgrade');
}
-// Remeber values for the final template
-$content['receive'] = $RECEIVED;
-$content['confirmed'] = $CONFIRMED;
-$content['sent'] = $SENT;
-
// Load final template
if (isExtensionActive('user')) {
// Load template when required extension is there
loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
} else {
// Message for user
- loadTemplate('admin_settings_saved', false, getMessage('PROBLEM_POINTS_OVERVIEW_UNAVAILABLE'));
+ loadTemplate('admin_settings_saved', false, '{--PROBLEM_POINTS_OVERVIEW_UNAVAILABLE--}');
}
if (isExtensionActive('payout')) {
// Payput extension is installed and active so we can check if the user has enougth points
- outputPayoutList(convertCommaToDot(($totalPoints - getUserData('used_points'))));
+ outputPayoutList($content['total_points'] - getUserData('used_points'));
} // END - if
// [EOF]
// Check if the admin has entered the data
if ((getConfig('primera_api_name') == '') || (getConfig('primera_api_md5') == '')) {
// Something important is missing...
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_API_DATA_MISSING'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_API_DATA_MISSING--}');
return;
} // END - if
// Is this enougth for a payout?
if ($points < getConfig('primera_min_payout')) {
// No, then abort here
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT--}');
return;
}
// Is the user id and password set?
if (!isPostRequestParameterSet(('primera_nickname'))) {
// Nothing entered in Primus nickname
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_EMPTY_USERNAME'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
} elseif (!isPostRequestParameterSet(('primera_password'))) {
// Nothing entered in Primera password
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_EMPTY_PASSWORD'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
} elseif (!isPostRequestParameterSet(('amount'))) {
// Nothing entered in amount
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_EMPTY_AMOUNT'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_AMOUNT--}');
} elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {
// Only numbers in amount!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_INVALID_AMOUNT'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_INVALID_AMOUNT--}');
} elseif (postRequestParameter('amount') < getConfig('primera_min_payout')) {
// Not enougth entered!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_AMOUNT_SMALLER_MIN'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_AMOUNT_SMALLER_MIN--}');
} elseif (postRequestParameter('amount') > $points) {
// Not enougth points left!
loadTemplate('admin_settings_saved', false, sprintf(getMessage('MEMBER_PRIMERA_PAYOUT_POINTS_DEPLETED'), bigintval(postRequestParameter('amount')), bigintval($points)));
array(postRequestParameter('primera_nickname'), getMemberId()), __FILE__, __LINE__);
// All done!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_PRIMERA_PAYOUT_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_PAYOUT_DONE--}');
return;
} elseif ((GET_PRIMERA_ERROR_CODE() == 'user_failed') || (GET_PRIMERA_ERROR_CODE() == 'own_failed') || (GET_PRIMERA_ERROR_CODE() == 'amount_failed') || (GET_PRIMERA_ERROR_CODE() == 'api_amount_failed')) {
// Wrong login data
} elseif (!isMember()) {
// User is not logged in
redirectToIndexMemberOnlyModule();
-}
-
-// Is the refback system enabled?
-if (getConfig('refback_enabled') != 'Y') {
+} elseif (getConfig('refback_enabled') != 'Y') {
// Output message
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_REFBACK_DISABLED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_DISABLED--}');
+
// Abort here
return false;
} // END - if
// Check status
if (isset($status['ok'])) {
// No message found
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_REFBACK_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_DONE--}');
} elseif (isset($status['message'])) {
// Something went wrong with error message
loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_REFBACK_ERROR_MESSAGE', $status['message']));
} else {
// No message found
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_REFBACK_ERROR_EMPTY_MESSAGE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_ERROR_EMPTY_MESSAGE--}');
}
} else {
// Percents out-of-bounds ;-)
loadTemplate('member_refback_list', false, $OUT);
} else {
// No entries
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_REFBACK_NO_ENTRIES'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_NO_ENTRIES--}');
}
// Free result
$content['refbanner_content'] = loadTemplate('member_reflinks_table', true, $OUT);
} else {
// No refbanner found!
- $content['refbanner_content'] = loadTemplate('admin_settings_saved', true, getMessage('MEMBER_NO_REFBANNER_FOUND'));
+ $content['refbanner_content'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_REFBANNER_FOUND--}');
}
// Free result
loadTemplate('member_ref_list', false, $OUT);
} else {
// No entries
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_REFBACK_NO_ENTRIES'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_NO_ENTRIES--}');
}
// Free result
$main_content['pool'] = loadTemplate('member_pool_table', true, $OUT);
} else {
// No mails in pool!
- $main_content['pool'] = loadTemplate('admin_settings_saved', true, getMessage('MEMBER_NO_MAILS_IN_POOL'));
+ $main_content['pool'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_MAILS_IN_POOL--}');
}
// Free result
$main_content['stats'] = loadTemplate('member_stats_table', true, $OUT);
} else {
// No mail orders fond
- $main_content['stats'] = loadTemplate('admin_settings_saved', true, getMessage('MEMBER_NO_MAILS_IN_STATS'));
+ $main_content['stats'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_MAILS_IN_STATS--}');
}
// Free result
// Still allowed to book more URLs?
if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
// No more URLs allowed to book!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_NO_MORE_ALLOWED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_MORE_ALLOWED--}');
} elseif ((isFormSent()) && (isPostRequestParameterSet(('limited')))) {
// Is limitation "no" and "limit" is > 0?
if ((postRequestParameter('limited') != 'Y') && ((isPostRequestParameterSet(('limit'))) && (postRequestParameter('limit') > 0)) || (!isPostRequestParameterSet(('limit')))) {
// Process the form
if (SURFBAR_MEMBER_DO_FORM(postRequestArray(), $urlArray)) {
// Action performed but shall we display it?
- if (((postRequestParameter('action') != 'edit') && (postRequestParameter('action') != "delete")) || (isPostRequestParameterSet(('execute')))) {
+ if (((postRequestParameter('action') != 'edit') && (postRequestParameter('action') != 'delete')) || (isPostRequestParameterSet('execute'))) {
// Display "action done" message if action is wether 'edit' nor 'delete' or has been executed
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_ACTION_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_ACTION_DONE--}');
} // END - if
} else {
// Something went wrong
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_ACTION_FAILED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_ACTION_FAILED--}');
}
} elseif (count($urlArray) > 0) {
// List all URLs
loadTemplate('member_surfbar_list', false, $OUT);
} else {
// No URLs booked so far
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_NO_URLS_FOUND'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_URLS_FOUND--}');
}
// [EOF]
setTheme($newTheme);
// Theme saved!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_THEME_SAVED'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_THEME_SAVED--}');
} // END - if
// Initialize array
$THEMES = array(
- 'theme_unix' => array(), // Unix name from filesystem
- 'theme_name' => array(), // Title
- 'theme_author' => array(), // Theme author's name
- 'theme_email' => array(), // Author's email address
- 'theme_url' => array(), // URL were you can download it from
- 'theme_version' => array(), // Version number of theme
+ 'theme_unix' => array(), // Unix name from filesystem
+ 'theme_name' => array(), // Title
+ 'theme_author' => array(), // Theme author's name
+ 'theme_email' => array(), // Author's email address
+ 'theme_url' => array(), // URL were you can download it from
+ 'theme_version' => array(), // Version number of theme
);
// Read directory "themes"
// No themes found???
$OUT = "<tr>
<td colspan=\"5\" class=\"bottom\" height=\"80\">
- ".loadTemplate('admin_settings_saved', true, getMessage('MEMBER_NO_THEMES_FOUND'))."
+ ".loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_THEMES_FOUND--}')."
</td>
</tr>\n";
} // END - if
sendAdminNotification($adminSubject, 'admin_transfer_points', $content);
// Transfer is completed
- loadTemplate('admin_settings_saved', false, getMessage('TRANSFER_COMPLETED') . "<br /><a href=\"{%url=modules.php?module=login&what=transfer%}\">{--TRANSFER_CONTINUE_OVERVIEW--}</a>");
+ loadTemplate('admin_settings_saved', false, '{--TRANSFER_COMPLETED--}' . '<br /><a href="{%url=modules.php?module=login&what=transfer%}">{--TRANSFER_CONTINUE_OVERVIEW--}</a>');
} elseif ($valid_code === false) {
// Invalid Touring code!
loadTemplate('admin_settings_saved', false, '<div class="member_note">{--TRANSFER_INVALID_CODE--}</div>');
SQL_FREERESULT($result);
} else {
// No one else is opt-in
- $OUT = loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_ONE_ELSE_OPT_IN'));
+ $OUT = loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_ONE_ELSE_OPT_IN--}');
$content['to_disabled'] = ' disabled="disabled"';
}
$content['captcha_code'] = '<input type="hidden" name="code_chk" value="' . $rand . '" /><input type="text" name="code" class="member_normal" size="5" maxlength="7"' . $content['to_disabled'] . ' /> ' . $img;
} else {
$code = '00000';
- $content['captcha_code'] = loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_CODE'));
+ $content['captcha_code'] = loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_CODE--}');
}
// Init points/reason
SQL_FREERESULT($result);
} else {
// Nothing for in and out
- $OUT = "<tr>
- <td colspan=\"5\" align=\"center\" class=\"bottom\">
- ".loadTemplate('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))."
+ $OUT = '<tr>
+ <td colspan="5" align="center" class="bottom">
+ ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . '
</td>
-</tr>";
+</tr>';
}
// ... and add them to a constant for the template
}
} else {
// No mails left to confirm... :)
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_NO_MAILS_TO_CONFIRM'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_MAILS_TO_CONFIRM--}');
}
// [EOF]
// Check if the admin has entered the data
if ((getConfig('wernis_api_id') == '') || (getConfig('wernis_api_md5') == '')) {
// Something important is missing...
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_API_DATA_MISSING'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_API_DATA_MISSING--}');
return;
} // END - if
// Is the user id and password set?
if (!isPostRequestParameterSet(('wernis_userid'))) {
// Nothing entered in WDS66 user id
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_EMPTY_USERNAME'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_EMPTY_USERNAME--}');
} elseif (!isPostRequestParameterSet(('wds66_password'))) {
// Nothing entered in WDS66 password
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_EMPTY_PASSWORD'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_EMPTY_PASSWORD--}');
} elseif (!isPostRequestParameterSet(('amount'))) {
// Nothing entered in amount
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_EMPTY_AMOUNT'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_EMPTY_AMOUNT--}');
} elseif (postRequestParameter('wernis_userid') != bigintval(postRequestParameter('wernis_userid'))) {
// Only numbers in account id!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_INVALID_USERNAME'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_INVALID_USERNAME');
} elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {
// Only numbers in amount!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_INVALID_AMOUNT'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_INVALID_AMOUNT--}');
} else {
// Check input data depending on the mode and execute the requested mode
switch (getRequestParameter('mode')) {
case 'withdraw': // Widthdraws WDS66 -> This exchange
if (postRequestParameter('amount') < getConfig('wernis_min_withdraw')) {
// Not enougth entered!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_WITHDRAW_AMOUNT_SMALLER_MIN'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_WITHDRAW_AMOUNT_SMALLER_MIN--}');
} else {
// All is fine here so do the withdraw
$success = WERNIS_EXECUTE_WITHDRAW(postRequestParameter('wernis_userid'), md5(postRequestParameter('wds66_password')), postRequestParameter('amount'));
array(bigintval(postRequestParameter('wernis_userid')), getMemberId()), __FILE__, __LINE__);
// All done!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_WITHDRAW_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_WITHDRAW_DONE--}');
return;
} elseif ((GET_WERNIS_ERROR_CODE() == 'user_failed') || (GET_WERNIS_ERROR_CODE() == 'own_failed') || (GET_WERNIS_ERROR_CODE() == 'amount_failed')) {
// Wrong login data
case 'payout': // Payout this exchange -> WDS66
if (postRequestParameter('amount') < getConfig('wernis_min_payout')) {
// Not enougth entered!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_PAYOUT_AMOUNT_SMALLER_MIN'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_PAYOUT_AMOUNT_SMALLER_MIN--}');
} elseif (postRequestParameter('amount') > $points) {
// Not enougth points left!
loadTemplate('admin_settings_saved', false, sprintf(getMessage('MEMBER_WERNIS_PAYOUT_POINTS_DEPLETED'), bigintval(postRequestParameter('amount')), bigintval($points)));
array(bigintval(postRequestParameter('wernis_userid')), getMemberId()), __FILE__, __LINE__);
// All done!
- loadTemplate('admin_settings_saved', false, getMessage('MEMBER_WERNIS_PAYOUT_DONE'));
+ loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_PAYOUT_DONE--}');
return;
} elseif ((GET_WERNIS_ERROR_CODE() == 'user_failed') || (GET_WERNIS_ERROR_CODE() == 'own_failed') || (GET_WERNIS_ERROR_CODE() == 'amount_failed') || (GET_WERNIS_ERROR_CODE() == 'api_amount_failed')) {
// Wrong login data
$OUT = loadTemplate('admin_settings_saved', true, $message);
} else {
// No message generated
- $OUT = loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_MESSAGE_GENERATED'));
+ $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Init gender
$OUT = loadTemplate('admin_settings_saved', true, $message);
} else {
// No message generated
- $OUT = loadTemplate('admin_settings_saved', true, getMessage('SPONSOR_NO_MESSAGE_GENERATED'));
+ $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
}
} else {
// Make yes/no selection
// And sent it away
sendEmail($userid, getMessage('SUBJECT_DIRECT_PAYMENT'), $message);
- if (!isGetRequestParameterSet('mid')) loadTemplate('admin_settings_saved', false, getMessage('ADMIN_POINTS_ADDED'));
+ if (!isGetRequestParameterSet('mid')) loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_ADDED--}');
}
// Maybe there's another ref?
// Update random confirmed as well?
if (isExtensionInstalledAndNewer('user', '0.3.4')) {
// Update second counter
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET rand_confirmed=rand_confirmed + 1 WHERE `userid`=%s LIMIT 1",
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `rand_confirmed`=`rand_confirmed` + 1 WHERE `userid`=%s LIMIT 1",
array($url_userid), __FILE__, __LINE__);
} // END - if
} // END - if
{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[new_data][position] ($content[position])
{--SPONSOR_ENTER_TAX_IDENT--}: $content[new_data][tax_ident] ($content[tax_ident])
------------------------------
-{--GUEST_GENDER--}: $content[new_data][gender] ($content[gender])
+{--GUEST_GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%})
{--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
{--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1])
{--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2])
{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[new_data][position] ($content[position])
{--SPONSOR_ENTER_TAX_IDENT--}: $content[new_data][tax_ident] ($content[tax_ident])
------------------------------
-{--GUEST_GENDER--}: $content[new_data][gender] ($content[gender])
+{--GUEST_GENDER--}: {%pipe,translateGender=$content[new_data][gender]%} ({%pipe,translateGender=$content[gender]%})
{--SURNAME_FAMILY--}: $content[new_data][surname] $content[new_data][family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
{--SPONSOR_EMAIL_STREET_NR1--}: $content[new_data][street_nr1] ($content[street_nr1])
{--SPONSOR_EMAIL_STREET_NR2--}: $content[new_data][street_nr2] ($content[street_nr2])
Hier sind alle neuen (und in Klammern alten) Daten:
------------------------------
-{--SPONSOR_RECEIVE_WARNINGS--}: $content[new_data][receive] ($content[receive])
-{--SPONSOR_WARNING_INTERVAL--}: $content[new_data][interval] ($content[interval])
+{--SPONSOR_RECEIVE_WARNINGS--}: {%pipe,translateYesNo=$content[new_data][receive_warnings]%} ({%pipe,translateYesNo=$content[receive_warnings]%})
+{--SPONSOR_WARNING_INTERVAL--}: {%pipe,translateYesNo=$content[new_data][warning_interval]%} ({%pipe,translateYesNo=$content[warning_interval]%})
------------------------------
------------------------------
-Hallo $DATA[gender] $DATA[surname] $DATA[family],
+Hallo $content[gender] $content[surname] $content[family],
Sie haben heute Ihre Daten geaendert.
Hier sind alle neuen (und in Klammern alten) Daten:
------------------------------
-{--SPONSOR_ENTER_COMPANY_TITLE--}: $DATA[company] ({%sponsor,company=$userid%})
-{--SPONSOR_ENTER_COMPANY_POSITION--}: $DATA[position] ({%sponsor,position=$userid%})
-{--SPONSOR_ENTER_TAX_IDENT--}: $DATA[tax_ident] ({%sponsor,tax_ident=$userid%})
+{--SPONSOR_ENTER_COMPANY_TITLE--}: $content[company] ({%sponsor,company=$userid%})
+{--SPONSOR_ENTER_COMPANY_POSITION--}: $content[position] ({%sponsor,position=$userid%})
+{--SPONSOR_ENTER_TAX_IDENT--}: $content[tax_ident] ({%sponsor,tax_ident=$userid%})
------------------------------
-{--GUEST_GENDER--}: $DATA[gender] ({%sponsor,gender,translateGender=$userid%})
-{--SURNAME_FAMILY--}: $DATA[surname] $DATA[family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
-{--SPONSOR_EMAIL_STREET_NR1--}: $DATA[street_nr1] ({%sponsor,street_nr1=$userid%})
-{--SPONSOR_EMAIL_STREET_NR2--}: $DATA[street_nr2] ({%sponsor,street_nr2=$userid%})
-{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $DATA[country]-$DATA[zip] $DATA[city] ({%sponsor,country,determineCountry=$userid%}-{%sponsor,zip,bigintval=$userid%} {%sponsor,city=$userid%})
+{--GUEST_GENDER--}: $content[gender] ({%sponsor,gender,translateGender=$userid%})
+{--SURNAME_FAMILY--}: $content[surname] $content[family] ({%sponsor,surname=$userid%} {%sponsor,family=$userid%})
+{--SPONSOR_EMAIL_STREET_NR1--}: $content[street_nr1] ({%sponsor,street_nr1=$userid%})
+{--SPONSOR_EMAIL_STREET_NR2--}: $content[street_nr2] ({%sponsor,street_nr2=$userid%})
+{--SPONSOR_EMAIL_CNTRY_ZIP_CITY--}: $content[country]-$content[zip] $content[city] ({%sponsor,country,determineCountry=$userid%}-{%sponsor,zip,bigintval=$userid%} {%sponsor,city=$userid%})
------------------------------
-{--SPONSOR_ENTER_PHONE--}: $DATA[phone] ($content[phone])
-{--SPONSOR_ENTER_FAX--}: $DATA[fax] ($content[fax])
-{--SPONSOR_ENTER_CELL--}: $DATA[cell] ($content[cell])
+{--SPONSOR_ENTER_PHONE--}: $content[phone] ($content[phone])
+{--SPONSOR_ENTER_FAX--}: $content[fax] ($content[fax])
+{--SPONSOR_ENTER_CELL--}: $content[cell] ($content[cell])
------------------------------
-{--SPONSOR_ENTER_EMAIL--}: $DATA[email] ($content[email])
-{--SPONSOR_ENTER_URL--}: $DATA[url] ($content[url])
+{--SPONSOR_ENTER_EMAIL--}: $content[email] ($content[email])
+{--SPONSOR_ENTER_URL--}: $content[url] ($content[url])
------------------------------
Das Passwort wurde Ihnen aus Sicherheitsgruenden nicht mitgesendet.
-Hallo $DATA[gender] $DATA[surname] $DATA[family],
+Hallo $content[gender] $content[surname] $content[family],
Sie haben heute Ihre Email-Adresse geaendert. Ihr Account wurde somit temporaer gesperrt. Sie können es nun mit dem folgenden Link wieder freigeben:
Hier sind alle neuen (und in Klammern alten) Daten:
------------------------------
-{--GUEST_SPONSOR_RECEIVE_WARNINGS--}: $DATA[receive] ($content[receive])
-{--SPONSOR_WARNING_INTERVAL--}: $DATA[interval] ($content[interval])
+{--GUEST_SPONSOR_RECEIVE_WARNINGS--}: {%pipe,translateYesNo=$content[new_content][receive_warnings]%} ({%pipe,translateYesNo=$content[receive_warnings]%})
+{--SPONSOR_WARNING_INTERVAL--}: {%pipe,translateYesNo=$content[new_content][warning_interval]%} ({%pipe,translateYesNo=$content[warning_interval]%})
------------------------------
Das Passwort wurde Ihnen aus Sicherheitsgruenden nicht mitgesendet.
<tr>
<td width="320" class="bottom right" align="right">{--ADMIN_CACHE_DB_HITS--}</td>
<td width="100" class="bottom" style="padding-right: 2px" align="right">
- $content[db_hits]
+ {%pipe,translateComma=$content[db_hits]%}
</td>
</tr>
<tr>
<td width="320" class="bottom right" align="right">{--ADMIN_CACHE_HITS--}</td>
<td width="100" class="bottom" style="padding-right: 2px" align="right">
- +$content[cache_hits]
+ +{%pipe,translateComma=$content[cache_hits]%}
</td>
</tr>
<tr>
<td width="320" class="bottom right" align="right">{--ADMIN_TOTAL_HITS--}</td>
<td width="100" class="bottom" style="padding-right: 2px" align="right">
- =$content[total_hits]
+ ={%pipe,translateComma=$content[total_hits]%}
</td>
</tr>
<tr>
- <td width="320" class="admin_footer right" align="right"><strong>{--ADMIN_CACHE_PERCENTS--}</strong></td>
- <td width="100" class="admin_footer" style="padding-right: 2px" align="center">
- <strong>$content[cache_perc]%</strong>
+ <td width="320" class="admin_footer right">
+ <div align="right" style="padding-right: 2px">
+ <strong>{--ADMIN_CACHE_PERCENTS--}</strong>
+ </div>
+ </td>
+ <td width="100" class="admin_footer">
+ <div align="right" style="padding-right: 2px">
+ <strong>{%pipe,translateComma=$content[cache_perc]%}%</strong>
+ </div>
</td>
</tr>
</table>
{--ADMIN_DOUBLER_CHARGE--}:
</td>
<td width="195" style="padding-left: 5px">
- <input type="text" name="doubler_charge" class="admin_normal" size="5" maxlength="10" value="$content[charge]" /> (%)
+ <input type="text" name="doubler_charge" class="admin_normal" size="5" maxlength="10" value="{%config,translateComma=doubler_charge%}" /> (%)
</td>
</tr>
<tr>
{--ADMIN_DOUBLER_REFERAL--}:
</td>
<td width="195" style="padding-left: 5px">
- <input type="text" name="doubler_ref" class="admin_normal" size="5" maxlength="10" value="$content[referal]" /> (%)
+ <input type="text" name="doubler_ref" class="admin_normal" size="5" maxlength="10" value="{%config,translateComma=doubler_ref%}" /> (%)
</td>
</tr>
<tr>
{--ADMIN_DOUBLER_MINIMUM--}:
</td>
<td width="195" style="padding-left: 5px">
- <input type="text" name="doubler_min" class="admin_normal" size="9" maxlength="20" value="$content[minimum]" /> ({?POINTS?})
+ <input type="text" name="doubler_min" class="admin_normal" size="9" maxlength="20" value="{%config,translateComma=doubler_min%}" /> ({?POINTS?})
</td>
</tr>
<tr>
{--ADMIN_DOUBLER_MAXIMUM--}:
</td>
<td width="195" style="padding-left: 5px">
- <input type="text" name="doubler_max" class="admin_normal" size="9" maxlength="20" value="$content[maximum]" /> ({?POINTS?})
+ <input type="text" name="doubler_max" class="admin_normal" size="9" maxlength="20" value="{%config,translateComma=doubler_max%}" /> ({?POINTS?})
</td>
</tr>
<tr>
{--ADMIN_DOUBLER_LEFT--}:
</td>
<td width="195" style="padding-left: 5px">
- <input type="text" name="doubler_left" class="admin_normal" size="9" maxlength="20" value="$content[left]"> ({?POINTS?})
+ <input type="text" name="doubler_left" class="admin_normal" size="9" maxlength="20" value="{%config,translateComma=doubler_left%}"> ({?POINTS?})
</td>
</tr>
<tr>
{--SPONSOR_WARNING_INTERVAL--}:
</td>
<td class="bottom">
- $content[interval]
+ $content[warning_interval]
</td>
</tr>
<tr>
$content[description]
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
- $content[fee] {?POINTS?}
+ {%pipe,translateComma=$content[account_fee]%} {?POINTS?}
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
- $content[plus]%
+ {%pipe,translateComma=$content[interest_plus]%}%
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
- $content[minus]%
+ {%pipe,translateComma=$content[interest_minus]%}%
</td>
<td align="center" class="switch_sw$content[sw] bottom">
- $content[active]
+ {%pipe,translateComma=$content[package_active]%}
</td>
</tr>
<input type="checkbox" title="{--ID_SELECT--} $content[id]" name="id[$content[id]]" class="admin_normal" value="1" />
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
- <a href="$content[email]">$content[gender] $content[surname] $content[family]</a>
+ <a href="$content[email]">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</a>
</td>
<td align="center" class="switch_sw$content[sw] bottom right">
- $content[remote]
+ $content[remote_addr]
</td>
<td align="center" class="switch_sw$content[sw] bottom">
- $content[created]
+ $content[sponsor_created]
</td>
</tr>
</td>
<td align="center" class="top right">
{--TOTAL_POINTS--}:<br />
- <strong>$content[total]</strong>
+ <strong>{%pipe,translateComma=$content[total]%}</strong>
</td>
<td align="center" class="top right">
{--TOTAL_REFERALS--}:<br />
</td>
<td align="center" class="top right">
{--LOCKED_POINTS--}:<br />
- <strong>$content[locked]</strong>
+ <strong>{%pipe,translateComma=$content[locked]%}</strong>
</td>
<td align="center" class="top right">
{--LAST_UPDATE--}:<br />
</td>
<td align="center" class="top right">
{--CLICK_RATE--}:<br />
- <strong>$content[click_rate]%</strong>
+ <strong>{%pipe,translateComma=$content[click_rate]%}%</strong>
</td>
<td align="center" class="top">
{--EMAILS_RECEIVED--}:<br />
</td>
<td align="center" class="top right">
{--RAND_CONFIRMED--}:<br />
- <strong>$content[rand_confirmed]</strong>
+ <strong>{%pipe,translateComma=$content[rand_confirmed]%}</strong>
</td>
<td align="center" class="top right">
- {--_UNUSED--}:<br />
- <strong>---</strong>
+ {--LOCK_TIMESTAMP--}:<br />
+ <strong>$content[lock_timestamp]</strong>
</td>
<td align="center" class="top">
{--LOCK_REASON--}:<br />
<strong>$content[lock_reason]</strong>
</td>
</tr>
+ <!--
<tr>
<td align="center" class="top right">
- {--LOCK_TIMESTAMP--}:<br />
- <strong>$content[lock_timestamp]</strong>
+ {--_UNUSED--}:<br />
+ <strong>---</strong>
</td>
<td align="center" class="top right">
{--_UNUSED--}:<br />
<strong>---</strong>
</td>
</tr>
+ //-->
<tr>
<td align="center" class="admin_footer top" colspan="4">
<div>
</table>
</form>
<br />
- {%message,DOUBLER_ALREADY_PAYED=$content[total]%}<br />
- {--DOUBLER_POINTS_LEFT_1--} <strong>$content[left] {?POINTS?}</strong> {--DOUBLER_POINTS_LEFT_2--}<br />
- {--DOUBLER_USAGE_COUNTER_1--} <strong>{?doubler_counter?}</strong> {--DOUBLER_USAGE_COUNTER_2--}<br />
+ {%message,DOUBLER_ALREADY_PAYED={%config,translateComma=doubler_points%}%}<br />
+ {--DOUBLER_POINTS_LEFT_1--} <strong>{%pipe,getDoublerTotalPointsLeft,translateComma%} {?POINTS?}</strong> {--DOUBLER_POINTS_LEFT_2--}<br />
+ {--DOUBLER_USAGE_COUNTER_1--} <strong>{%config,translateComma=doubler_counter%}</strong> {--DOUBLER_USAGE_COUNTER_2--}<br />
<br />
- {--DOUBLER_MINIMUM_IS--} <strong>$content[min] {?POINTS?}</strong>
- {--DOUBLER_MAXIMUM_IS--} <strong>$content[max] {?POINTS?}</strong><br />
+ {--DOUBLER_MINIMUM_IS--} <strong>{%config,translateComma=doubler_min%} {?POINTS?}</strong>
+ {--DOUBLER_MAXIMUM_IS--} <strong>{%config,translateComma=doubler_max%} {?POINTS?}</strong><br />
{--DOUBLER_HAVE_FUN--}<br />
<br />
$content[payout_time]<br />
<br />
- {--DOUBLER_POINTS_1--} <strong>$content[charge]%</strong>
+ {--DOUBLER_POINTS_1--} <strong>{%config,translateComma=doubler_charge%}%</strong>
{--DOUBLER_POINTS_2--}<br />
<br />
{--DOUBLER_EXAMPLE_1--} <strong>500 {?POINTS?}</strong> »»
<br />
<div class="big">{--DOUBLER_FULL_PAYOUT--}</div><br />
<br />
- {--DOUBLER_REFERAL_1--} <strong>$content[ref]%</strong>
+ {--DOUBLER_REFERAL_1--} <strong>{%config,translateComma=doubler_ref%}%</strong>
{--DOUBLER_REFERAL_2--} {--DOUBLER_REFERAL_3--}
{--DOUBLER_REFERAL_4--} {--DOUBLER_REFERAL_5--} <strong>100
{?POINTS?}</strong> {--DOUBLER_REFERAL_6--} <strong>100 {?POINTS?}</strong>
<tr>
<td class="doubler_main bottom" style="padding-left: 0px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px">
<ul>
- <li>{--DOUBLER_MINIMUM_IS--} <strong>$content[min] {?POINTS?}</strong> {--DOUBLER_MAXIMUM_IS--} <strong>$content[max] {?POINTS?}</strong></li>
- <li>{%message,DOUBLER_ALREADY_PAYED=$content[total]%}</li>
- <li>{--DOUBLER_POINTS_LEFT_1--} <strong>$content[left] {?POINTS?}</strong> {--DOUBLER_POINTS_LEFT_2--}</li>
- <li>{--DOUBLER_USAGE_COUNTER_1--} <strong>{?doubler_counter?}</strong> {--DOUBLER_USAGE_COUNTER_2--}</li>
+ <li>{--DOUBLER_MINIMUM_IS--} <strong>{%config,translateComma=doubler_min%} {?POINTS?}</strong> {--DOUBLER_MAXIMUM_IS--} <strong>{%config,translateComma=doubler_max%} {?POINTS?}</strong></li>
+ <li>{%message,DOUBLER_ALREADY_PAYED={%config,translateComma=doubler_points%}%}</li>
+ <li>{--DOUBLER_POINTS_LEFT_1--} <strong>{%pipe,getDoublerTotalPointsLeft,translateComma%} {?POINTS?}</strong> {--DOUBLER_POINTS_LEFT_2--}</li>
+ <li>{--DOUBLER_USAGE_COUNTER_1--} <strong>{%config,translateComma=doubler_counter%}</strong> {--DOUBLER_USAGE_COUNTER_2--}</li>
<li>$content[payout_time]</li>
<li><strong>{--DOUBLER_FULL_PAYOUT--}</strong></li>
- <li>{--DOUBLER_POINTS_1--} <strong>$content[charge]%</strong> {--DOUBLER_POINTS_2--}</li>
+ <li>{--DOUBLER_POINTS_1--} <strong>{%config,translateComma=doubler_charge%}%</strong> {--DOUBLER_POINTS_2--}</li>
<li>{--DOUBLER_EXAMPLE_1--} <strong>500 {?POINTS?}</strong> »» {--DOUBLER_EXAMPLE_2--} <strong>1000 {?POINTS?}</strong>{--DOUBLER_EXAMPLE_3--}</li>
- <li>{--DOUBLER_REFERAL_1--} <strong>$content[ref]%</strong> {--DOUBLER_REFERAL_2--} {--DOUBLER_REFERAL_3--} {--DOUBLER_REFERAL_4--}
+ <li>{--DOUBLER_REFERAL_1--} <strong>{%config,translateComma=doubler_ref%}]%</strong> {--DOUBLER_REFERAL_2--} {--DOUBLER_REFERAL_3--} {--DOUBLER_REFERAL_4--}
<li>{--DOUBLER_REFERAL_5--} <strong>100 {?POINTS?}</strong> {--DOUBLER_REFERAL_6--} <strong>100 {?POINTS?}</strong> {--DOUBLER_REFERAL_8--} <strong>300 {?POINTS?}</strong> {--DOUBLER_REFERAL_8--}</li>
<li>{--DOUBLER_REFERAL_LINK--}</li>
- <li>{--DOUBLER_TIMEOUT_1--} <strong>$content[timeout_mark]</strong> {--DOUBLER_TIMEOUT_2--}</li>
+ <li>{--DOUBLER_TIMEOUT_1--} <strong>{%config,createFancyTime=doubler_timeout%}</strong> {--DOUBLER_TIMEOUT_2--}</li>
<li>{--DOUBLER_HAVE_FUN--}</li>
<li><strong><a href="{?URL?}/doubler.php">{--DOUBLER_WANNA_TRY--}</a></strong></li>
</ul>
<tr>
<td class="doubler_main" style="padding-left: 0px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px">
<ul>
- <li>{--DOUBLER_NOT_YET_REGISTERED--} <a href="{?URL?}/ref.php?refid=$content[refid]">{--DOUBLER_REGISTER_NOW--}</a></li>
- <li>{--DOUBLER_YOUR_ADVERTISING_HERE--} <a href="{%url=modules.php?module=index&what=impressum&refid=$content[refid]%}">{--DOUBLER_CONTACT_US--}</a></li>
+ <li>{--DOUBLER_NOT_YET_REGISTERED--} <a href="{?URL?}/ref.php?refid={%pipe,determineReferalId%}">{--DOUBLER_REGISTER_NOW--}</a></li>
+ <li>{--DOUBLER_YOUR_ADVERTISING_HERE--} <a href="{%url=modules.php?module=index&what=impressum&refid={%pipe,determineReferalId%}%}">{--DOUBLER_CONTACT_US--}</a></li>
</ul>
</td>
</tr>
<div class="big">
{--DOUBLER_NEXT_PAYOUT--}:</div>
<br />
- $content[next_table]
+ {%pipe,generateDoublerTable%}
</div>
</div>
<div>
- <strong><a target="_blank" title="Benutzen Sie diesen Link zum Verdoppeln!" href="{?URL?}/doubler.php?refid=$content[userid]%}">{?URL?}/doubler.php?refid=$content[userid]</a></strong>
+ <strong><a target="_blank" title="Benutzen Sie diesen Link zum Verdoppeln!" href="{?URL?}/doubler.php?refid={%pipe,getMemberId%}%}">{?URL?}/doubler.php?refid={%pipe,getMemberId%}</a></strong>
</div>
<div>
- <strong>Tipp:</strong> Nutzen Sie diesen zum Werben unseres {?mt_word2?}, um die <strong>$content[ref]%</strong> Referal-Vergütung zu erhalten!
+ <strong>Tipp:</strong> Nutzen Sie diesen zum Werben unseres {?mt_word2?}, um die <strong>{%config,translateComma=doubler_ref%}%</strong> Referal-Vergütung zu erhalten!
</div>
<div class="big">{--DOUBLER_MEMBER_ALREADY_PAYOUT--}:</div>
$content[payout_history]
<div class="big">{--DOUBLER_MEMBER_NEXT_PAYOUT--}:</div>
- $content[next_table]
+ {%pipe,getMemberId,generateDoublerTable%}
<div class="big">{--DOUBLER_MEMBER_REF_PAYOUT--}:</div>
$content[payout_ref]
<ul>
<li>{--DOUBLER_MINIMUM_IS--} <strong>{%config,translateComma=doubler_min%} {?POINTS?}</strong> {--DOUBLER_MAXIMUM_IS--} <strong>{%config,translateComma=doubler_max%} {?POINTS?}</strong></li>
<li>{%message,MEMBER_DOUBLER_ALREADY_PAYED%}</li>
- <li>{--DOUBLER_POINTS_LEFT_1--} <strong>$content[left] {?POINTS?}</strong> {--DOUBLER_POINTS_LEFT_2--}</li>
- <li>{--DOUBLER_USAGE_COUNTER_1--} <strong>{?doubler_counter?}</strong> {--DOUBLER_USAGE_COUNTER_2--}</li>
+ <li>{--DOUBLER_POINTS_LEFT_1--} <strong>{%pipe,getDoublerTotalPointsLeft,translateComma%} {?POINTS?}</strong> {--DOUBLER_POINTS_LEFT_2--}</li>
+ <li>{--DOUBLER_USAGE_COUNTER_1--} <strong>{%config,translateComma=doubler_counter%}</strong> {--DOUBLER_USAGE_COUNTER_2--}</li>
<li>$content[payout_time]</li>
<li><strong>{--DOUBLER_FULL_PAYOUT--}</strong></li>
- <li>{--DOUBLER_POINTS_1--} <strong>$content[charge]%</strong> {--DOUBLER_POINTS_2--}</li>
+ <li>{--DOUBLER_POINTS_1--} <strong>{%config,translateComma=doubler_charge%}%</strong> {--DOUBLER_POINTS_2--}</li>
<li>{--DOUBLER_EXAMPLE_1--} <strong>500 {?POINTS?}</strong> »» {--DOUBLER_EXAMPLE_2--} <strong>1000 {?POINTS?}</strong>{--DOUBLER_EXAMPLE_3--}</li>
- <li>{--DOUBLER_REFERAL_1--} <strong>$content[ref]%</strong> {--DOUBLER_REFERAL_2--} {--DOUBLER_REFERAL_3--} {--DOUBLER_REFERAL_4--}</li>
+ <li>{--DOUBLER_REFERAL_1--} <strong>{%config,translateComma=doubler_ref%}%</strong> {--DOUBLER_REFERAL_2--} {--DOUBLER_REFERAL_3--} {--DOUBLER_REFERAL_4--}</li>
<li>{--DOUBLER_REFERAL_5--} <strong>100 {?POINTS?}</strong> {--DOUBLER_REFERAL_6--} <strong>100 {?POINTS?}</strong> {--DOUBLER_REFERAL_8--} <strong>300 {?POINTS?}</strong> {--DOUBLER_REFERAL_8--}</li>
<li>{--DOUBLER_REFERAL_LINK--}</li>
- <li>{--DOUBLER_TIMEOUT_1--} <strong>$content[timeout_mark]</strong> {--DOUBLER_TIMEOUT_2--}</li>
+ <li>{--DOUBLER_TIMEOUT_1--} <strong>{%config,createFancyTime=doubler_timeout%}</strong> {--DOUBLER_TIMEOUT_2--}</li>
<li>{--DOUBLER_HAVE_FUN--}</li>
</ul>
</div>
<tr>
<td class="member_data bottom">{--POINTS_USED--}</td>
<td class="member_data bottom">{%user,used_points,translateComma%} {?POINTS?}</td>
- <td class="member_data bottom"></td>
+ <td class="member_data bottom"> </td>
</tr>
<tr>
<td class="member_data bottom"><strong>{--POINTS_SUM--}</strong></td>
<td class="member_data bottom">
- <strong>{%pipe,translateComma=$content[sum]%} {?POINTS?}</strong>
+ <strong>{%pipe,translateComma=$content[total_points]%} {?POINTS?}</strong>
</td>
- <td class="member_data bottom" align="center"><strong>{%pipe,translateComma=$content[tref]%}</strong></td>
+ <td class="member_data bottom" align="center"><strong>{%pipe,translateComma=$content[total_referals]%}</strong></td>
</tr>
<tr>
<td class="member_data">{--POINTS_LOCKED--}</td>
- <td class="member_data">{%pipe,translateComma=$content[tlock]%} {?POINTS?}</td>
+ <td class="member_data">{%pipe,translateComma=$content[total_locked]%} {?POINTS?}</td>
<td class="member_data">-</td>
</tr>
$content[special_rows]
</tr>
<tr>
<td class="member_data"><strong>{--BONUS_TOTAL--}</strong></td>
- <td class="member_data"><strong>{%pipe,translateComma=$content[ttotal]%} {?POINTS?}</strong></td>
+ <td class="member_data"><strong>{%pipe,translateComma=$content[total]%} {?POINTS?}</strong></td>
<td class="member_data">-</td>
</tr>