]> git.mxchange.org Git - mailer.git/commitdiff
Even more rewrites to make use of the EL
authorRoland Häder <roland@mxchange.org>
Sat, 19 Jun 2010 13:20:19 +0000 (13:20 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 19 Jun 2010 13:20:19 +0000 (13:20 +0000)
23 files changed:
inc/libs/other_functions.php
inc/modules/admin/what-list_network_array_translation.php
inc/modules/admin/what-list_network_params.php
inc/modules/admin/what-list_network_translations.php
inc/modules/admin/what-list_networks.php
inc/modules/admin/what-list_payouts.php
inc/modules/admin/what-list_primera.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_surfbar_actions.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-surfbar_stats.php
inc/modules/admin/what-unlock_sponsor.php
templates/de/emails/sponsor/sponsor_ref_notify.tpl
templates/de/emails/sponsor/sponsor_unlocked.tpl
templates/de/html/admin/admin_list_payouts_row.tpl
templates/de/html/admin/admin_list_primera_row.tpl
templates/de/html/admin/admin_list_sponsor_details.tpl
templates/de/html/admin/admin_list_sponsor_row.tpl
templates/de/html/admin/admin_list_surfbar_actions_row.tpl
templates/de/html/admin/admin_other_sqls_row.tpl
templates/de/html/admin/admin_surfbar_stats_row.tpl
templates/de/html/admin/admin_surfbar_url_stats_row.tpl
templates/de/html/admin/admin_user_details.tpl

index df627d4505ebfaf48c241ba77c4b6fbe6e61f24d..811ff5fa2788a6cf5d5329f6aefd09adf2084fda 100644 (file)
@@ -50,9 +50,6 @@ function displayDebugSqls () {
                // Translate/add some data
                $content['sw']       = $SW;
                $content['i']        = $i;
-               $content['num_rows'] = translateComma($content['num_rows']);
-               $content['affected'] = translateComma($content['affected']);
-               $content['sql_str']  = secureString($content['sql_str']);
                $content['timing']   = translateComma($content['timing'] * 1000);
 
                // Load row template
index 112bf491e070e6073875acf440b95f8e11f1d175..6981e3c8cb787e29ff704e0fdcd0ccb02fa8dd1c 100644 (file)
@@ -108,7 +108,7 @@ ORDER BY
                // List all entries
                $OUT = ''; $SW = 2;
                while ($row = SQL_FETCHARRAY($result)) {
-                       // Add/translate some data
+                       // Add color switching
                        $row['sw'] = $SW;
 
                        // Add it to network if the type matches selected
index 93fcab6108ae4c74c5d6ee878a0ca9fc49007c2c..461604c52b84b3cd5ce421dd305fa57d1818db77 100644 (file)
@@ -102,7 +102,7 @@ ORDER BY
                // List all entries
                $OUT = ''; $SW = 2;
                while ($row = SQL_FETCHARRAY($result)) {
-                       // Add/translate some data
+                       // Add color switching
                        $row['sw'] = $SW;
 
                        // Add it to network if the type matches selected
index e88d8f945b3d635a91a861c73cca1bb89ab2b468..372c2ee0eeb76da766541f3c910743b1a13f3306 100644 (file)
@@ -87,7 +87,7 @@ ORDER BY
                // List all entries
                $OUT = ''; $SW = 2;
                while ($row = SQL_FETCHARRAY($result)) {
-                       // Add/translate some data
+                       // Add color switching
                        $row['sw'] = $SW;
 
                        // Add it to network if the type matches selected
index 9e59591977b017072f6a261fa2490ea8ba2d261e..fd99cc6563fadbb5aa9b37e2d217d8d98b31d330 100644 (file)
@@ -76,7 +76,7 @@ if (SQL_NUMROWS($result) > 0) {
        // List all
        $SW = 2; $OUT = '';
        while ($content = SQL_FETCHARRAY($result)) {
-               // Add/translate entries
+               // Add color switching
                $content['sw'] = $SW;
 
                // Load row template
index 9a2541368f0884aa49b4d273e7f943e4c9d0d2c5..50980e5d691de22c4f53ae5a6c9b077b75c5aacc 100644 (file)
@@ -265,16 +265,9 @@ ORDER BY
                                if (empty($content['target_bank']))    $content['target_bank']    = '---';
                        }
 
-                       // Remember data in array for the template
-                       $content = array(
-                               'sw'      => $SW,
-                               'ulink'   => generateUserProfileLink($content['userid']),
-                               'ptype'   => translateComma($content['payout_total']) . ' ' . $content['type'],
-                               'account' => $content['target_account'],
-                               'bank'    => $content['target_bank'],
-                               'tstamp'  => generateDateTime($content['payout_timestamp'], 2),
-                               'status'  => $content['status'],
-                       );
+                       // Add/Translate some data
+                       $content['sw']               = $SW;
+                       $content['payout_timestamp'] = generateDateTime($content['payout_timestamp'], 2);
 
                        // Add row and switch color
                        $OUT .= loadTemplate('admin_list_payouts_row', true, $content);
index 34610aa895eede831ce787cb9d5b2040b505afde..cb9969bc2dee77ab78b7eee076b61442dc7e3e5f 100644 (file)
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
 
 // Check for entries
-$result = SQL_QUERY("SELECT id, userid, primera_account, primera_amount, primera_timestamp, primera_type, primera_api_message, primera_api_status FROM `{?_MYSQL_PREFIX?}_user_primera` ORDER BY primera_timestamp DESC, id DESC",
-__FILE__, __LINE__);
+$result = SQL_QUERY("SELECT
+       `id`, `userid`, `primera_account`, `primera_amount`, `primera_timestamp`, `primera_type`, `primera_api_message`, `primera_api_status`
+FROM
+       `{?_MYSQL_PREFIX?}_user_primera`
+ORDER BY
+       `primera_timestamp` DESC,
+       `id` DESC",
+       __FILE__, __LINE__);
 
 // Are there some entries to display?
 if (SQL_NUMROWS($result) > 0) {
@@ -56,11 +62,7 @@ if (SQL_NUMROWS($result) > 0) {
        while ($content = SQL_FETCHARRAY($result)) {
                // Translate some data and add color
                $content['sw']                = $SW;
-               $content['link']              = generateUserProfileLink($content['userid']);
-               $content['primera_amount']    = translateComma($content['primera_amount']);
                $content['primera_timestamp'] = generateDateTime($content['primera_timestamp'], 2);
-               $content['raw_type']          = strtolower($content['primera_type']);
-               $content['primera_type']      = PRIMERA_TRANSFER_STATUS($content['primera_type']);
 
                // Fix empty message and status
                if (empty($content['primera_api_message'])) $content['primera_api_message'] = '---';
index 51d355d9993ae72532454a4a45394219e933952e..717664472904b6529c764ca9c722b57b0f3f7b49 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
@@ -60,37 +60,19 @@ WHERE `id`='%s' LIMIT 1",
                // Check if an entry is empty
                foreach ($content as $k => $v) {
                        if (empty($v)) $content[$k] = '---';
-               }
-
-               // Check for sponsor's orders (only count)
-               $result_orders = SQL_QUERY_ESC("SELECT COUNT(id) FROM `{?_MYSQL_PREFIX?}_sponsor_orders` WHERE sponsorid='%s'",
-               array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
-               list($orders) = SQL_FETCHROW($result_orders);
-               SQL_FREERESULT($result_orders);
-               if (empty($orders)) $orders = '0';
+               } // END - foreach
 
                // Prepare all data for the template
                //  Sponsor's id
-               $content['id']                = getRequestParameter('id');
-               //  Personal data
-               $content['gender']      = translateGender($content['gender']);
+               $content['id']          = getRequestParameter('id');
                //  Contact data
                $content['email_link']  = generateEmailLink($content['email'], 'sponsor_data');
-               $content['url']         = generateDerefererUrl($content['url']);
                //  Timestamps
                $content['created']     = generateDateTime($content['sponsor_created'], 2);
                $content['last_online'] = generateDateTime($content['last_online'], 2);
                $content['last_change'] = generateDateTime($content['last_change'], 2);
-               //  Sponsor points
-               $content['points_amount'] = translateComma($content['points_amount']);
-               $content['points_used']   = translateComma($content['points_used']);
-               //  Warning because low points
-               $content['receive_warnings'] = translateYesNo($content['receive_warnings']);
-               $content['warning_interval'] = createFancyTime($content['warning_interval']);
                //  Orders total
-               $content['orders']           = $orders;
-               //  Other data
-               $content['status']           = sponsorTranslateUserStatus($content['status']);
+               $content['orders']      = countSumTotalData(bigintval(getRequestParameter('id')), 'sponsor_orders', 'id', 'sponsorid', true);
 
                // Load template
                loadTemplate('admin_list_sponsor_details', false, $content);
@@ -146,19 +128,18 @@ ORDER BY
                $OUT = ''; $SW = 2;
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Transfer data to array
-                       // @TODO Rewritings: surname->surname,family->family,ip->remote_addr in template
                        $content = array(
-                               'id'      => $content['id'],
-                               'sw'      => $SW,
-                               'gender'  => translateGender($content['gender']),
-                               'surname'   => $content['surname'],
-                               'family'   => $content['family'],
-                               'email'   => generateEmailLink($content['email'], 'sponsor_data'),
-                               'status'  => sponsorTranslateUserStatus($content['status']),
-                               'created' => generateDateTime($content['sponsor_created'], 2),
-                               'last_online'    => generateDateTime($content['last_online'], 2),
-                               'points'  => translateComma($content['points_amount'] - $content['points_used']),
-                               'ip'      => $content['remote_addr'],
+                               'id'          => $content['id'],
+                               'sw'          => $SW,
+                               'gender'      => $content['gender'],
+                               'surname'     => $content['surname'],
+                               'family'      => $content['family'],
+                               'email'       => generateEmailLink($content['email'], 'sponsor_data'),
+                               'status'      => $content['status'],
+                               'created'     => generateDateTime($content['sponsor_created'], 2),
+                               'last_online' => generateDateTime($content['last_online'], 2),
+                               'points'      => translateComma($content['points_amount'] - $content['points_used']),
+                               'remote_addr' => $content['remote_addr'],
                        );
 
                        // Load row template
index 4d36b16d4e65d6b8c40d479c5ce75b7e3f4eaf70..04f45266b6eecf3305163690ecb2d85ecccbaa13 100644 (file)
@@ -63,7 +63,6 @@ if (SQL_NUMROWS($result) > 0) {
        $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // "Translate" some data
-               $content['actions_status'] = translateSurfbarUrlStatus($content['actions_status']);
                $content['actions_action'] = getMessage(sprintf("MEMBER_SURFBAR_ACTION_%s_SUBMIT", $content['actions_action']));
 
                // New status set?
index b27461d4645e9e5c50346d5ac6b5fc11ffae6cc7..ea74ef7da46bb8f7d9477a368b7000353cf0b5e0 100644 (file)
@@ -140,11 +140,8 @@ LIMIT 1",
 
                // Prepare data for template
                $content['admin_links']       = generateMemberAdminActionLinks($userid, $content['status']);
-               $content['gender']            = translateGender($content['gender']);
                $content['email_link']        = generateEmailLink($content['email'], 'user_data');
-               $content['status']            = translateUserStatus($content['status']);
                $content['last_online']       = generateDateTime($content['last_online'], 0);
-               $content['used_points']       = translateComma($content['used_points']);
                if ($content['emails_sent'] > 0) $content['emails_sent'] = $base . '&amp;what=email_details&amp;userid=' . $userid . '%}">' . translateComma($content['emails_sent']) . '</a>]';
                $content['joined']            = generateDateTime($content['joined'], 0);
                $content['last_update']       = generateDateTime($content['last_update'], 0);
@@ -178,10 +175,6 @@ LIMIT 1",
                        $content['click_rate'] = translateComma($content['mails_confirmed'] / $content['emails_received'] * 100);
                } // END - if
 
-               // "Translate" more data
-               $content['mails_confirmed'] = translateComma($content['mails_confirmed']);
-               $content['emails_received'] = translateComma($content['emails_received']);
-
                // Is the extension 'country' installed?
                if (isExtensionActive('country')) {
                        // Then overwrite country information
index 62a5ca2c7351ab76fccdcf423746a8feaef1da99..271754365d0b49f6238e94b3eb889103e41ffa54 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
@@ -69,8 +69,6 @@ ORDER BY
                        $visits += $content['total_visits'];
 
                        // "Translate" some data
-                       $content['stats_userid'] = generateUserProfileLink($content['stats_userid']);
-                       $content['total_visits'] = translateComma($content['total_visits']);
                        $content['last_surfed']  = generateDateTime($content['last_surfed'], 2);
                        $content['sw']           = $SW;
 
@@ -112,14 +110,10 @@ ORDER BY
                $OUT = ''; $SW = 2; $urlArray = '0'; $visits = '0';
                while ($content = SQL_FETCHARRAY($result)) {
                        // Count totals
-                       $urlArray   += $content['visited_urls'];
-                       $visits += $content['total_visits'];
+                       $urlArray += $content['visited_urls'];
+                       $visits   += $content['total_visits'];
 
-                       // "Translate" some data
-                       // @TODO Can't all these translation blocks moved into templates? This code looks ugly.
-                       $content['stats_userid'] = generateUserProfileLink($content['stats_userid']);
-                       $content['visited_urls'] = translateComma($content['visited_urls']);
-                       $content['total_visits'] = translateComma($content['total_visits']);
+                       // Add color switch
                        $content['sw']           = $SW;
 
                        // Load row template
@@ -146,5 +140,5 @@ ORDER BY
 // Free result
 SQL_FREERESULT($result);
 
-//
+// [EOF]
 ?>
index 280246d77615a2d012eb2a571fde8238210c22b2..d25521cfe985c42610d529db90ff3c53bb0974ee 100644 (file)
@@ -40,7 +40,7 @@
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
 addMenuDescription('admin', __FILE__);
@@ -58,9 +58,14 @@ if (isFormSent()) {
                        );
 
                        // Load his personal data
-                       $result_main = SQL_QUERY_ESC("SELECT gender, surname, family, email, remote_addr, sponsor_created, points_amount, refid
-FROM `{?_MYSQL_PREFIX?}_sponsor_data`
-WHERE `status`='PENDING' AND id='%s' LIMIT 1",
+                       $result_main = SQL_QUERY_ESC("SELECT
+       `gender`, `surname`, `family`, `email`, `remote_addr`, `sponsor_created`, `points_amount`, `refid`
+FROM
+       `{?_MYSQL_PREFIX?}_sponsor_data`
+WHERE
+       `status`='PENDING' AND
+       `id`=%s
+LIMIT 1",
                        array($content['id']), __FILE__, __LINE__);
 
                        if (SQL_NUMROWS($result_main) == 1) {
@@ -68,14 +73,20 @@ WHERE `status`='PENDING' AND id='%s' LIMIT 1",
                                $content = SQL_FETCHARRAY($result_main);
 
                                // Check for open payments and close them
-                               $result = SQL_QUERY_ESC("SELECT so.admin_id, so.pay_count, so.pay_ordered, so.pay_status,
-sp.pay_name, sp.pay_rate, sp.pay_currency
-FROM `{?_MYSQL_PREFIX?}_sponsor_orders` AS so
-LEFT JOIN `{?_MYSQL_PREFIX?}_sponsor_paytypes` AS sp
-ON sp.id=so.payid
-WHERE so.sponsorid='%s'
-ORDER BY sp.pay_name",
-                               array($content['id']), __FILE__, __LINE__);
+                               $result = SQL_QUERY_ESC("SELECT
+       so.admin_id, so.pay_count, so.pay_ordered, so.pay_status,
+       sp.pay_name, sp.pay_rate, sp.pay_currency
+FROM
+       `{?_MYSQL_PREFIX?}_sponsor_orders` AS so
+LEFT JOIN
+       `{?_MYSQL_PREFIX?}_sponsor_paytypes` AS sp
+ON
+       sp.id=so.payid
+WHERE
+       so.sponsorid='%s'
+ORDER BY
+       sp.pay_name ASC",
+                                       array($content['id']), __FILE__, __LINE__);
                                if (SQL_NUMROWS($result) > 0) {
                                        // Payment does exist
                                        while ($content2 = SQL_FETCHARRAY($result)) {
@@ -91,10 +102,10 @@ ORDER BY sp.pay_name",
 
                                                // Transfer data to array
                                                $data = array(
-                                                       'admin_id'   => $content['email'],
-                                                       'order' => ($content['pay_count'] * $content['pay_rate']) . ' ' . $content['pay_currency'],
-                                                       'stamp' => generateDateTime($content['pay_ordered'], 2),
-                                                       'pname' => $content['pay_name'],
+                                                       'admin_id' => $content['email'],
+                                                       'order'    => ($content['pay_count'] * $content['pay_rate']) . ' ' . $content['pay_currency'],
+                                                       'stamp'    => generateDateTime($content['pay_ordered'], 2),
+                                                       'pname'    => $content['pay_name'],
                                                );
 
                                                // Load email template
@@ -113,8 +124,14 @@ ORDER BY sp.pay_name",
                        SQL_FREERESULT($result_main);
 
                        // Unlock sponsor account
-                       SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_sponsor_data` SET `status`='CONFIRMED'
-WHERE `id`='%s' AND `status`='PENDING' LIMIT 1",
+                       SQL_QUERY_ESC("UPDATE
+       `{?_MYSQL_PREFIX?}_sponsor_data`
+SET
+       `status`='CONFIRMED'
+WHERE
+       `id`=%s AND
+       `status`='PENDING'
+LIMIT 1",
                        array($content['id']), __FILE__, __LINE__);
 
                        // Update, if applyable, referal count and points
@@ -125,54 +142,49 @@ WHERE `id`='%s' AND `status`='PENDING' LIMIT 1",
 SET
        `points_amount`=`points_amount`+{?sponsor_ref_points?}, `ref_count`=`ref_count`+1
 WHERE
-       `id`='%s'
+       `id`=%s
 LIMIT 1",
                                        array(bigintval($content['refid'])), __FILE__, __LINE__);
 
                                // Whas that update fine?
                                if (SQL_AFFECTEDROWS() == 1) {
                                        // Load referal's data
-                                       $result = SQL_QUERY_ESC("SELECT id, gender, surname, family, email,
-(points_amount - points_used) AS points, receive_warnings, ref_count AS refs
-FROM `{?_MYSQL_PREFIX?}_sponsor_data`
-WHERE `id`='%s' LIMIT 1",
+                                       $result = SQL_QUERY_ESC("SELECT
+       `id`, `gender`, `surname`, `family`, `email`,
+       (`points_amount` - `points_used`) AS points,
+       `receive_warnings`, `ref_count` AS refs
+FROM
+       `{?_MYSQL_PREFIX?}_sponsor_data`
+WHERE
+       `id`=%s
+LIMIT 1",
                                        array(bigintval($content['refid'])), __FILE__, __LINE__);
                                        $REFERAL = SQL_FETCHARRAY($result);
 
                                        // Send warnings out?
                                        if ($REFERAL['receive_warnings'] == 'Y') {
-                                               // Translate some data
-                                               $REFERAL['points']     = translateComma($REFERAL['points']);
-                                               $REFERAL['ref_points'] = translateComma(getConfig('sponsor_ref_points'));
-                                               $REFERAL['gender']     = translateGender($REFERAL['gender']);
-
                                                // Send notification to referal
                                                $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);
                                                sendEmail($REFERAL['email'], getMessage('SPONSOR_REF_NOTIFY_SUBJ'), $REF_MSG);
-                                       }
+                                       } // END - if
 
                                        // Free memory
                                        SQL_FREERESULT($result);
-                               }
-                       }
+                               } // END - if
+                       } // END - if
 
                        // Transfer data to array
-                       $content['gender']   = translateGender($content['gender']);
-                       $content['sponsor']  = $content['id'];
                        $content['points']   = translateComma($content['points_amount']);
 
                        // So let's send the email away
                        $message = loadEmailTemplate('sponsor_unlocked', $content);
                        sendEmail($content['email'], getMessage('SPONSOR_UNLOCKED_SUBJ'), $message);
-               }
+               } // END - foreach
        } else {
                // Nothing selected
                loadTemplate('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_SELECTED_UNLOCK'));
        }
-
-       // Add seperator
-       outputHtml('<br />');
-}
+} // END - if
 
 // Begin listing of all pending sponsor accounts
 $result = SQL_QUERY("SELECT
@@ -204,7 +216,7 @@ if (SQL_NUMROWS($result) > 0) {
                // Load row template and switch colors
                $OUT .= loadTemplate('admin_unlock_sponsor_row', true, $content);
                $SW = 3 - $SW;
-       }
+       } // END - while
 
        // Load template
        loadTemplate('admin_unlock_sponsor', false, $OUT);
index 0501eae161770a77e9839c984fc421232f219db7..f6048435a7b139416f21d3c4f556567d6996bfac 100644 (file)
@@ -4,9 +4,11 @@ Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%s
 Ihre Sponsor-Id lautet: $content[id]
 ------------------------------
 
-Soeben haben uns einen weiteren Sponsoren gebracht! Daf&uuml;r haben wir Ihrem Sponsor-Account einmalig $content[ref_points] {?POINTS?} gutgeschrieben.
+Soeben haben uns einen weiteren Sponsoren gebracht! Daf&uuml;r haben wir Ihrem Sponsor-Account einmalig {%config,translateComma=sponsor_ref_points%} {?POINTS?} gutgeschrieben.
 
-Sie haben jetzt ein Guthaben von $content[points] {?POINTS?} und uns schon $content[refs] neue Sponsoren gebracht. Vielen Dank f&uuml;r Ihre Mitarbeit!
+Sie haben jetzt ein Guthaben von {%pipe,translateComma=$content[points]%} {?POINTS?} und uns schon $content[refs] neue Sponsoren gebracht.
+
+Vielen Dank f&uuml;r Ihre Mitarbeit!
 
 Mit freundlichen Gr&uuml;&szlig;en,
   Ihr {?MAIN_TITLE?} Team
index bf5a339c59b0c5f892a596fa63610136d9d2bbce..473b404b974376faca78b11654a7ea223fb92e27 100644 (file)
@@ -1,10 +1,10 @@
 Hallo {%sponsor,gender,translateGender=$userid%} {%sponsor,surname=$userid%} {%sponsor,family=$userid%},
 
 ------------------------------
-Ihre Sponsor-Id lautet: $content[sponsor]
+Ihre Sponsor-Id lautet: $content[id]
 ------------------------------
 
-Wir haben soeben Ihr Sponsoren-Account freigegeben! Sie k&ouml;nnen sich nun mit der Sponsor-Id und Ihrem Passwort (welches hier nicht genannt werden kann) im Sponsorenbereich einloggen und Ihre $content[points] {?POINTS?} zum Buchen von Aktionen benutzen.
+Wir haben soeben Ihr Sponsoren-Account freigegeben! Sie k&ouml;nnen sich nun mit der Sponsor-Id und Ihrem Passwort (welches hier nicht genannt werden kann) im Sponsorenbereich einloggen und Ihre {%pipe,translateComma=$content[points]%} {?POINTS?} zum Buchen von Aktionen benutzen.
 
 Hinweis:
 ------------------------------
index aa17a853cc57b851dbf7e609826ce0a907a09915..141ec93effe61bd3c7b776d680f39fd66fb1aaa5 100644 (file)
@@ -1,8 +1,8 @@
 <tr>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[ulink]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[ptype]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[account]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[bank]</td>
-       <td align="center" class="switch_sw$content[sw] bottom right">$content[tstamp]</td>
+       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
+       <td align="center" class="switch_sw$content[sw] bottom right">{%pipe,translateComma=$content[payout_total]%} $content[type]</td>
+       <td align="center" class="switch_sw$content[sw] bottom right">$content[target_account]</td>
+       <td align="center" class="switch_sw$content[sw] bottom right">$content[target_bank]</td>
+       <td align="center" class="switch_sw$content[sw] bottom right">$content[payout_timestamp]</td>
        <td align="center" class="switch_sw$content[sw] bottom">$content[status]</td>
-</tr>
\ No newline at end of file
+</tr>
index 48af8e9aee7f3da10e0c3fdf350b73b5bc78785c..d4505735c5f5e308babd4fa92258be24a924196a 100644 (file)
@@ -1,10 +1,10 @@
 <tr>
        <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[id]</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[link]</td>
+       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">{%pipe,generateUserProfileLink=$content[userid]%}</td>
        <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_account]</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_amount]</td>
+       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">{%pipe,translateComma=$content[primera_amount]%}</td>
        <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right">$content[primera_timestamp]</td>
-       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right" align="center">$content[primera_type]</td>
+       <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right" align="center">{%pipe,PRIMERA_TRANSFER_STATUS=$content[primera_type]%}</td>
        <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom right" align="center">$content[primera_api_message]</td>
        <td class="switch_sw$content[sw] primera_type_$content[raw_type] bottom" align="center">$content[primera_api_status]</td>
 </tr>
index 9033704808d88768013633d5fb057d5f02903433..acda431b678a9edd98645b46a7ee65a7b09265d7 100644 (file)
@@ -7,7 +7,7 @@
 </tr>
 <tr>
        <td align="right" class="bottom right" height="25">{--SPONSOR_ID--}:&nbsp;</td>
-       <td class="bottom">$content[id] [<strong><a href="{%url=modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]%}">$content[status]</a></strong>]</td>
+       <td class="bottom">$content[id] [<strong><a href="{%url=modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]%}">{%pipe,sponsorTranslateUserStatus=$content[status]%}</a></strong>]</td>
 </tr>
 <tr>
        <td colspan="2" align="center" class="admin_title bottom">
@@ -33,7 +33,7 @@
 </tr>
 <tr>
        <td align="right" class="bottom right">{--SURNAME_FAMILY--}:</td>
-       <td class="bottom">$content[gender] $content[surname] $content[family]</td>
+       <td class="bottom">{%pipe,translateGender=$content[gender]%} $content[surname] $content[family]</td>
 </tr>
 <tr>
        <td align="right" class="bottom right">{--SPONSOR_ENTER_STREET_NR1--}:</td>
@@ -65,7 +65,7 @@
 </tr>
 <tr>
        <td align="right" class="bottom right">{--SPONSOR_ENTER_URL--}:</td>
-       <td class="bottom">[<a href="$content[url]" target="_blank"><strong>{--ADMIN_TEST_URL--}</strong></a>]</td>
+       <td class="bottom">[<a href="{%pipe,generateDerefererUrl=$content[url]%}" target="_blank"><strong>{--ADMIN_TEST_URL--}</strong></a>]</td>
 </tr>
 <tr>
        <td colspan="2" align="center" class="admin_title bottom">
 </tr>
 <tr>
        <td align="right" class="bottom right">{--SPONSOR_RECEIVE_WARNINGS_SHORT--}:</td>
-       <td align="center" class="bottom">$content[receive_warnings]</td>
+       <td align="center" class="bottom">{%pipe,translateYesNo=$content[receive_warnings]%}</td>
 <tr>
 <tr>
        <td align="right" class="bottom right">{--SPONSOR_WARNING_INTERVAL_SHORT--}:</td>
-       <td align="center" class="bottom">$content[warning_interval]</td>
+       <td align="center" class="bottom">{%pipe,createFancyTime=$content[warning_interval]%}</td>
 <tr>
 <tr>
        <td align="right" class="bottom right">{--SPONSOR_POINTS_AMOUNT--}:</td>
-       <td align="center" class="bottom">[<a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}"><strong>$content[points_amount]</strong></a>]</td>
+       <td align="center" class="bottom">[<a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}"><strong>{%pipe,translateComma=$content[points_amount]%}</strong></a>]</td>
 </tr>
 <tr>
        <td align="right" class="bottom right">{--SPONSOR_POINTS_USED--}:</td>
-       <td align="center" class="bottom">[<a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=sub_points%}" title="{--ADMIN_SPONSOR_SUB_POINTS_LINK_TITLE--}"><strong>$content[points_used]</strong></a>]</td>
+       <td align="center" class="bottom">[<a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=sub_points%}" title="{--ADMIN_SPONSOR_SUB_POINTS_LINK_TITLE--}"><strong>{%pipe,translateComma=$content[points_used]%}</strong></a>]</td>
 </tr>
 <tr>
        <td colspan="2" align="center" class="admin_title bottom">
index 7fcfdb13d8cce1d70421d1964f6618e330755a68..f8308ed4c77d04d5bc5d4466b7cf08a785d4e6d7 100644 (file)
@@ -8,7 +8,7 @@
     [<strong><a href="{%url=modules.php?module=admin&amp;what=list_sponsor&amp;id=$content[id]%}" title="{--ADMIN_SPONSOR_DETAILS_LINK_TITLE--}">$content[id]</a></strong>]
   </td>
   <td align="center" class="switch_sw$content[sw] bottom right" width="240" colspan="2">
-    <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" width="160">
     [<strong><a href="{%url=modules.php?module=admin&amp;what=edit_sponsor&amp;id=$content[id]&amp;mode=add_points%}" title="{--ADMIN_SPONSOR_ADD_POINTS_LINK_TITLE--}">$content[points]</a></strong>]
@@ -24,7 +24,7 @@
 </tr>
 <tr>
   <td align="center" class="switch_sw$content[sw] bottom right" width="100">
-    [<strong><a href="{%url=modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]%}">$content[status]</a></strong>]
+    [<strong><a href="{%url=modules.php?module=admin&amp;what=lock_sponsor&amp;id=$content[id]%}">{%pipe,sponsorTranslateUserStatus=$content[status]%}</a></strong>]
   </td>
   <td align="center" class="switch_sw$content[sw] bottom right" width="120">
     $content[created]
@@ -33,6 +33,6 @@
     $content[last_online]
   </td>
   <td align="center" class="switch_sw$content[sw] bottom" width="160">
-    $content[ip]
+    $content[remote_addr]
   </td>
 </tr>
index afdb904efd073c320dd88a78d4e300d2f0db4186..277c2dabd928496e0fe2e4807d66993f6954ec0e 100644 (file)
@@ -3,7 +3,7 @@
                <input type="checkbox" class="admin_normal" title="{--ID_SELECT--} $content[actions_id]" name="id[$content[actions_id]]" value="1" />
        </td>
        <td align="center" class="bottom right switch_sw$content[sw]">
-               $content[actions_status]
+               {%pipe,translateSurfbarUrlStatus=$content[actions_status]%}
        </td>
        <td align="center" class="bottom right switch_sw$content[sw]">
                $content[actions_action]
index 6b482657864a40b78b4e5762309c11c060eb99e4..ebb0e92792f6348aa3ff6d84fafbd30648209739 100644 (file)
@@ -1,6 +1,6 @@
 <div id="sql_row_$content[i]" class="sql_row switch_sw$content[sw] bottom">
-       SQL-Abfrage: <span class="sql_data">$content[sql_str]</span>
-       (numRows=<span class="sql_data">$content[num_rows]</span>,affected=<span class="sql_data">$content[affected]</span>) |
+       SQL-Abfrage: <span class="sql_data">{%pipe,secureString=$content[sql_str]%}</span>
+       (numRows=<span class="sql_data">{%pipe,translateComma=$content[num_rows]%}</span>,affected=<span class="sql_data">{%pipe,translateComma=$content[affected]%}</span>) |
        Script: <span class="sql_data">$content[file]</span> |
        Zeile: <span class="sql_data">$content[line]</span> |
        Zeit: <span class="sql_data">$content[timing]ms</span>
index 6f92d20bc874adc3579f3d654c2fed787d14a397..0e864ead93757b46abf84ae38da676c1b71879f1 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td align="center" class="switch_$content[sw] bottom right">$content[stats_userid]</td>
-       <td align="center" class="switch_$content[sw] bottom right">$content[visited_urls]</td>
-       <td align="center" class="switch_$content[sw] bottom">$content[total_visits]</td>
+       <td align="center" class="switch_$content[sw] bottom right">{%pipe,generateUserProfileLink=$content[stats_userid]%}</td>
+       <td align="center" class="switch_$content[sw] bottom right">{%pipe,translateComma=$content[visited_urls]%}</td>
+       <td align="center" class="switch_$content[sw] bottom">{%pipe,translateComma=$content[total_visits]%}</td>
 </tr>
index 51a4d81575d5363b0c4854894d876ef81c6c9092..dc54b15b2b3802cdeb51a7a23eed6996b5d30efe 100644 (file)
@@ -1,5 +1,5 @@
 <tr>
-       <td align="center" class="switch_$content[sw] bottom right">[<strong>$content[url_userid]</strong>]</td>
-       <td align="center" class="switch_$content[sw] bottom right">$content[total_visits]</td>
+       <td align="center" class="switch_$content[sw] bottom right">[<strong>{%pipe,generateUserProfileLink=$content[url_userid]%}</strong>]</td>
+       <td align="center" class="switch_$content[sw] bottom right">{%pipe,translateComma=$content[total_visits]%}</td>
        <td align="center" class="switch_$content[sw] bottom">$content[last_surfed]</td>
 </tr>
index 410d777e02a8f7743e66288c631c2c03e309fe20..9d8f352196923f41d65a1043f5a9ee42dadab154 100644 (file)
@@ -7,7 +7,7 @@
        <tr>
                <td align="center" width="25%" class="top right">
                        {--GENDER--}:<br />
-                       <strong>$content[gender]</strong>
+                       <strong>{%pipe,translateGender=$content[gender]%}</strong>
                </td>
                <td align="center" width="25%" class="top right">
                        {--SURNAME--}:<br />
@@ -47,7 +47,7 @@
                </td>
                <td align="center" class="top right">
                        {--ACCOUNT_STATUS--}:<br />
-                       <strong>$content[status]</strong>
+                       <strong>{%pipe,translateUserStatus=$content[status]%}</strong>
                </td>
                <td align="center" class="top right">
                        {--RECEIVE_MAILS--}:<br />
@@ -97,7 +97,7 @@
        <tr>
                <td align="center" class="top right">
                        {--USED_POINTS--}:<br />
-                       <strong>$content[used_points]</strong>
+                       <strong>{%pipe,translateComma$content[used_points]%}</strong>
                </td>
                <td align="center" class="top right">
                        {--TOTAL_POINTS--}:<br />
                </td>
                <td align="center" class="top">
                        {--EMAILS_RECEIVED--}:<br />
-                       <strong>$content[emails_received]</strong>
+                       <strong>{%pipe,translateComma=$content[emails_received]%}</strong>
                </td>
        </tr>
        <tr>
                <td align="center" class="top right">
                        {--MAILS_CONFIRMED--}:<br />
-                       <strong>$content[mails_confirmed]</strong>
+                       <strong>{%pipe,translateComma=$content[mails_confirmed]%}</strong>
                </td>
                <td align="center" class="top right">
                        {--RAND_CONFIRMED--}:<br />