Even more rewrites to EL
authorRoland Häder <roland@mxchange.org>
Mon, 28 Jun 2010 07:57:54 +0000 (07:57 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 28 Jun 2010 07:57:54 +0000 (07:57 +0000)
26 files changed:
inc/autopurge/purge-general.php
inc/functions.php
inc/install-inc.php
inc/libs/online_functions.php
inc/libs/task_functions.php
inc/libs/yoomedia_functions.php
inc/modules/admin/what-config_session.php
inc/modules/admin/what-config_sponsor.php
inc/modules/admin/what-config_surfbar.php
inc/modules/admin/what-config_top10.php
inc/modules/guest/what-beg.php
inc/modules/guest/what-register.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/member/what-beg2.php
inc/modules/member/what-bonus.php
inc/modules/member/what-order.php
inc/reset/reset_birthday.php
ref.php
templates/de/html/admin/admin_config_session.tpl
templates/de/html/admin/admin_config_surfbar.tpl
templates/de/html/admin/admin_config_top10.tpl
templates/de/html/admin/admin_send_yoomedia.tpl
templates/de/html/guest/guest_beg.tpl
templates/de/html/guest/guest_register_refid.tpl
templates/de/html/guest/guest_register_refid_hide.tpl
templates/de/html/guest/guest_sponsor_reg.tpl

index 1de67fc62a73428196e7e1d9263ac253388fcc62..ef9343478e40b3cf8f6d6f6f58ac0adbda79610c 100644 (file)
@@ -53,14 +53,11 @@ if ((getConfig('auto_purge_active') == 'Y') && (getConfig('auto_purge') > 0)) {
        // Init SQLs
        initSqls();
 
-       // First calculate the timestamp
-       $PURGE = getConfig('auto_purge');
-
        // Init variables
        $admin_points = '0';
 
        // Then check for outdated mail order. We don't delete them just the confirmation links will be deleted.
-       $result = SQL_QUERY_ESC("SELECT
+       $result = SQL_QUERY("SELECT
        s.id, s.userid, s.pool_id, t.price
 FROM
        `{?_MYSQL_PREFIX?}_user_stats` AS s
@@ -69,10 +66,9 @@ LEFT JOIN
 ON
        s.payment_id=t.id
 WHERE
-       s.timestamp_ordered <= (UNIX_TIMESTAMP() - %s)
+       s.timestamp_ordered <= (UNIX_TIMESTAMP() - {?auto_purge?})
 ORDER BY
-       s.userid ASC",
-               array(bigintval($PURGE)), __FILE__, __LINE__);
+       s.userid ASC", __FILE__, __LINE__);
        if (SQL_NUMROWS($result) > 0) {
                // Start deleting procedure
                $userid = '0'; $points = '0';
@@ -114,8 +110,7 @@ ORDER BY
        // Is the 'bonus' extension installed and activated?
        if (isExtensionActive('bonus', true)) {
                // Check for bonus campaigns
-               $result = SQL_QUERY_ESC("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= %s ORDER BY `id` ASC",
-                       array(bigintval($PURGE)), __FILE__, __LINE__);
+               $result = SQL_QUERY("SELECT `id`, `points` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE `data_type`='SEND' AND `timestamp` <= {?auto_purge?} ORDER BY `id` ASC", __FILE__, __LINE__);
                if (SQL_NUMROWS($result) > 0) {
                        // Start deleting procedure
                        $points = '0';
index 7dfee36d0ba653e7cd9aeeef957d0f33faafcaf1..ad3b1e5f55a558e7b52a12cf33800a9cc93b3292 100644 (file)
@@ -3027,25 +3027,27 @@ function addNewBonusMail ($data, $mode = '', $output=true) {
        if (!empty($receiver)) {
                // Add bonus mail to queue
                addBonusMailToQueue(
-               $data['subject'],
-               $data['text'],
-               $receiver,
-               $data['points'],
-               $data['seconds'],
-               $data['url'],
-               $data['cat'],
-               $mode,
-               $data['receiver']
+                       $data['subject'],
+                       $data['text'],
+                       $receiver,
+                       $data['points'],
+                       $data['seconds'],
+                       $data['url'],
+                       $data['cat'],
+                       $mode,
+                       $data['receiver']
                );
 
                // Mail inserted into bonus pool
-               if ($output) loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_SEND--}');
-       } elseif ($output) {
+               if ($output === true) {
+                       loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_SEND--}');
+               } // END - if
+       } elseif ($output === true) {
                // More entered than can be reached!
                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!");
+               logDebugMessage(__FUNCTION__, __LINE__, 'cat=' . $data['cat'] . ',receiver=' . $data['receiver'] . ',data=' . base64_encode(serialize($data)) . ' More selected, than available!');
        }
 }
 
index 4f6241581430ddca19fabd62cdc820f4086ed801..137257c89eb38d47fd03b58585a54af691c593e8 100644 (file)
@@ -131,10 +131,10 @@ if ((!isInstalled()) || (!isAdminRegistered())) {
                        $content['email']      = postRequestParameter('email');
 
                        // Use default SMTP data
-                       $smtpHost  = getConfig('SMTP_HOSTNAME');
-                       $smtpUser  = getConfig('SMTP_USER');
-                       $smtpPass1 = getConfig('SMTP_PASSWORD');
-                       $smtpPass2 = getConfig('SMTP_PASSWORD');
+                       $smtpHost  = '{?SMTP_HOSTNAME');
+                       $smtpUser  = '{?SMTP_USER?}';
+                       $smtpPass1 = '{?SMTP_PASSWORD?}';
+                       $smtpPass2 = '{?SMTP_PASSWORD?}';
 
                        // Overwrite it with the data from sent (failed) form
                        if (isPostRequestParameterSet('smtp_host')) $smtpHost = postRequestParameter('smtp_host');
index 3e2cf9d02fa6137b79a5757a14abd82c8886ced7..562ff0123e6bed23cd2689ad413e10cf05a9dd63 100644 (file)
@@ -87,7 +87,7 @@ SET
        `action`='%s',
        `what`='%s',
        `userid`=%s,
-       `refid`='%s',
+       `refid`=%s,
        `is_member`='%s',
        `is_admin`='%s',
        `timestamp`=UNIX_TIMESTAMP(),
index 4b85d3da37d46554f8ee81278a61b72668b6fde8..6ba4d34649a7144958f0755bbc984058f19f7301 100644 (file)
@@ -235,14 +235,11 @@ function outputAdvancedOverview (&$result_main) {
 
        if (isExtensionActive('autopurge')) {
                // Start finding them...
-               $since = getConfig('ap_inactive_since');
                $EXCLUDE_LIST = '';
-               if (getConfig('def_refid') > 0) {
-                       $EXCLUDE_LIST = ' AND d.userid != {?def_refid?}';
-               } // END - if
 
                // Check for more extensions
                // @TODO These can be rewritten to filter
+               if (getConfig('def_refid') > 0)                $EXCLUDE_LIST .= ' AND d.userid != {?def_refid?}';
                if (isExtensionActive('beg'))                  $EXCLUDE_LIST .= ' AND d.userid != {?beg_userid?}';
                if (isExtensionActive('bonus'))                $EXCLUDE_LIST .= ' AND d.userid != {?bonus_userid?}';
                if (isExtensionActive('doubler'))              $EXCLUDE_LIST .= ' AND d.userid != {?doubler_userid?}';
@@ -258,9 +255,9 @@ FROM
        `{?_MYSQL_PREFIX?}_user_data` AS d
 WHERE
        d.`status`='CONFIRMED' AND
-       d.joined < (UNIX_TIMESTAMP() - ".$since.") AND
-       d.last_online < (UNIX_TIMESTAMP() - ".$since.") AND
-       d.ap_notified < (UNIX_TIMESTAMP() - ".$since.")
+       d.joined < (UNIX_TIMESTAMP() - {?ap_inactive_since?}) AND
+       d.last_online < (UNIX_TIMESTAMP() - {?ap_inactive_since?}) AND
+       d.ap_notified < (UNIX_TIMESTAMP() - {?ap_inactive_since?})
 ".$EXCLUDE_LIST."
 ORDER BY
        d.userid ASC");
index 83167b12750858a146374a249d2e7931f47c2be4..85ef0445f46b2719a2eefd15d3ca2d42c93b5474 100644 (file)
@@ -231,18 +231,6 @@ function YOOMEDIA_PREPARE_MAIL_DELIVERY ($data) {
        // Is the reward below one?
        if ($data['reward'] < 1) $data['reward'] = 1;
 
-       // Add website id
-       $data['sid'] = getConfig('yoomedia_sid');
-
-       // Add total receivers
-       $data['all'] = translateComma(getTotalReceivers());
-
-       // Add categories
-       $data['categories'] = generateCategoryOptionsList('normal');
-
-       // Decode entities
-       $data['text'] = decodeEntities($data['text']);
-
        // Load template
        loadTemplate('admin_send_yoomedia', false, $data);
 }
index 19c11e34f1d5a02b2ace42bc8bd8a5df870805a9..a1164b95ada838b5b818b8c256a39e880100bf61 100644 (file)
@@ -55,13 +55,8 @@ if (isFormSent()) {
                loadTemplate('admin_settings_saved', false, '{--ADMIN_SESSION_SAVE_PATH_INVALID--}');
        }
 } else {
-       // Prepare content
-       $content = array(
-               'session_save_path' => getConfig('session_save_path'),
-       );
-
        // Load template
-       loadTemplate('admin_config_session', false, $content);
+       loadTemplate('admin_config_session');
 }
 
 // [EOF]
index af8cc38325eece73841bf3518a827ef5f39996a8..feafa04655cb8845e607354ce94111fdca00ea62 100644 (file)
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
 if (isFormSent()) {
-       // Allow only direct points (non-floating)
-       setPostRequestParameter('sponsor_min_points', bigintval(postRequestParameter('sponsor_min_points')));
-       setPostRequestParameter('sponsor_ref_points', bigintval(postRequestParameter('sponsor_ref_points')));
-
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
-       // Remember config data in constants for the template
-       $content['min_points'] = getConfig('sponsor_min_points');
-       $content['ref_points'] = getConfig('sponsor_ref_points');
-
        // Load template
-       loadTemplate('admin_config_sponsor', false, $content);
+       loadTemplate('admin_config_sponsor');
 }
 
-//
+// [EOF]
 ?>
index 2d4aa106652ac9633931b16cc2073fa136f6bfdb..9824686b1b1a8cfa0ad82196413c575041bff7e6 100644 (file)
@@ -57,18 +57,12 @@ if (isFormSent()) {
 } else {
        // Prepare content
        $content = array(
-               'surfbar_static_reward'   => translateComma(getConfig('surfbar_static_reward')),
-               'surfbar_static_costs'    => translateComma(getConfig('surfbar_static_costs')),
                'surfbar_static_time'     => createTimeSelections(getConfig('surfbar_static_time')   , 'surfbar_static_time'   , 'ms' , 'left'),
                'surfbar_static_lock'     => createTimeSelections(getConfig('surfbar_static_lock')   , 'surfbar_static_lock'   , 'hm' , 'left'),
                'surfbar_restart_time'    => createTimeSelections(getConfig('surfbar_restart_time')  , 'surfbar_restart_time'  , 'ms' , 'left'),
-               'surfbar_dynamic_percent' => translateComma(getConfig('surfbar_dynamic_percent')),
-               'surfbar_max_order'       => getConfig('surfbar_max_order'),
                'surfbar_stats_reload'    => createTimeSelections(getConfig('surfbar_stats_reload')  , 'surfbar_stats_reload'  , 'ms' , 'left'),
                'surfbar_purge_deleted'   => createTimeSelections(getConfig('surfbar_purge_deleted') , 'surfbar_purge_deleted' , 'WDh', 'left'),
                'surfbar_purge_migrated'  => createTimeSelections(getConfig('surfbar_purge_migrated'), 'surfbar_purge_migrated', 'WDh', 'left'),
-               'surfbar_pause_url'       => getConfig('surfbar_pause_url'),
-               'surfbar_warn_low_points' => getConfig('surfbar_warn_low_points'),
                'surfbar_low_interval'    => createTimeSelections(getConfig('surfbar_low_interval')  , 'surfbar_low_interval'  , 'WDh', 'left'),
        );
 
@@ -82,7 +76,7 @@ if (isFormSent()) {
        // Even some more...
        foreach (array('surfbar_pay_model_static','surfbar_pay_model_dynamic','surfbar_pause_mode_internal','surfbar_pause_mode_external','surfbar_notification_mode_instant','surfbar_notification_mode_reset') as $entry) {
                $content[$entry] = '';
-       } // END - if
+       } // END - foreach
 
        // Prepare selections
        foreach (array('surfbar_pay_model','surfbar_pause_mode','surfbar_notification_mode') as $entry) {
index 585d4eb916445336e88575d798a02608ae2f5dc8..3eeb111bff45924957941de31c50d89c89e96814 100644 (file)
@@ -49,11 +49,8 @@ if (isFormSent()) {
        // Save settings
        adminSaveSettingsFromPostData();
 } else {
-       // Prepare constants for the template
-       $content['max'] = getConfig('top10_max');
-
        // Load form template
-       loadTemplate('admin_config_top10', false, $content);
+       loadTemplate('admin_config_top10');
 }
 
 // [EOF]
index 408b0fead1ae23352ddd8754d30fd81d5a57f0c7..0ea722691d92bcacf729f784d547f090b18018c7 100644 (file)
@@ -50,13 +50,6 @@ if ((!isExtensionActive('beg')) && (!isAdmin())) {
        return;
 } // END - if
 
-// Prepare constants
-$content['points']     = translateComma(getConfig('beg_points'));
-$content['points_max'] = translateComma(getConfig('beg_points_max'));
-$content['userid']     = determineReferalId();
-
-// Selection boxes are now the default
-$content['timeout'] = createFancyTime(getConfig('beg_timeout'));
 // @TODO No more needed? define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_userid_timeout')));
 
 // Load final template
index d38988eb589c61ac352094d2278b1a507ffabf2f..c712e17ca7df4edeecb36187b9d10d03c948bb16 100644 (file)
@@ -127,10 +127,10 @@ if ((isFormSent()) && (isRegistrationDataComplete())) {
        // Shall I display the refid or shall I make it editable?
        if (getConfig('display_refid') == 'Y') {
                // Load "hide" form template
-               $content['refid_content'] = loadTemplate('guest_register_refid_hide', true, determineReferalId());
+               $content['refid_content'] = loadTemplate('guest_register_refid_hide', true);
        } else {
                // Load template to enter it
-               $content['refid_content'] = loadTemplate('guest_register_refid', true, determineReferalId());
+               $content['refid_content'] = loadTemplate('guest_register_refid', true);
        }
 
        // You may want to modify the register_header.tpl.xx file and not this script when you add your scripts etc. :-)
index bdfea2200d2b7cd40cae11a013664db991ab45ea..10672fb6481a4ef995e3c25cfb56d2d2c565881f 100644 (file)
@@ -347,9 +347,6 @@ ORDER BY
                        $content['refid']       = bigintval(postRequestParameter('refid'));
                } // END - if
 
-               // Prepare referal id
-               $content['refid'] = determineReferalId();
-
                // Display registration form
                loadTemplate('guest_sponsor_reg', false, $content);
        } else {
index b6632bb791273dcd4bd802b935bdcda02500a930..c13931a6cac0846dd018d0044fc2689ec721c861 100644 (file)
@@ -53,13 +53,12 @@ if ((!isExtensionActive('beg')) && (!isAdmin())) {
 } // END - if
 
 // Autopurge installed?
-$lastOnline = "%s";
+$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 = '{?ap_inactive_since?}';
+       $lastOnline   = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
 } // END - if
 
 // Let's check if there are some points left we can 'pay'...
index 0125ce192d1327cb17828e55d3e1386545f476cf..df6251fa0959d9abdbcdb7465c92dd4d674688df 100644 (file)
@@ -71,8 +71,7 @@ if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
 $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
 
 // Let's check if there are some points left we can 'pay'...
index 77b8206c67f4883ad06e8137130a8147f5afc9bc..1e3301a93989c3eef966b2f21c417466aa8a9a93 100644 (file)
@@ -617,9 +617,9 @@ LIMIT 1",
                                        // Pre-output categories
                                        $content['category_selection'] = '';
                                        foreach ($categories['id'] as $key => $value) {
-                                               $content['category_selection'] .= "      <option value=\"".$value."\"";
+                                               $content['category_selection'] .= '      <option value="' . $value . '"';
                                                if (($OLD_ORDER) && ($content['cat_id'] == $value)) $content['category_selection'] .= ' selected="selected"';
-                                               $content['category_selection'] .= ">".$categories['name'][$key]." (".$categories['userids'][$key]." {--USER_IN_CAT--})</option>\n";
+                                               $content['category_selection'] .= '>' . $categories['name'][$key]." (".$categories['userids'][$key] . ' {--USER_IN_CAT--})</option>';
                                        } // END - foreach
 
                                        // Mail type
@@ -628,9 +628,9 @@ LIMIT 1",
                                                $P = translateComma($types[$key][1]);
                                                if (is_array($value)) {
                                                        // Output option line
-                                                       $content['type_selection'] .= "      <option value=\"".$types[$key][0]."\"";
+                                                       $content['type_selection'] .= '      <option value="' . $types[$key][0] . '"';
                                                        if (($OLD_ORDER) && ($content['payment_id'] == $types[$key][0])) $content['type_selection'] .= ' selected="selected"';
-                                                       $content['type_selection'] .= ">".$P." {--PER_MAIL--} - ".$types[$key][3]." - ".round($types[$key][2])." {--PAYMENT--}</option>\n";
+                                                       $content['type_selection'] .= '>' . $P . ' {--PER_MAIL--} - ' . $types[$key][3] . ' - ' . round($types[$key][2]) . ' {--PAYMENT--}</option>';
                                                } // END - if
                                        } // END - foreach
 
index 5dbbb34dc51517df2dbee212852431d34b6c48bf..e2a95fd4710ba79c525a817945410cca9486676c 100644 (file)
@@ -54,10 +54,9 @@ $month = date('m', time());
 $year  = date('Y', time());
 
 // Shall I include only active members?
-$add = "%s"; $value = '';
+$add = '%s'; $value = '';
 if ((getConfig('birthday_active')) && (isExtensionActive('autopurge')) && (getConfig('autopurge_inactive') == 'Y') && (getConfig('ap_inactive_since') > 0)) {
-       $add = " AND `last_online` >= (UNIX_TIMESTAMP() - %s)";
-       $value = getConfig('ap_inactive_since');
+       $add = " AND `last_online` >= (UNIX_TIMESTAMP() - {?ap_inactive_since?})";
 } // END - if
 
 // Only confirmed members shall receive birthday mails...
diff --git a/ref.php b/ref.php
index cff2ace8d92b92855c1f2b55757d2f8e208dc72c..6fd272a009afc08193a1ee0f3e968911b1235d38 100644 (file)
--- a/ref.php
+++ b/ref.php
@@ -53,7 +53,7 @@ setContentType('text/html');
 // No refid by default
 $URL = 'modules.php?module=index';
 
-if (determineReferalId() > 0) {
+if (determineReferalId() != 0) {
        // Test if nickname or numeric id
        if (isExtensionActive('nickname')) {
                // Nickname in URL, so load the id
index 630ea4b5c6a75cf3fd582e3413a082d26c342b82..58412401f3d6817f8edad804e9c19bd455cf5283 100644 (file)
@@ -11,7 +11,7 @@
                        {--ADMIN_CONFIG_SESSION_SAVE_PATH--}:<br />
                </td>
                <td>
-                       <input type="text" name="session_save_path" value="$content[session_save_path]" size="30" maxlength="255" />
+                       <input type="text" name="session_save_path" value="{?session_save_path?}" size="30" maxlength="255" />
                </td>
        </tr>
        <tr>
index 7ef573f4772bd2966a1684939014cf4f1b5ec496..ad3e78b6f910bb8e9bb0f9cb5489f36544f34162 100644 (file)
@@ -11,7 +11,7 @@
                        {--ADMIN_CONFIG_SURFBAR_STATIC_REWARD--}
                </td>
                <td width="40%">
-                       <input type="text" name="surfbar_static_reward" size="6" maxlength="20" value="$content[surfbar_static_reward]" />
+                       <input type="text" name="surfbar_static_reward" size="6" maxlength="20" value="{%config,translateComma=surfbar_static_reward%}" />
                        <span class="tiny">({?POINTS?})</span>
                </td>
        </tr>
@@ -20,7 +20,7 @@
                        {--ADMIN_CONFIG_SURFBAR_STATIC_COSTS--}
                </td>
                <td style="padding-left:5px">
-                       <input type="text" name="surfbar_static_costs" size="6" maxlength="20" value="$content[surfbar_static_costs]" />
+                       <input type="text" name="surfbar_static_costs" size="6" maxlength="20" value="{%config,translateComma=surfbar_static_costs%}" />
                        <span class="tiny">({?POINTS?})</span>
                </td>
        </tr>
@@ -45,7 +45,7 @@
                        {--ADMIN_CONFIG_SURFBAR_DYNAMIC_PERCENT--}
                </td>
                <td style="padding-left:5px">
-                       <input type="text" name="surfbar_dynamic_percent" size="6" maxlength="20" value="$content[surfbar_dynamic_percent]" />&#37;
+                       <input type="text" name="surfbar_dynamic_percent" size="6" maxlength="20" value="{%config,translateComma=surfbar_dynamic_percent%}" />&#37;
                </td>
        </tr>
        <tr>
@@ -53,7 +53,7 @@
                        {--ADMIN_CONFIG_SURFBAR_MAX_ORDER--}
                </td>
                <td style="padding-left:5px">
-                       <input type="text" name="surfbar_max_order" size="6" maxlength="20" value="$content[surfbar_max_order]" />
+                       <input type="text" name="surfbar_max_order" size="6" maxlength="20" value="{?surfbar_max_order?}" />
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_SURFBAR_PAUSE_URL--}
                </td>
                <td class="bottom" style="padding-left:5px">
-                       <input type="text" name="surfbar_pause_url" size="15" maxlength="255" value="$content[surfbar_pause_url]" />
+                       <input type="text" name="surfbar_pause_url" size="15" maxlength="255" value="{?surfbar_pause_url?}" />
                </td>
        </tr>
        <tr>
                        {--ADMIN_CONFIG_SURFBAR_WARN_LOW_POINTS--}
                </td>
                <td style="padding-left:5px">
-                       <input type="text" name="surfbar_warn_low_points" size="5" maxlength="20" value="$content[surfbar_warn_low_points]" />
+                       <input type="text" name="surfbar_warn_low_points" size="5" maxlength="20" value="{?surfbar_warn_low_points?}" />
                        <span class="tiny">({?POINTS?})</span>
                </td>
        </tr>
index 9b5d5e0fdf24f5e33658d02d935f86a6cc2efb60..4cddda77255b6f3a1173e45033b32506724dd2ec 100644 (file)
@@ -9,7 +9,7 @@
        <tr>
                <td class="bottom" align="right">{--TOP10_ADMIN_MAX_TOP10--}:</td>
                <td class="bottom">
-                       <input type="text" name="top10_max" class="admin_normal" value="$content[max]" size="4" maxlength="6" />
+                       <input type="text" name="top10_max" class="admin_normal" value="{?top10_max?}" size="4" maxlength="6" />
                </td>
        </tr>
        <tr>
index 57aaa848754615c320649c121ff090fe706abf9d..265b4c23318c8ac5d15b74e076dc952dd58ad924 100644 (file)
@@ -10,8 +10,8 @@
        <td>
                <select name="cat" size="1" class="admin_select">
                        <option value="X" disabled="disabled">{--PLEASE_SELECT--}</option>
-                       <option value="0">{--ALL_MEMBERS--} ($content[all])</option>
-                       $content[categories]
+                       <option value="0">{--ALL_MEMBERS--} ({%pipe,getTotalReceivers,translateComma%})</option>
+                       {%pipe,generateCategoryOptionsList=normal%}
                </select>
        </td>
 </tr>
 <tr>
        <td align="right" style="padding-right:5px" valign="top">{--ENTER_TEXT--}:</td>
        <td>
-               <textarea name="text" class="admin_normal" rows="8" cols="60">$content[text]</textarea>
+               <textarea name="text" class="admin_normal" rows="8" cols="60">{%pipe,decodeEntities=$content[text]%}</textarea>
        </td>
 </tr>
 <tr>
        <td align="right" style="padding-right:5px">{--MEMBER_ENTER_URL--}:</td>
        <td>
-               http://www.yoomedia.de/code/t-mail.php?id=$content[id]&amp;sid=$content[sid]
+               http://www.yoomedia.de/code/t-mail.php?id=$content[id]&amp;sid={?yoomedia_sid?}
                <input type="hidden" name="id" value="$content[id]" />
-               <input type="hidden" name="sid" value="$content[sid]" />
+               <input type="hidden" name="sid" value="{?yoomedia_sid?}" />
                <input type="hidden" name="reload" value="$content[reload]" />
        </td>
 </tr>
index a38eb5c8f92b5b52abaf2a558c49b1e15bf3f8a3..3e1d5697ddedfb73157de4d8c1daf3e084128664 100644 (file)
@@ -5,18 +5,18 @@
        </div>
        <div class="beg_msg">
                <div class="para">
-                       {--BEG_GUEST_EARN_1--} <strong>$content[points] {?POINTS?}</strong>
-                       {--BEG_GUEST_EARN_2--} <strong>$content[points_max] {?POINTS?}</strong>
+                       {--BEG_GUEST_EARN_1--} <strong>{%config,translateComma=beg_points%} {?POINTS?}</strong>
+                       {--BEG_GUEST_EARN_2--} <strong>{%config,translateComma=beg_points_max%} {?POINTS?}</strong>
                        {--BEG_GUEST_EARN_3--}
                </div>
                <div class="para">
-                       {%message,BEG_GUEST_TIMEOUT=$content[timeout]%}
+                       {%message,BEG_GUEST_TIMEOUT={%config,createFancyTime=beg_timeout%}%}
                </div>
                <div class="para" align="right">
                        {--BEG_GUEST_HAVE_FUN--}
                </div>
        </div>
        <div align="center" class="beg_msg">
-               <a href="{%url=ref.php?refid=$content[userid]%}">{--BEG_CONTINUE_REGISTER--}</a>
+               <a href="{%url=ref.php?refid={%pipe,determineReferalId%}%}">{--BEG_CONTINUE_REGISTER--}</a>
        </div>
 </div>
index a5569ef667116e3533f204d33e53e72909ac7bed..cd03109b74259596c645a7eb5464065f244b7b55 100644 (file)
@@ -3,6 +3,6 @@
                {--REFID_BY--}:
        </td>
        <td class="register_right">
-               <input type="text" name="refid" class="register_normal" size="5" maxlength="10" value="$content" />
+               <input type="text" name="refid" class="register_normal" size="5" maxlength="10" value="{%pipe,determineReferalId%}" />
        </td>
 </tr>
index d34402b0010f40689285edb911ca809c9236135b..d12812bbaa32c3a7b22b0ef68fe579f48773a575 100644 (file)
@@ -3,7 +3,7 @@
                {--REFID_BY--}:
        </td>
        <td class="register_right">
-               <strong>$content</strong>
-               <input type="hidden" name="refid" value="$content" />
+               <strong>{%pipe,determineReferalId%}</strong>
+               <input type="hidden" name="refid" value="{%pipe,determineReferalId%}" />
        </td>
 </tr>
index f1481fe93e698ceda2f92491c27e4bbfc388ef83..c6b133e5daf209a4f09a77e22e09409a8025b9a0 100644 (file)
     {--SPONSOR_REFID_WAS--}:
   </td>
   <td>
-    <strong>$content[refid]</strong>
+    <strong>{%pipe,determineReferalId%}</strong>
   </td>
 </tr>
 <tr>