X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=2a991cdec27e5f6fa3b9f47e925b559d55e4a10e;hb=34db702d004b245e5528b0ba20c6de441f61820a;hp=63af55cd0098c1d95287ab8c3db75a41bd8c1f37;hpb=cb20090aa0558f1b74f0e9f925f29819e8bb3a45;p=mailer.git
diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php
index 63af55cd00..2a991cdec2 100644
--- a/inc/modules/member/what-surfbar_list.php
+++ b/inc/modules/member/what-surfbar_list.php
@@ -53,54 +53,44 @@ if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
} // END - if
// Load user URLs
-$URLs = SURFBAR_GET_USER_URLS();
+$urlArray = SURFBAR_GET_USER_URLS();
// Are there entries or form is submitted?
-if ((isFormSent()) && (isPostRequestParameterSet(('action'))) && (isPostRequestParameterSet('id'))) {
+if ((isFormSent()) && (isPostRequestParameterSet('action')) && (isPostRequestParameterSet('id'))) {
// Process the form
- if (SURFBAR_MEMBER_DO_FORM(postRequestArray(), $URLs)) {
+ 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($URLs) > 0) {
+} elseif (count($urlArray) > 0) {
// List all URLs
- $OUT = ''; $SW = 2;
- foreach ($URLs as $id => $content) {
+ $OUT = '';
+ foreach ($urlArray as $id => $content) {
// "Translate"/insert data
- $content['sw'] = $SW;
- $content['url'] = generateDerefererUrl($content['url']);
if ($content['views_total'] > 0) {
// Include link to stats
- $content['views_total'] = "[".translateComma($content['views_total'])."]";
- } // END - if
- $content['registered'] = generateDateTime($content['registered'], 2);
- $content['last_locked'] = generateDateTime($content['last_locked'], 2);
- $content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['status']);
- $content['status'] = translateSurfbarUrlStatus($content['status']);
- if (empty($content['lock_reason'])) {
- // Fixes some HTML problems with empty cells
- $content['lock_reason'] = '---';
+ $content['views_total'] = '[' . translateComma($content['views_total']) . ']';
} // END - if
+ $content['url_registered'] = generateDateTime($content['url_registered'], 2);
+ $content['url_last_locked'] = generateDateTime($content['url_last_locked'], 2);
+ $content['actions'] = SURFBAR_MEMBER_ACTIONS($content['id'], $content['url_status']);
// Load row template
$OUT .= loadTemplate('member_surfbar_list_row', true, $content);
-
- // Switch color
- $SW = 3 - $SW;
} // END - if
// Load main template
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]
?>