]> git.mxchange.org Git - mailer.git/commitdiff
New wrapper functions introduced, TODOs.txt updated
authorRoland Häder <roland@mxchange.org>
Mon, 7 Feb 2011 15:46:01 +0000 (15:46 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 7 Feb 2011 15:46:01 +0000 (15:46 +0000)
176 files changed:
DOCS/TODOs.txt
doubler.php
inc/extensions-functions.php
inc/functions.php
inc/install-functions.php
inc/libs/admins_functions.php
inc/libs/doubler_functions.php
inc/libs/network_functions.php
inc/libs/register_functions.php
inc/libs/sponsor_functions.php
inc/libs/user_functions.php
inc/load_config.php
inc/modules/admin.php
inc/modules/admin/action-task.php
inc/modules/admin/admin-inc.php
inc/modules/admin/overview-inc.php
inc/modules/admin/what-add_points.php
inc/modules/admin/what-add_rallye.php
inc/modules/admin/what-add_sponsor.php
inc/modules/admin/what-add_surfbar_url.php
inc/modules/admin/what-admin_add.php
inc/modules/admin/what-adminedit.php
inc/modules/admin/what-admins_add.php
inc/modules/admin/what-admins_contct.php
inc/modules/admin/what-admins_mails.php
inc/modules/admin/what-cache_stats.php
inc/modules/admin/what-chk_regs.php
inc/modules/admin/what-config_admins.php
inc/modules/admin/what-config_cats.php
inc/modules/admin/what-config_email.php
inc/modules/admin/what-config_home.php
inc/modules/admin/what-config_mods.php
inc/modules/admin/what-config_networks.php
inc/modules/admin/what-config_other.php
inc/modules/admin/what-config_payouts.php
inc/modules/admin/what-config_points.php
inc/modules/admin/what-config_primera.php
inc/modules/admin/what-config_proxy.php
inc/modules/admin/what-config_rallye_prices.php
inc/modules/admin/what-config_register.php
inc/modules/admin/what-config_session.php
inc/modules/admin/what-config_wernis.php
inc/modules/admin/what-config_yoomedia.php
inc/modules/admin/what-del_email.php
inc/modules/admin/what-del_holiday.php
inc/modules/admin/what-del_sponsor.php
inc/modules/admin/what-del_transfer.php
inc/modules/admin/what-del_user.php
inc/modules/admin/what-edit_emails.php
inc/modules/admin/what-edit_sponsor.php
inc/modules/admin/what-edit_user.php
inc/modules/admin/what-email_archiv.php
inc/modules/admin/what-email_details.php
inc/modules/admin/what-extensions.php
inc/modules/admin/what-guest_add.php
inc/modules/admin/what-guestedit.php
inc/modules/admin/what-list_autopurge.php
inc/modules/admin/what-list_bank_package.php
inc/modules/admin/what-list_beg.php
inc/modules/admin/what-list_bonus.php
inc/modules/admin/what-list_cats.php
inc/modules/admin/what-list_country.php
inc/modules/admin/what-list_holiday.php
inc/modules/admin/what-list_links.php
inc/modules/admin/what-list_network_api_translation.php
inc/modules/admin/what-list_network_params.php
inc/modules/admin/what-list_network_types.php
inc/modules/admin/what-list_networks.php
inc/modules/admin/what-list_notifications.php
inc/modules/admin/what-list_payouts.php
inc/modules/admin/what-list_primera.php
inc/modules/admin/what-list_rallyes.php
inc/modules/admin/what-list_refs.php
inc/modules/admin/what-list_sponsor.php
inc/modules/admin/what-list_sponsor_pay.php
inc/modules/admin/what-list_sponsor_pays.php
inc/modules/admin/what-list_surfbar_actions.php
inc/modules/admin/what-list_surfbar_urls.php
inc/modules/admin/what-list_task.php
inc/modules/admin/what-list_transfer.php
inc/modules/admin/what-list_unconfirmed.php
inc/modules/admin/what-list_user.php
inc/modules/admin/what-list_wernis.php
inc/modules/admin/what-list_yoomedia_tm.php
inc/modules/admin/what-lock_sponsor.php
inc/modules/admin/what-lock_user.php
inc/modules/admin/what-logs.php
inc/modules/admin/what-maintenance.php
inc/modules/admin/what-mem_add.php
inc/modules/admin/what-memedit.php
inc/modules/admin/what-overview.php
inc/modules/admin/what-payments.php
inc/modules/admin/what-refbanner.php
inc/modules/admin/what-repair_amnu.php
inc/modules/admin/what-repair_cats.php
inc/modules/admin/what-repair_gmnu.php
inc/modules/admin/what-repair_mmnu.php
inc/modules/admin/what-send_bonus.php
inc/modules/admin/what-send_newsletter.php
inc/modules/admin/what-sub_points.php
inc/modules/admin/what-surfbar_stats.php
inc/modules/admin/what-theme_edit.php
inc/modules/admin/what-theme_import.php
inc/modules/admin/what-unlock_emails.php
inc/modules/admin/what-unlock_sponsor.php
inc/modules/admin/what-unlock_surfbar_urls.php
inc/modules/admin/what-updates.php
inc/modules/admin/what-usage.php
inc/modules/admin/what-user_contct.php
inc/modules/admin/what-usr_online.php
inc/modules/chk_login.php
inc/modules/frametester.php
inc/modules/guest/action-
inc/modules/guest/action-themes.php
inc/modules/guest/what-active.php
inc/modules/guest/what-beg.php
inc/modules/guest/what-confirm.php
inc/modules/guest/what-doubler.php
inc/modules/guest/what-login.php
inc/modules/guest/what-mediadata.php
inc/modules/guest/what-rallyes.php
inc/modules/guest/what-register.php
inc/modules/guest/what-sponsor_agb.php
inc/modules/guest/what-sponsor_infos.php
inc/modules/guest/what-sponsor_login.php
inc/modules/guest/what-sponsor_reg.php
inc/modules/guest/what-stats.php
inc/modules/guest/what-top10.php
inc/modules/guest/what-wernis_portal.php
inc/modules/member/action-
inc/modules/member/action-bank.php
inc/modules/member/action-order.php
inc/modules/member/action-surfbar.php
inc/modules/member/action-themes.php
inc/modules/member/what-bank_create.php
inc/modules/member/what-bank_deposit.php
inc/modules/member/what-bank_infos.php
inc/modules/member/what-bank_output.php
inc/modules/member/what-bank_withdraw.php
inc/modules/member/what-beg.php
inc/modules/member/what-beg2.php
inc/modules/member/what-bonus.php
inc/modules/member/what-categories.php
inc/modules/member/what-doubler.php
inc/modules/member/what-holiday.php
inc/modules/member/what-html_mail.php
inc/modules/member/what-mydata.php
inc/modules/member/what-nickname.php
inc/modules/member/what-order.php
inc/modules/member/what-payout.php
inc/modules/member/what-points.php
inc/modules/member/what-primera.php
inc/modules/member/what-rallyes.php
inc/modules/member/what-refback.php
inc/modules/member/what-reflinks.php
inc/modules/member/what-reflist.php
inc/modules/member/what-sponsor_list.php
inc/modules/member/what-stats.php
inc/modules/member/what-support.php
inc/modules/member/what-surfbar_book.php
inc/modules/member/what-surfbar_list.php
inc/modules/member/what-surfbar_start.php
inc/modules/member/what-surfbar_stats.php
inc/modules/member/what-themes.php
inc/modules/member/what-transfer.php
inc/modules/member/what-unconfirmed.php
inc/modules/member/what-wernis.php
inc/modules/order.php
inc/modules/sponsor.php
inc/modules/sponsor/account.php
inc/modules/sponsor/settings.php
inc/modules/sponsor/welcome.php
inc/mysql-manager.php
inc/template-functions.php
inc/wrapper-functions.php
surfbar.php

index e8f26e225cee07c65e1a7d87f4fb2b006931bce0..aa7d5a56f147832852804a67a0b277bacd012fd9 100644 (file)
@@ -48,9 +48,9 @@
 ./inc/functions.php:1600:                      // @TODO Are these convertions still required?
 ./inc/functions.php:1618:// @TODO Rewrite this function to use readFromFile() and writeToFile()
 ./inc/functions.php:181:// @TODO Rewrite this to an extension 'smtp'
-./inc/functions.php:2191:      // @TODO Find a way to cache this
-./inc/functions.php:2292:      // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2472:      // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:2200:      // @TODO Find a way to cache this
+./inc/functions.php:2301:      // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2481:      // @TODO Rename column data_type to e.g. mail_status
 ./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
 ./inc/install-functions.php:57:        // @TODO DEACTIVATED: changeDataInInclude(getCachePath() . 'config-local.php', 'OUTPUT-MODE', "setConfigEntry('OUTPUT_MODE', '", "');", postRequestParameter('omode'), 0);
 ./inc/language/de.php:1083:    // @TODO Rewrite these two constants
 ./inc/template-functions.php:604:      // @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
 ./inc/wrapper-functions.php:130:// @TODO Implement $compress
 ./inc/wrapper-functions.php:137:// @TODO Implement $decompress
-./inc/wrapper-functions.php:489:// @TODO Do some more sanity check here
+./inc/wrapper-functions.php:507:// @TODO Do some more sanity check here
 ./mailid.php:139:                                      // @TODO Rewrite this to a filter
 ./mailid.php:96:               // @TODO Rewrite this to a filter
 ./mailid_top.php:103:          // @TODO Rewrite this to a filter
index c812709927383ceea522812e67fb677d4c8218dd..403009eb184a3b140e8a02000a1ec06889a40f2d 100644 (file)
@@ -78,7 +78,7 @@ if (isFormSent()) {
                // Is the data valid?
                if (!isUserDataValid()) {
                        // Output message that the userid is not okay
-                       loadTemplate('admin_settings_saved', false, '{--DOUBLER_USERID_INVALID--}');
+                       displayMessage('{--DOUBLER_USERID_INVALID--}');
                } // END - if
 
                // Remove any dots and unwanted chars from the points
index 432bc96d075183db30f0f7050488d6ae0a7ae780..56f624b44b5f551eb52335629ffcd4bea16c1744 100644 (file)
@@ -800,7 +800,7 @@ function addExtensionVerboseSqlTable ($title = '', $dashed = '', $switch = false
                        $OUT = loadTemplate('admin_extension_sql_table', true, $content);
                } else {
                        // No addional SQL commands to run
-                       $OUT = loadTemplate('admin_settings_saved', true, '{--ADMIN_NO_ADDITIONAL_SQLS--}');
+                       $OUT = displayMessage('{--ADMIN_NO_ADDITIONAL_SQLS--}', true);
                }
        } // END - if
 
index 1c748c4455fa419f6edf431ecba5cdd74b9fc585..bf192a5fb7917c2681401374ed201350e49e8383 100644 (file)
@@ -1523,13 +1523,13 @@ function getMessageFromErrorCode ($code) {
                        $content['timestamp'] = generateDateTime($content['timestamp'], 1);
 
                        // Calculate hours...
-                       $content['hours'] = round(getConfig('url_tlock') / 60 / 60);
+                       $content['hours'] = round(getUrlTlock() / 60 / 60);
 
                        // Minutes...
-                       $content['minutes'] = round((getConfig('url_tlock') - $content['hours'] * 60 * 60) / 60);
+                       $content['minutes'] = round((getUrlTlock() - $content['hours'] * 60 * 60) / 60);
 
                        // And seconds
-                       $content['seconds'] = round(getConfig('url_tlock') - $content['hours'] * 60 * 60 - $content['minutes'] * 60);
+                       $content['seconds'] = round(getUrlTlock() - $content['hours'] * 60 * 60 - $content['minutes'] * 60);
 
                        // Finally contruct the message
                        $message = loadTemplate('tlock_message', true, $content);
@@ -1921,11 +1921,11 @@ function addNewBonusMail ($data, $mode = '', $output = true) {
 
                // Mail inserted into bonus pool
                if ($output === true) {
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_SEND--}');
+                       displayMessage('{--ADMIN_BONUS_SEND--}');
                } // END - if
        } elseif ($output === true) {
                // More entered than can be reached!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_MORE_SELECTED--}');
+               displayMessage('{--ADMIN_MORE_SELECTED--}');
        } else {
                // Debug log
                logDebugMessage(__FUNCTION__, __LINE__, 'cat=' . $data['cat'] . ',receiver=' . $data['receiver'] . ',data=' . base64_encode(serialize($data)) . ' More selected, than available!');
index f712a9aac99ef3bf1f915182ed1bb374b51f7b48..c1375178da3afbb35d2dbbd5d13662b0674d1246 100644 (file)
@@ -104,7 +104,7 @@ function getInstallerContent () {
                $content = $GLOBALS['install_content'];
        } else {
                // Nothing found, this needs fixing
-               $content = loadTemplate('admin_settings_saved', true, '{--INSTALLER_CONTENT_404--}');
+               $content = displayMessage('{--INSTALLER_CONTENT_404--}', true);
        }
 
        // Return content
index fad8a524ed21294c0d946ca23fa6c454bbb7c1a5..1175558a7ebb152577835f2a7df5af50760ce388 100644 (file)
@@ -281,7 +281,7 @@ LIMIT 1",
 
        // Display message
        if (!empty($message)) {
-               loadTemplate('admin_settings_saved', false, $message);
+               displayMessage($message);
        } // END - if
 
        // Remove cache file
@@ -365,7 +365,7 @@ function adminsDeleteAdminAccount ($postData) {
                loadTemplate('admin_delete_admins', false, $OUT);
        } else {
                // Cannot delete last account!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_CANNOT_DELETE_LAST--}');
+               displayMessage('{--ADMIN_ADMINS_CANNOT_DELETE_LAST--}');
        }
 }
 
index eb3739887738d6ba5519def93e0950034a2e16b2..fab47f84f7b6a55e29e5a0576fbfab539e35762e 100644 (file)
@@ -112,7 +112,7 @@ LIMIT %s",
                // List no entries
                $OUT = '<tr>
   <td colspan="' . $COLS . '" align="center" class="bottom">
-    ' . loadTemplate('admin_settings_saved', true, $message) . '
+    ' . displayMessage($message, true) . '
   </td>
 </tr>';
        }
index a938ec8140b5bde2ea28640ec77833c660fb2a8e..326c48b3dc1aff46e8a4fc96bf3aae042acfc9f7 100644 (file)
@@ -977,7 +977,7 @@ function doAdminNetworkProcessChangeNetwork () {
                // Do we have updates?
                if ($updated > 0) {
                        // Updates done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_UPDATED', $updated));
+                       displayMessage(getMaskedMessage('ADMIN_NETWORK_UPDATED', $updated));
                } else {
                        // Nothing changed
                        loadTemplate('admin_settings_unsaved', false, '{--ADMIN_NETWORK_NOTHING_CHANGED--}');
@@ -1004,7 +1004,7 @@ function doAdminNetworkProcessRemoveNetwork () {
                // Do we have removes?
                if ($removed > 0) {
                        // Removals done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_REMOVED', $removed));
+                       displayMessage(getMaskedMessage('ADMIN_NETWORK_REMOVED', $removed));
                } else {
                        // Nothing removed
                        loadTemplate('admin_settings_unsaved', false, '{--ADMIN_NETWORK_NOTHING_REMOVED--}');
@@ -1097,7 +1097,7 @@ function doAdminNetworkProcessChangeNetworkType () {
                // Do we have updates?
                if ($updated > 0) {
                        // Updates done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_UPDATED', $updated));
+                       displayMessage(getMaskedMessage('ADMIN_NETWORK_TYPES_UPDATED', $updated));
                } else {
                        // Nothing changed
                        loadTemplate('admin_settings_unsaved', false, '{--ADMIN_NETWORK_TYPES_NOTHING_CHANGED--}');
@@ -1148,7 +1148,7 @@ function doAdminNetworkProcessChangeNetworkParam () {
                // Do we have updates?
                if ($updated > 0) {
                        // Updates done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_REQUEST_PARAMETER_UPDATED', $updated));
+                       displayMessage(getMaskedMessage('ADMIN_NETWORK_REQUEST_PARAMETER_UPDATED', $updated));
                } else {
                        // Nothing changed
                        loadTemplate('admin_settings_unsaved', false, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_CHANGED--}');
@@ -1175,7 +1175,7 @@ function doAdminNetworkProcessRemoveNetworkType () {
                // Do we have removes?
                if ($removed > 0) {
                        // Removals done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_REMOVED', $removed));
+                       displayMessage(getMaskedMessage('ADMIN_NETWORK_TYPES_REMOVED', $removed));
                } else {
                        // Nothing removed
                        loadTemplate('admin_settings_unsaved', false, '{--ADMIN_NETWORK_TYPES_NOTHING_REMOVED--}');
@@ -1202,7 +1202,7 @@ function doAdminNetworkProcessRemoveNetworkParam () {
                // Do we have removes?
                if ($removed > 0) {
                        // Removals done
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_REQUEST_PARAMETER_REMOVED', $removed));
+                       displayMessage(getMaskedMessage('ADMIN_NETWORK_REQUEST_PARAMETER_REMOVED', $removed));
                } else {
                        // Nothing removed
                        loadTemplate('admin_settings_unsaved', false, '{--ADMIN_NETWORK_REQUEST_PARAMETER_NOTHING_REMOVED--}');
index 4a0ddb570cb2af8e1769a1fd932b86da2213acfc..9153021f77fdfc0b26baf11027d556459c8b1048 100644 (file)
@@ -109,7 +109,7 @@ function registerGenerateCategoryTable ($mode, $return=false) {
                SQL_FREERESULT($result);
        } else {
                // No categories setted up so far...
-               $OUT .= loadTemplate('admin_settings_saved', true, '{--NO_CATEGORIES_VISIBLE--}');
+               $OUT .= displayMessage('{--NO_CATEGORIES_VISIBLE--}', true);
        }
 
        if ($return === true) {
@@ -375,7 +375,7 @@ function doRegistration () {
        // Did this work?
        if ($userid == '0') {
                // Something bad happened!
-               loadTemplate('admin_settings_saved', false, '{--USER_NOT_REGISTERED--}');
+               displayMessage('{--USER_NOT_REGISTERED--}');
 
                // Stop here
                return;
index 69f3c153418f5cb567e3f56222c1dc677e754999..b84281d7871f1098a924c8ba9108b03238e8b2f5 100644 (file)
@@ -209,7 +209,7 @@ function handleSponsorRequest ($postData, $update=false, $messageArray=array(),
                } else {
                        // Error detected
                        $message = getMessageFromIndexedArray('{--SPONSOR_DATA_NOT_SAVED--}', 'failed', $messageArray);
-                       loadTemplate('admin_settings_saved', false, $message);
+                       displayMessage($message);
                }
 
        // Always return the status
@@ -311,7 +311,7 @@ ORDER BY
                                $OUT .= loadTemplate('sponsor_action', true, $content);
                        } else {
                                // No sub menus active
-                               $OUT .= loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_SUB_MENUS_ACTIVE--}');
+                               $OUT .= displayMessage('{--SPONSOR_NO_SUB_MENUS_ACTIVE--}', true);
                        }
 
                        // Free memory
@@ -319,7 +319,7 @@ ORDER BY
                } // END - while
        } else {
                // No main menus active
-               $OUT .= loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MAIN_MENUS_ACTIVE--}');
+               $OUT .= displayMessage('{--SPONSOR_NO_MAIN_MENUS_ACTIVE--}', true);
        }
 
        // Free memory
@@ -341,7 +341,7 @@ function addSponsorContent ($what) {
                loadIncludeOnce($INC);
        } else {
                // File not found
-               $GLOBALS['sponsor_output'] .= loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_CONTENT_404', $what));
+               $GLOBALS['sponsor_output'] .= displayMessage(getMaskedMessage('SPONSOR_CONTENT_404', $what), true);
        }
 
        // Return content
index c405600bdccd6e302640225d407d07677592e8a1..fa1dbf233623e934d7bca76d7f95dff60c2dcdec 100644 (file)
@@ -457,7 +457,7 @@ function doNewUserPassword ($email, $userid) {
                        sendEmail($userid, '{--GUEST_NEW_PASSWORD--}', $message);
 
                        // Output note to user
-                       loadTemplate('admin_settings_saved', false, '{--GUEST_NEW_PASSWORD_SEND--}');
+                       displayMessage('{--GUEST_NEW_PASSWORD_SEND--}');
                } else {
                        // Account is locked or unconfirmed
                        $errorCode = generateErrorCodeFromUserStatus($status);
@@ -467,7 +467,7 @@ function doNewUserPassword ($email, $userid) {
                }
        } else {
                // id or email is wrong
-               loadTemplate('admin_settings_saved', false, '<span class="notice">{--GUEST_WRONG_ID_EMAIL--}</span>');
+               displayMessage('<span class="notice">{--GUEST_WRONG_ID_EMAIL--}</span>');
        }
 
        // Return the error code
@@ -646,7 +646,7 @@ LIMIT 1",
        }
 
        // Load template
-       loadTemplate('admin_settings_saved', false, $content['message']);
+       displayMessage($content['message']);
 }
 
 // Does resend the user's confirmation link for given email address
@@ -673,7 +673,7 @@ function doResendUserConfirmationLink ($email) {
        } // END - if
 
        // Output message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 }
 
 // Get a message (somewhat translation) from user status for confirmation link.
index 88bdeb7f7dbb2f36faeb3de66e51d3166eb66884..9cce5eac4126d8161a60aa8c8df14f80b184babe 100644 (file)
@@ -94,7 +94,7 @@ if ((empty($GLOBALS['mysql']['login'])) && (!isInstalling()) && (!isInstallation
        }
 } elseif ((!isInstalling()) && (!isInstallationPhase()) && (empty($GLOBALS['mysql']['password'])) && (getConfig('WARN_NO_PASS') == 'Y')) {
        // No database password entered
-       loadTemplate('admin_settings_saved', false, '<div class="warning">{--MAILER_WARNING--}:</div> {--WARN_NULL_PASSWORD--}');
+       displayMessage('<div class="warning">{--MAILER_WARNING--}:</div> {--WARN_NULL_PASSWORD--}');
 }
 
 // [EOF]
index ad48308d35370e76953e9e2c1d3d2fcb9fce1f46..9068e4536a9e7ec58914b57eec7af1ce20092ef4 100644 (file)
@@ -173,7 +173,7 @@ if (!isAdminRegistered()) {
                } // END - if
 
                // Output message in seperate template
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_ACCOUNT_NOT_REGISTERED_YET--}');
+               displayMessage('{--ADMIN_ACCOUNT_NOT_REGISTERED_YET--}');
 
                // Load register template
                loadTemplate('admin_reg_form', false, $content);
@@ -182,7 +182,7 @@ if (!isAdminRegistered()) {
        // Is the form submitted?
        if ((isPostRequestParameterSet('send_link')) && (isPostRequestParameterSet('email'))) {
                // Output result
-               loadTemplate('admin_settings_saved', false, sendAdminPasswordResetLink(postRequestParameter('email')));
+               displayMessage(sendAdminPasswordResetLink(postRequestParameter('email')));
        } elseif (isGetRequestParameterSet('hash')) {
                // Output form for hash validation
                loadTemplate('admin_validate_reset_hash_form', false, getRequestParameter('hash'));
@@ -202,7 +202,7 @@ if (!isAdminRegistered()) {
                        loadTemplate('admin_reset_password_form', false, $content);
                } else {
                        // Cannot validate the login data and hash
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED--}');
+                       displayMessage('{--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
@@ -211,7 +211,7 @@ if (!isAdminRegistered()) {
                        loadTemplate('admin_reset_password_done', false, doResetAdminPassword(postRequestParameter('login'), postRequestParameter('pass1')));
                } else {
                        // Validation failed
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2--}');
+                       displayMessage('{--ADMIN_VALIDATION_RESET_LOGIN_HASH_FAILED2--}');
                }
        } else {
                // Output reset password form
@@ -228,7 +228,7 @@ if (!isAdminRegistered()) {
                // Registration of first admin is done
                if (getRequestParameter('register') == 'done') {
                        // Regisration done!
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_REGISTER_DONE--}');
+                       displayMessage('{--ADMIN_REGISTER_DONE--}');
                } // END - if
        } // END - if
 
@@ -417,13 +417,13 @@ if (!isAdminRegistered()) {
 
                case '404': // Administrator login not found
                        setPostRequestParameter('ok', $ret);
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_ACCOUNT_404', getCurrentAdminId()));
+                       displayMessage(getMaskedMessage('ADMIN_ACCOUNT_404', getCurrentAdminId()));
                        destroyAdminSession();
                        break;
 
                case 'password': // Wrong password
                        setPostRequestParameter('ok', $ret);
-                       loadTemplate('admin_settings_saved', false, '{--WRONG_PASS--}');
+                       displayMessage('{--WRONG_PASS--}');
                        destroyAdminSession();
                        break;
 
index 0177bf1a87db1fedcf9c5e122255c79f4a646a23..6998ed2788246a473f57637665c4f3dc5d59b0d1 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('task')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('task'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('task'));
        return;
 } // END - if
 
index f5a70264af536ecb155eccc65ca7de42dc8de978..1d19c8f09ae30de957c68da3be4a66b2b99eab4d 100644 (file)
@@ -576,7 +576,7 @@ function adminSaveSettings (&$postData, $tableName = '_config', $whereStatement
        rebuildCache('config', 'config');
 
        // Settings saved, so display message?
-       if ($displayMessage === true) loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+       if ($displayMessage === true) displayMessage('{--SETTINGS_SAVED--}');
 
        // Return affected rows
        return $affected;
@@ -727,10 +727,10 @@ function adminChangeActivationStatus ($IDs, $table, $row, $idRow = 'id') {
                } // END - foreach
 
                // Output status
-               loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_STATUS_CHANGED'), $count, count($IDs)));
+               displayMessage(sprintf(getMessage('ADMIN_STATUS_CHANGED'), $count, count($IDs)));
        } else {
                // Nothing selected!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NOTHING_SELECTED_CHANGE--}');
+               displayMessage('{--ADMIN_NOTHING_SELECTED_CHANGE--}');
        }
 }
 
@@ -961,10 +961,10 @@ function adminDeleteEntriesConfirm ($IDs, $table, $columns = array(), $filterFun
                        // Was this fine?
                        if (SQL_AFFECTEDROWS() == count($IDs)) {
                                // All deleted
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_ENTRIES_REMOVED--}');
+                               displayMessage('{--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)));
+                               displayMessage(sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_DELETED'), SQL_AFFECTEDROWS(), count($IDs)));
                        }
                } else {
                        // List for deletion confirmation
@@ -1050,10 +1050,10 @@ function adminEditEntriesConfirm ($IDs, $table, $columns = array(), $filterFunct
                        // Was this fine?
                        if ($affected == count($IDs)) {
                                // All deleted
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_ENTRIES_EDITED--}');
+                               displayMessage('{--ADMIN_ALL_ENTRIES_EDITED--}');
                        } else {
                                // Some are still there :(
-                               loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_EDITED'), $affected, count($IDs)));
+                               displayMessage(sprintf(getMessage('ADMIN_SOME_ENTRIES_NOT_EDITED'), $affected, count($IDs)));
                        }
                } else {
                        // List for editing
@@ -1352,7 +1352,7 @@ function doVerifyExpertSettings () {
        // Output message for other status than ask/agreed
        if (($return != 'ask') && ($return != 'agreed')) {
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_EXPERT_SETTINGS_STATUS_' . strtoupper($return) . '--}');
+               displayMessage('{--ADMIN_EXPERT_SETTINGS_STATUS_' . strtoupper($return) . '--}');
        } // END - if
 
        // Return status
@@ -1484,13 +1484,13 @@ function adminProcessMenuEditForm ($type, $subMenu) {
 
                        default: // Unexpected action
                                logDebugMessage(__FILE__, __LINE__, sprintf("Unsupported action %s detected.", postRequestParameter('ok')));
-                               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNKNOWN_OKAY', postRequestParameter('ok')));
+                               displayMessage(getMaskedMessage('ADMIN_UNKNOWN_OKAY', postRequestParameter('ok')));
                                break;
                } // END - switch
        } // END - foreach
 
        // Load template
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+       displayMessage('{--SETTINGS_SAVED--}');
 }
 
 // Handle weightning
index 1fe4ddca42a233e55e6b446c5f66dcd5a0dc7a17..caa0096616c47d976a086a675609ccc771d94682 100644 (file)
@@ -205,7 +205,7 @@ LIMIT 1",
                                                // Is this non-productive?
                                                if (isExtensionProductive() === false) {
                                                        // Issue warning
-                                                       $taskData['text'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('ADMIN_EXTENSION_IS_NON_PRODUCTIVE', $ext_name)) . $taskData['text'];
+                                                       $taskData['text'] = displayMessage(getMaskedMessage('ADMIN_EXTENSION_IS_NON_PRODUCTIVE', $ext_name), true) . $taskData['text'];
                                                } // END - if
 
                                                // Set current extension name
index 54edc1b33bd3dee29e75aebc9d4cbde2ed8224ad..b33752ae4b438d3bef600075b73d5f78e304e12b 100644 (file)
@@ -82,7 +82,7 @@ if (getRequestParameter('userid') == 'all') {
                SQL_FREERESULT($result_main);
 
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_POINTS_ADDED--}');
+               displayMessage('{--ADMIN_ALL_POINTS_ADDED--}');
        } else {
                // Display form add points
                loadTemplate('admin_add_points_all');
@@ -107,7 +107,7 @@ if (getRequestParameter('userid') == 'all') {
                        $message = loadEmailTemplate('add-points', $content, bigintval(getRequestParameter('userid')));
 
                        sendEmail(bigintval(getRequestParameter('userid')), '{--ADMIN_ADD_SUBJECT--}', $message);
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_ADDED--}');
+                       displayMessage('{--ADMIN_POINTS_ADDED--}');
                } else {
                        // Prepare content
                        $content['userid'] = bigintval(getRequestParameter('userid'));
index f7ef95f333c99947615c89e286cd74c8702a987a..22bfb3beaee3a5f2e97f834bcd797d883cd12b6e 100644 (file)
@@ -76,14 +76,14 @@ VALUES (%s,'%s','%s','%s',%s,%s,'%s','%s','%s')",
                        redirectToUrl('modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye='.$id);
                } else {
                        // Problem detected...
-                       loadTemplate('admin_settings_saved', false, '{--RALLYE_PROBLEM_CREATE--}');
+                       displayMessage('{--RALLYE_PROBLEM_CREATE--}');
                }
        } else {
                // Free memory
                SQL_FREERESULT($result);
 
                // Overlapping detected
-               loadTemplate('admin_settings_saved', false, '{--RALLYE_OVERLAP_TIMES--}');
+               displayMessage('{--RALLYE_OVERLAP_TIMES--}');
        }
 } // END - if
 
index 73ac1ff90f54aaec2ea2c55cf010086d89d6f0b4..d7ee7717c2ec88010ca9007eacf98ebdb3dcc615 100644 (file)
@@ -51,7 +51,7 @@ if (isFormSent()) {
        );
 
        // Save sponsor in database
-       loadTemplate('admin_settings_saved', false, doProcessSponsorFormRequest($messageArray));
+       displayMessage(doProcessSponsorFormRequest($messageArray));
 } else {
        // Output form
        loadTemplate('admin_add_sponsor');
index 28871d13e3a31b745399f3ceb27c1c8023b54954..ba88edb47dd54787ee6a6d97b2b911771faaf1df 100644 (file)
@@ -58,10 +58,10 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('url'))) {
        // Then add this URL
        if (SURFBAR_ADMIN_ADD_URL($postData['url'], $postData['limit'], $postData['reload'])) {
                // URL was added
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_URL_ADDED--}');
+               displayMessage('{--ADMIN_SURFBAR_URL_ADDED--}');
        } else {
                // Not added
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_URL_NOT_ADDED--}');
+               displayMessage('{--ADMIN_SURFBAR_URL_NOT_ADDED--}');
        }
 } // END - if
 
index c996df527037f2ae285f63a3191b1d4a42dc8e1c..812d82357d8055cc20bdedf0c4962be9076a7c0c 100644 (file)
@@ -183,10 +183,10 @@ if (!isFormSent()) {
                        ), __FILE__, __LINE__
                );
        }
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+       displayMessage('{--SETTINGS_SAVED--}');
 } else {
        // Is demo login!
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
+       displayMessage('{--SETTINGS_NOT_SAVED--}');
 }
 
 // [EOF]
index 3bd588daa4c5c0f007481d984c6fb8545bf0bef0..e2db9fd343a4ca0f2344325707fee75cb913e66d 100644 (file)
@@ -166,7 +166,7 @@ LIMIT 1",
                        }
 
                        // Load template
-                       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+                       displayMessage('{--SETTINGS_SAVED--}');
                        break;
 
                case 'delete': // Delete menu
@@ -176,12 +176,12 @@ LIMIT 1",
                        } // END - foreach
 
                        // Load template
-                       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+                       displayMessage('{--SETTINGS_SAVED--}');
                        break;
 
                default: // Unexpected action
                        logDebugMessage(__FILE__, __LINE__, sprintf("Unsupported action %s detected.", postRequestParameter('ok')));
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNKNOWN_OKAY', postRequestParameter('ok')));
+                       displayMessage(getMaskedMessage('ADMIN_UNKNOWN_OKAY', postRequestParameter('ok')));
                        break;
        }
 } else {
@@ -234,7 +234,7 @@ LIMIT 1",
                loadTemplate('admin_edit_admin_menu', false, $content);
        } else {
                // Menu entries are missing... (???)
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
+               displayMessage('{--ADMIN_NO_MENUS_FOUND--}');
        }
 }
 
index dfe12659597ec07fb97e7abe2bf751058b37fa56..07055e416c9810c64eff12758b79b693445adbcc 100644 (file)
@@ -56,7 +56,7 @@ if (isFormSent('add')) {
                        $FORM = false;
 
                        // Admin login saved
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ADD_DONE--}');
+                       displayMessage('{--ADMIN_ADMINS_ADD_DONE--}');
 
                        // Run filter chain
                        runFilterChain('post_admin_added', postRequestArray());
index ef8283a88a76a1ab2a0f37064c417944e0a0c0cf..b4783cadbf00ae1c3eee899955e13504af58fe71 100644 (file)
@@ -59,7 +59,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('admin'))) {
        }
 
        // Mail / message dropped
-       loadTemplate('admin_settings_saved', false, '{--ADMINS_ADMIN_CONTACTED--}');
+       displayMessage('{--ADMINS_ADMIN_CONTACTED--}');
 } elseif (isGetRequestParameterSet('admin')) {
        // Load contact form template
        $content['admin'] = getRequestParameter('admin');
@@ -76,7 +76,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('admin'))) {
        loadTemplate('admin_admins_contct_form', false, $content);
 } else {
        // Please select an admin!
-       loadTemplate('admin_settings_saved', false, '{--ADMINS_SELECT_ADMIN--}');
+       displayMessage('{--ADMINS_SELECT_ADMIN--}');
 }
 
 // [EOF]
index 8fe0f649e470032157ec7b56337c259e6df8e1e7..ca5ff34a7a3d1fb5acbb38c1c45fbdcd25cb5e81 100644 (file)
@@ -98,7 +98,7 @@ if (isFormSent('edit')) {
                loadTemplate('admin_admins_mails_edit', false, $rows);
        } else {
                // Nothing selected
-               loadTemplate('admin_settings_saved', false, '{--ADMINS_NO_MAIL_CHECKED--}');
+               displayMessage('{--ADMINS_NO_MAIL_CHECKED--}');
        }
 } else {
        // Load all assigned mails
@@ -178,7 +178,7 @@ ORDER BY
                loadTemplate('admin_admins_mails_list', false, $OUT);
        } else {
                // No entries found
-               loadTemplate('admin_settings_saved', false, '{--ADMINS_MAILS_NO_ENTRIES--}');
+               displayMessage('{--ADMINS_MAILS_NO_ENTRIES--}');
        }
 }
 
index dbfc9d55876249151c0d757a83d4676467b237bb..324e2f02706c6aab614917f05ba2e531a49ebc8b 100644 (file)
@@ -55,7 +55,7 @@ if (ifStatsAreEnabled()) {
        loadTemplate('admin_cache_stats', false, $content);
 } else {
        // Deactivated, which is good for performance
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_CACHE_DB_STATS_DEACTIVATED--}');
+       displayMessage('{--ADMIN_CACHE_DB_STATS_DEACTIVATED--}');
 }
 
 // [EOF]
index b2ccd4699219e4ef1dbe038556bb9f97bf5e5414..2237a908124a554ae91244a2bdcfecfb291ffb36 100644 (file)
@@ -77,7 +77,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_chk_reg', false, $OUT);
 } else {
        // No registrations left - or all has confirmed their email address... :-)
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_CONFIRMED_EMAIL--}');
+       displayMessage('{--ADMIN_ALL_CONFIRMED_EMAIL--}');
 }
 
 // Free memory
index 74845c013bc57ca33e4498e19afb8443e55b2cf2..0dce8b6a8e74d4481a6a1393d34a4d348f05fce8 100644 (file)
@@ -101,7 +101,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        } // END - if
 
        // Entries changed
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ENTRIES_CHANGED--}');
+       displayMessage('{--ADMIN_ADMINS_ENTRIES_CHANGED--}');
 } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
        // Delete ACLs
        $OUT = '';
@@ -135,7 +135,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections())) {
        } // END - if
 
        // Entries deleted
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ENTRIES_DELETED--}');
+       displayMessage('{--ADMIN_ADMINS_ENTRIES_DELETED--}');
 } elseif (isFormSent('add')) {
        // Check if everything is fine...
        $mode = getAdminDefaultAcl(bigintval(postRequestParameter('admin_id')));
@@ -191,7 +191,7 @@ VALUES ('%s','%s','%s','%s')",
        }
 
        // Display message
-       loadTemplate('admin_settings_saved', false, $content);
+       displayMessage($content);
 } else {
        // List all ACLs
        $result_acls = SQL_QUERY('SELECT `id`, `admin_id`, `action_menu`, `what_menu`, `access_mode` FROM `{?_MYSQL_PREFIX?}_admins_acls` ORDER BY `admin_id` ASC, `id` ASC', __FILE__, __LINE__);
index dec8982086599a566620a8056f23f90736791946..a81bf8c1d67700d7296fa1dab89b097a388f5900 100644 (file)
@@ -69,7 +69,7 @@ if (isFormSent('add')) {
        SQL_FREERESULT($result);
 
        // Display message
-       loadTemplate('admin_settings_saved', false, $content);
+       displayMessage($content);
 } elseif ((isFormSent()) && (isPostRequestParameterSet('id')) && (is_array(postRequestParameter('id')))) {
        // Change or delete categories...
        $TEXT = '';
@@ -107,7 +107,7 @@ if (isFormSent('add')) {
 
        if (isset($TEXT)) {
                // Display message
-               loadTemplate('admin_settings_saved', false, $TEXT);
+               displayMessage($TEXT);
        } // END - if
 } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
        // Delete categories
index edd6953f53035b6b57dee9fd4032a08861f01b51..ce0007636b34422a5d7312f477f5c9aa895a66c4 100644 (file)
@@ -64,7 +64,7 @@ if (isPostRequestParameterSet('add_max')) {
        SQL_FREERESULT($result);
 
        // Display message
-       loadTemplate('admin_settings_saved', false, $content);
+       displayMessage($content);
 } elseif ((isFormSent()) && (isGetRequestParameterSet('do'))) {
        // Change or delete entries...
        $TEXT = '';
@@ -94,7 +94,7 @@ if (isPostRequestParameterSet('add_max')) {
 
        if (isset($TEXT)) {
                // Display message
-               loadTemplate('admin_settings_saved', false, $TEXT);
+               displayMessage($TEXT);
        } // END - if
 } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
        // Delete entries
index 8c016880427ef26c8c76a43ec90ae9597de276ae..c025ddcbb714b7c7192e35ac4640f4cb4a9d6e56 100644 (file)
@@ -54,7 +54,7 @@ switch ($sub) {
                        adminSaveSettingsFromPostData();
 
                        // Display continue link
-                       loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=settings%}">{--ADMIN_CONTINUE_TO_CONFIG--}</a>');
+                       displayMessage('<a href="{%url=modules.php?module=admin&amp;what=config_home&amp;sub=settings%}">{--ADMIN_CONTINUE_TO_CONFIG--}</a>');
                } else {
                        // Prepare data for the template
                        $content = array_fill(-1, 60, '');
index d582c3bc95329d5444e6f67d43f5cbd565cf9253..354fa37f7cead5c527ae6078ab59b1d68659cfd9 100644 (file)
@@ -76,7 +76,7 @@ if (isFormSent('edit')) {
                loadTemplate('admin_edit_mods', false, $OUT);
        } else {
                // Nothing selected
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_MODS_NOTHING_SELECTED--}');
+               displayMessage('{--ADMIN_MODS_NOTHING_SELECTED--}');
 
                // Remove maybe confusing data
                unsetPostRequestParameter('edit');
@@ -112,7 +112,7 @@ if (isFormSent('edit')) {
        } // END - if
 
        // Entries updated
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_MODS_CHANGED--}');
+       displayMessage('{--ADMIN_MODS_CHANGED--}');
 }
 
 if (!ifPostContainsSelections()) {
index 44d87c3a6f794ec0dbdcab263f5b86940dcc613e..ccf242dded72cd5d8b934dc88587bb05219b7447 100644 (file)
@@ -87,7 +87,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_network_config', false, $OUT);
 } else {
        // Please setup some networks first
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_DATA_MISSING--}');
+       displayMessage('{--ADMIN_NETWORK_DATA_MISSING--}');
 }
 // Free result
 SQL_FREERESULT($result);
index e0f12db2abd3041a7b1148a8efc74e0ec68da8e8..f013cb1ac1d16783865c97d16b126494b833733c 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('other')) {
        // Missing extension!
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('other'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('other'));
        return;
 } // END - if
 
@@ -78,11 +78,11 @@ if (isFormSent()) {
        adminSaveSettingsFromPostData();
 } else {
        // Time selection boxes
-       $content['online_timeout']   = createTimeSelections(getConfig('online_timeout'), 'ip_timeout'           , 'ms');
-       $content['url_tlock']        = createTimeSelections(getConfig('url_tlock')     , 'url_tlock'            , 'WDh');
-       $content['profile_lock']     = createTimeSelections(getConfig('profile_lock')  , 'profile_lock'         , 'WDh');
-       $content['profile_update']   = createTimeSelections(getConfig('profile_update'), 'profile_update'       , 'YM');
-       $content['profile_reupdate'] = createTimeSelections(getConfig('resend_profile_update') , 'resend_profile_update', 'MWD');
+       $content['online_timeout']   = createTimeSelections(getOnlineTimeout()      , 'ip_timeout'           , 'ms');
+       $content['url_tlock']        = createTimeSelections(getUrlTlock()           , 'url_tlock'            , 'WDh');
+       $content['profile_lock']     = createTimeSelections(getProfileLock()        , 'profile_lock'         , 'WDh');
+       $content['profile_update']   = createTimeSelections(getProfileUpdate()      , 'profile_update'       , 'YM');
+       $content['profile_reupdate'] = createTimeSelections(getResendProfileUpdate(), 'resend_profile_update', 'MWD');
 
        // Prepare more Y/N selections
        foreach (array('show_points_unconfirmed','show_timings','youre_here','member_menu','guest_menu','order_multi_page','autosend_active','send_prof_update','admin_notify','display_debug_sqls','stats_enabled') as $entry) {
index 2f9885d10abd8f500762e189749b9e2bd40c4122..d3b77e7d5cea05f4c4c6c6ac85034460e33f8c6e 100644 (file)
@@ -180,7 +180,7 @@ LIMIT 1",
 
 if (!empty($message)) {
        // Output message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } // END - if
 
 // Payout types
@@ -209,10 +209,10 @@ if ((!SQL_HASZERONUMS($result_type)) && ($display)) {
 // Does your members request payouts?
 if ((!SQL_HASZERONUMS($result_mem)) && ($display)) {
        // Members has requested payouts
-       loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&amp;what=list_payouts%}">{--ADMIN_PAYOUT_LIST_REQUESTS--}</a>');
+       displayMessage('<a href="{%url=modules.php?module=admin&amp;what=list_payouts%}">{--ADMIN_PAYOUT_LIST_REQUESTS--}</a>');
 } elseif ($display) {
        // No member requests so far
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_NO_MEMBER_REQUESTS--}');
+       displayMessage('{--ADMIN_PAYOUT_NO_MEMBER_REQUESTS--}');
 }
 
 // Free result
index 9564ac37aed0fcadb914f4803b5934d59d8fe6f8..3ef48975ae67b96791e23fad8a030e22c7739790 100644 (file)
@@ -162,7 +162,7 @@ WHERE
        // Shall we display a message?
        if (!empty($message)) {
                // When do so...
-               loadTemplate('admin_settings_saved', false, $message);
+               displayMessage($message);
        } // END - if
 } elseif (getRequestParameter('sub') == 'settings') {
        // Setup some settings like direct pay and so on
index fff48f3ac43282b1102b5f31b620849c70635797..f8f5bbb1e90f138d9d71caae7fab38a70ce1b4b5 100644 (file)
@@ -60,7 +60,7 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Failed to test the API!
-               loadTemplate('admin_settings_saved', false, GET_PRIMERA_ERROR_MESSAGE());
+               displayMessage(GET_PRIMERA_ERROR_MESSAGE());
        }
 }  else {
        // Load template
index c86f72872aa531d0f83157382f634a72f3d86837..be45921667f2c20f0f856eba33531609a538c314 100644 (file)
@@ -50,7 +50,7 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Invalid!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_PROXY_SETTINGS_INVALID--}');
+               displayMessage('{--ADMIN_PROXY_SETTINGS_INVALID--}');
        }
 } else {
        // Load template
index baf1ab9ed241617d3bd0d6f9474ef0e42b622a30..fb49ad871153075ed47dcd7bed431e0a8a0ae17b 100644 (file)
@@ -64,13 +64,13 @@ if (isGetRequestParameterSet('rallye')) {
                                        postRequestParameter('points'),
                                        postRequestParameter('info')
                                ), __FILE__, __LINE__);
-                               loadTemplate('admin_settings_saved', false, '{--RALLYE_PRICE_LEVEL_SAVED--}');
+                               displayMessage('{--RALLYE_PRICE_LEVEL_SAVED--}');
                        } else {
                                // Free memory
                                SQL_FREERESULT($result);
 
                                // Price level found
-                               loadTemplate('admin_settings_saved', false, '{--RALLYE_PRICE_ALREADY_FOUND--}');
+                               displayMessage('{--RALLYE_PRICE_ALREADY_FOUND--}');
                        }
                }
        } elseif (isFormSent('remove')) {
@@ -83,9 +83,9 @@ if (isGetRequestParameterSet('rallye')) {
                        } // END - foreach
 
                        // Output message
-                       loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_DELETED--}');
+                       displayMessage('{--RALLYE_ENTRIES_DELETED--}');
                } else {
-                       loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_NOT_DELETED--}');
+                       displayMessage('{--RALLYE_ENTRIES_NOT_DELETED--}');
                }
        } elseif (isFormSent('change')) {
                // Change entries
@@ -114,7 +114,7 @@ LIMIT 1",
                }
 
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_CHANGED--}');
+               displayMessage('{--RALLYE_ENTRIES_CHANGED--}');
        }
 
        if (isFormSent('edit')) {
@@ -147,7 +147,7 @@ LIMIT 1",
                } else {
                        // Nothing selected
                        $content = '{--RALLYE_NO_PRICES_SELECTED_1--}<a href="{%url=modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye=' . getRequestParameter('rallye') . '%}">{--RALLYE_NO_PRICES_SELECTED_2--}</a>{--RALLYE_NO_PRICES_SELECTED_3--}';
-                       loadTemplate('admin_settings_saved', false, $content);
+                       displayMessage($content);
                }
        } elseif (isFormSent('delete')) {
                // Check if at last one line is selected
@@ -174,7 +174,7 @@ LIMIT 1",
                } else {
                        // Nothing selected
                        $content = '{--RALLYE_NO_PRICES_SELECTED_1--}<a href="{%url=modules.php?module=admin&amp;what=config_rallye_prices&amp;rallye=' . getRequestParameter('rallye') . '%}">{--RALLYE_NO_PRICES_SELECTED_2--}</a>{--RALLYE_NO_PRICES_SELECTED_3--}';
-                       loadTemplate('admin_settings_saved', false, $content);
+                       displayMessage($content);
                }
        } else {
                // a rallye was selected, so check if there are already prices assigned...
@@ -244,7 +244,7 @@ ORDER BY
                loadTemplate('admin_list_rallye_prices', false, $OUT);
        } else {
                // No rallyes setup so far
-               loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SETUP--}');
+               displayMessage('{--RALLYE_NO_RALLYES_SETUP--}');
        }
 }
 
index e4a6b22fc6d3cd827c49acd47823bc7b43594ef5..4307aa33b6de49be1d108a5b011b2ae29ff4db54 100644 (file)
@@ -59,7 +59,7 @@ if (isFormSent()) {
        } // END - foreach
 
        // Output message for updated entries
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_REGISTER_CHANGES_SAVED', $count));
+       displayMessage(getMaskedMessage('ADMIN_REGISTER_CHANGES_SAVED', $count));
 } // END - if
 
 // List all register values
index ebdc3db2bf2376e26fbefaee3cc4e5b3ee2c83e5..37c010d4ab2da5e083abe09928775f4435e34214 100644 (file)
@@ -50,7 +50,7 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Invalid!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SESSION_SAVE_PATH_INVALID--}');
+               displayMessage('{--ADMIN_SESSION_SAVE_PATH_INVALID--}');
        }
 } else {
        // Load template
index 4775e14fad37e68a10599903b43e9e5cf7698404..7d5a3ece21568cf7795fa176cf85e81c800ad938 100644 (file)
@@ -62,7 +62,7 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Failed to test the API!
-               loadTemplate('admin_settings_saved', false, GET_WERNIS_ERROR_MESSAGE());
+               displayMessage(GET_WERNIS_ERROR_MESSAGE());
        }
 }  else {
        // Prepare data for template output
index af3036544564afb60924840fc1fedd6f27612703..c874ba2a4a390fd64fc1ba5d2ffcb2347f8842d8 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('yoomedia')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('yoomedia'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('yoomedia'));
        return;
 } // END - if
 
@@ -56,7 +56,7 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Config not saved
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
+               displayMessage('{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
        }
 } else {
        // Erotic selection
index a032f9a8c37c9bea6fea6b0db06b0bf92443f4ac..a6d57eddf3f7012fd7d9e45ebb197936f534ca54 100644 (file)
@@ -99,7 +99,7 @@ LIMIT 1",
                        // Shall we pay the points back to the user?
                        if ($totalPoints == 0) {
                                // No points repayed!
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_POINTS_REPAYED--}');
+                               displayMessage('{--ADMIN_NO_POINTS_REPAYED--}');
                        } elseif (getConfig('repay_deleted_mails') != 'SHRED') {
                                //* DEBUG: */ debugOutput($stats_id . ':' . $totalPoints . '/' . $links . '/' . $content['price']);
                                // Shall we payback to user or jackpot?
@@ -115,18 +115,18 @@ LIMIT 1",
                                // Output message
                                if (getConfig('repay_deleted_mails') == 'REPAY') {
                                        // Repayed
-                                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_POINTS_REPAYED',
+                                       displayMessage(getMaskedMessage('ADMIN_POINTS_REPAYED',
                                                '{%pipe,translateComma=' . $totalPoints . '%}'
                                        ));
                                } else {
                                        // To jackpot
-                                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_POINTS_TO_JACKPOT',
+                                       displayMessage(getMaskedMessage('ADMIN_POINTS_TO_JACKPOT',
                                                '{%pipe,translateComma=' . $totalPoints . '%}'
                                        ));
                                }
                        } else {
                                // Points shredded!
-                               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_POINTS_SHREDDED', '{%pipe,translateComma=' . $totalPoints . '%}'));
+                               displayMessage(getMaskedMessage('ADMIN_POINTS_SHREDDED', '{%pipe,translateComma=' . $totalPoints . '%}'));
                        }
 
                        // Remove links from DB
@@ -135,7 +135,7 @@ LIMIT 1",
                        $count += SQL_AFFECTEDROWS();
 
                        // Load template for link
-                       loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&amp;what=del_email&amp;pid=' . bigintval(getRequestParameter('mid')) . '%}">{--ADMIN_REMOVE_STATS_ENTRY--}</a>');
+                       displayMessage('<a href="{%url=modules.php?module=admin&amp;what=del_email&amp;pid=' . bigintval(getRequestParameter('mid')) . '%}">{--ADMIN_REMOVE_STATS_ENTRY--}</a>');
                } // END - if
 
                // Free the result
@@ -150,7 +150,7 @@ LIMIT 1",
                outputHtml(getMaskedMessage('ADMIN_DELETED_MAILS_COUNT', $count));
        } else {
                // Mail already deleted!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NORMAL_MAIL_ALREADY_DELETED--}');
+               displayMessage('{--ADMIN_NORMAL_MAIL_ALREADY_DELETED--}');
        }
 
        // Free result
@@ -161,7 +161,7 @@ LIMIT 1",
                array(bigintval(getRequestParameter('pid'))), __FILE__, __LINE__);
 
        // Output message
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_STATS_REMOVED--}');
+       displayMessage('{--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 LIMIT 1",
@@ -194,7 +194,7 @@ LIMIT 1",
                loadTemplate('admin_delete_email_bonus', false, $content);
        } else {
                // Mail already deleted!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_MAIL_ALREADY_DELETED--}');
+               displayMessage('{--ADMIN_BONUS_MAIL_ALREADY_DELETED--}');
        }
 
        // Free result
@@ -228,14 +228,14 @@ LIMIT 1",
                loadTemplate('admin_delete_email_notify', false, $content);
        } else {
                // Mail already deleted!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NOTIFY_MAIL_ALREADY_DELETED--}');
+               displayMessage('{--ADMIN_NOTIFY_MAIL_ALREADY_DELETED--}');
        }
 
        // Free result
        SQL_FREERESULT($result);
 } else {
        // No mail orders fond
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}');
+       displayMessage('{--ADMIN_WRONG_CALL--}');
 }
 
 // [EOF]
index 302999f7e5091c7070f269bc5c4e797a0c7aaf02..2c8ae73b5558c82c4846ff346d1aa9058df8cb8e 100644 (file)
@@ -89,7 +89,7 @@ LIMIT 1", array(bigintval($id)), __FILE__, __LINE__);
                // Free result
                SQL_FREERESULT($result);
        } // END - foreach
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_HOLIDAY_MULTI_DELETE', $count));
+       displayMessage(getMaskedMessage('ADMIN_HOLIDAY_MULTI_DELETE', $count));
 } elseif (isGetRequestParameterSet('userid')) {
        // Set default message
        $message = '{--ADMIN_HOLIDAY_SINGLE_404--}';
@@ -126,7 +126,7 @@ LIMIT 1", array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__);
        SQL_FREERESULT($result_load);
 
        // Output message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } else {
        // Add member selection box
        addMemberSelectionBox();
index 8001fc0bec625ab09f065929eb6f055241f469f1..25521563b1530e1800c639e8251eb49886a9013c 100644 (file)
@@ -69,7 +69,7 @@ if (isGetRequestParameterSet('id')) {
                                array(bigintval(getRequestParameter('id'))), __FILE__, __LINE__);
 
                        // Output message
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_DELETED', bigintval(getRequestParameter('id'))));
+                       displayMessage(getMaskedMessage('ADMIN_SPONSOR_DELETED', bigintval(getRequestParameter('id'))));
                } elseif (isPostRequestParameterSet('no')) {
                        // Do not delete him...
                        redirectToUrl('modules.php?module=admin&amp;what=list_sponsor&amp;id='.bigintval(getRequestParameter('id')));
@@ -85,14 +85,14 @@ if (isGetRequestParameterSet('id')) {
                }
        } else {
                // Sponsor not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
+               displayMessage(getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 
        // Free result
        SQL_FREERESULT($result);
 } else {
        // Not called by what-list_sponsor.php
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
+       displayMessage('{--ADMIN_CALL_NOT_DIRECTLY--}');
 }
 
 // [EOF]
index f79486535763dca9d82560762c1b0dbc03792b1d..756aa130f2f207013cb866b1a0a832d1f07aa53f 100644 (file)
@@ -91,7 +91,7 @@ if (!SQL_HASZERONUMS($result)) {
        // Nothing for in and out
        $OUT = '<tr>
   <td colspan="6" align="center" class="bottom">
-    ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . '
+    ' . displayMessage('{--TRANSFER_NO_INOUT_TRANSFERS--}', true) . '
   </td>
 </tr>';
 }
index 969baaf08e4813e06ef973af317c2bd162162fd1..2f84947b9ee19eb4c22e7264bfeec3460a213cac 100644 (file)
@@ -51,7 +51,7 @@ if ((isFormSent()) || ((isFormSent('delete')) && (isPostRequestParameterSet('rea
                deleteUserAccount(getRequestParameter('userid'), postRequestParameter('reason'));
 
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_DELETE_COMPLETED--}');
+               displayMessage('{--ADMIN_DELETE_COMPLETED--}');
        } else {
                // Account does not exists!
                loadTemplate('admin_settings_unsaved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
index 383782306f4388b65ca39e4cb0198a1babdf2f7a..7147fc88dee955b8dff4afdec3faf5bb446d9ea3 100644 (file)
@@ -103,7 +103,7 @@ LIMIT 1",
                }
 
                // Display message
-               loadTemplate('admin_settings_saved', false, $content);
+               displayMessage($content);
        } else {
                // There are mail orders available
                $OUT = '';
@@ -120,7 +120,7 @@ LIMIT 1",
        }
 } else {
        // No mail orders left in pool
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
+       displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');
 }
 
 // [EOF]
index a31c5c2e2d652e48061128ae55d03bc638779b95..d4e519a238b3a0f72806df1ef4f8749f37ef9d28 100644 (file)
@@ -162,7 +162,7 @@ LIMIT 1",
 
                        if (!empty($message)) {
                                // Output message
-                               loadTemplate('admin_settings_saved', false, $message);
+                               displayMessage($message);
                        } // END - if
                } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getPath(), getLanguage(), $TPL))) {
                        // Create mailto link
@@ -172,18 +172,18 @@ LIMIT 1",
                        loadTemplate($TPL, false, $content);
                } else {
                        // Template not found
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_MODUS_TPL_404', getRequestParameter('mode')));
+                       displayMessage(getMaskedMessage('ADMIN_SPONSOR_MODUS_TPL_404', getRequestParameter('mode')));
                }
        } else {
                // Sponsor not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
+               displayMessage(getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 
        // Free result
        SQL_FREERESULT($result_main);
 } else {
        // Not called by what-list_sponsor.php
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
+       displayMessage('{--ADMIN_CALL_NOT_DIRECTLY--}');
 }
 
 // [EOF]
index 16f0f75f2c68b573deef1fb43befde68a1ef0b95..bb2904d744f4e36c081bc8c57be2eca02b53a2f8 100644 (file)
@@ -116,7 +116,7 @@ LIMIT 1",
                }
 
                // Load template
-               loadTemplate('admin_settings_saved', false, $content);
+               displayMessage($content);
        } else {
                // Load entry
                $content = SQL_FETCHARRAY($result_main);
index 7343f0e40df0749f8a14dc302bd1db43f8db294c..d6338d6fe1e7413983e847d6bf5a9afcc6ec6243 100644 (file)
@@ -115,7 +115,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_email_archiv', false, $content);
 } else {
        // No mail orders fond
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
+       displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');
 }
 
 // Free memory
index 97e547a81e74aab7d18e5c81e70ea1fd94ed66e8..182525c71aa87708d772c24d1ffac8bd32457eba 100644 (file)
@@ -46,7 +46,7 @@ addYouAreHereLink('admin', __FILE__);
 // Is 'sql_patches' updated?
 if (!isExtensionInstalledAndNewer('sql_patches', '0.7.4')) {
        // No, abort here
-       loadTemplate('admin_settings_saved', false, generateExtensionOutdatedMessage('sql_patches', '0.7.4'));
+       displayMessage(generateExtensionOutdatedMessage('sql_patches', '0.7.4'));
        return false;
 } // END - if
 
@@ -229,7 +229,7 @@ if ((isExtensionActive('bonus')) && (empty($WHO))) {
 
 if ($MAIL === false) {
        // No mail orders fond
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
+       displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');
 } // END - if
 
 // [EOF]
index bfba5b7929f53cbb62a641a71ff760bdbf21f25c..95ab938514dfa2235ef082856d42645b6cbb91ab 100644 (file)
@@ -58,7 +58,7 @@ if (isGetRequestParameterSet('reg_ext')) {
                // Shall we keep the extension always active?
                if ((isset($GLOBALS['cache_array']['always_active'][getExtensionName($ext_id)])) && ($GLOBALS['cache_array']['always_active'][getExtensionName($ext_id)] == 'Y') && ($ext_active == 'Y')) {
                        // Keep this extension active!
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_ALWAYS_ACTIVE', getExtensionName($ext_id)));
+                       displayMessage(getMaskedMessage('ADMIN_EXTENSION_ALWAYS_ACTIVE', getExtensionName($ext_id)));
                } else {
                        // Deactivation is default
                        $active = 'N';
@@ -242,7 +242,7 @@ if (isGetRequestParameterSet('reg_ext')) {
        $do = 'demo';
 } elseif (isGetRequestParameterSet('registered')) {
        // Extensions changed
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_REGISTERED', getExtensionName(getRequestParameter('registered'))));
+       displayMessage(getMaskedMessage('ADMIN_EXTENSION_REGISTERED', getExtensionName(getRequestParameter('registered'))));
 
        // Show next link
        if (isExtensionActive('task')) {
@@ -258,13 +258,13 @@ if (isGetRequestParameterSet('reg_ext')) {
        }
 } elseif (isGetRequestParameterSet('changed')) {
        // Extensions changed
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_CHANGED', bigintval(getRequestParameter('changed'))));
+       displayMessage(getMaskedMessage('ADMIN_EXTENSION_CHANGED', bigintval(getRequestParameter('changed'))));
 } elseif (isGetRequestParameterSet('edited')) {
        // Extensions changed
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_EDITED', bigintval(getRequestParameter('edited'))));
+       displayMessage(getMaskedMessage('ADMIN_EXTENSION_EDITED', bigintval(getRequestParameter('edited'))));
 } elseif (isGetRequestParameterSet('removed')) {
        // Extensions changed
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSIONS_REMOVED', bigintval(getRequestParameter('removed'))));
+       displayMessage(getMaskedMessage('ADMIN_EXTENSIONS_REMOVED', bigintval(getRequestParameter('removed'))));
 }
 
 // Shall we display active/inactive extensions?
@@ -319,7 +319,7 @@ ORDER BY
                        loadTemplate('admin_extensions', false, $OUT);
                } else {
                        // No extensions are registered
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_EXTENSION_REGISTERED--}');
+                       displayMessage('{--ADMIN_NO_EXTENSION_REGISTERED--}');
                }
                break;
 
@@ -356,7 +356,7 @@ ORDER BY
                                                        redirectToUrl('modules.php?module=admin&amp;what=extensions&amp;registered=' . getExtensionId($ext_name));
                                                } else {
                                                        // Errors detected!
-                                                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_EXTENSION_NOT_REGISTERED', $ext_name));
+                                                       displayMessage(getMaskedMessage('ADMIN_EXTENSION_NOT_REGISTERED', $ext_name));
                                                }
 
                                                // Do we need to update cache file?
@@ -370,30 +370,30 @@ ORDER BY
                                                } // END - if
                                        } elseif (isExtensionInstalled($ext_name)) {
                                                // Notify the admin that we have a problem here...
-                                               loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_ALREADY--}');
+                                               displayMessage('{--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));
+                                               displayMessage(getMaskedMessage('ADMIN_EXTENSION_REGISTRATION_FAILED_404', $ext_name));
                                        }
                                } else {
                                        // Motify the admin that we have a problem here...
-                                       loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_DEPRECATED--}');
+                                       displayMessage('{--ADMIN_EXTENSION_REGISTRATION_FAILED_DEPRECATED--}');
                                }
                        } else {
                                // Extension was not found in task management
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_ID_404--}');
+                               displayMessage('{--ADMIN_EXTENSION_REGISTRATION_FAILED_ID_404--}');
                        }
                } elseif ($numTasks == '0') {
                        // No longer assigned or old task
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_ASSIGED--}');
+                       displayMessage('{--ADMIN_EXTENSION_REGISTRATION_FAILED_ASSIGED--}');
                } else {
                        // id is invalid
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_EXTENSION_REGISTRATION_FAILED_INVALID--}');
+                       displayMessage('{--ADMIN_EXTENSION_REGISTRATION_FAILED_INVALID--}');
                }
                break;
 
        case 'demo':
-               loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
+               displayMessage('{--SETTINGS_NOT_SAVED--}');
                break;
 } // END - switch
 
index 20c957f1876292256b5e1637b5b972cd5d3f26b0..33da7e1b788c57ea6af3d1028f3e09ef5441f56b 100644 (file)
@@ -200,10 +200,10 @@ ORDER BY `sort` ASC",
                                postRequestParameter('active'),
                        ), __FILE__, __LINE__);
        }
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+       displayMessage('{--SETTINGS_SAVED--}');
 } else {
        // Demo mode!
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
+       displayMessage('{--SETTINGS_NOT_SAVED--}');
 }
 
 // [EOF]
index 5465448686a6f29fb7f0ae10fdf525f1c8ed1bf2..eded88276c2f4d56a33b7d5cf4d4ce7d4e64301e 100644 (file)
@@ -242,7 +242,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                loadTemplate('admin_edit_guest_menu', false, $content);
        } else {
                // Menu entries are missing... (???)
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
+               displayMessage('{--ADMIN_NO_MENUS_FOUND--}');
        }
 }
 
index b6b1952ccb2c488472aa4396debec40e14f7b14c..1aa19ca73bea3118c0ac2b28e4d3be5eae70cf84 100644 (file)
@@ -94,7 +94,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_autopurge', false, $content);
 } else {
        // All members are active or you don't have any registered
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_AUTOPURGE_ALL_ACTIVE--}');
+       displayMessage('{--ADMIN_AUTOPURGE_ALL_ACTIVE--}');
 }
 
 // [EOF]
index 4c5b0c112e11f753530105dbe54c3d9621a11b1f..1097f84ce57c8335efbffff395cf01a678300e59 100644 (file)
@@ -180,7 +180,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_bank_package', false, $OUT);
 } else {
        // No packages found
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_BANK_NO_PACKAGES_FOUND--}');
+       displayMessage('{--ADMIN_BANK_NO_PACKAGES_FOUND--}');
 }
 
 // Free the result
index 32f99a1d22f1d810b1ef286f1f98b41578bd8f4c..f349aee801b404d41e0e37f163f79f8c3e119c0e 100644 (file)
@@ -50,7 +50,7 @@ if (isBegRallyeEnabled()) {
                $curr = getMonth() - 1;
                if (strlen($curr) == 1) $curr = '0' . $curr;
                updateConfiguration('last_month', $curr);
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_WITHDRAW_PREPARED--}');
+               displayMessage('{--ADMIN_BEG_WITHDRAW_PREPARED--}');
        } // END - if
 
        // Autopurge installed?
@@ -113,25 +113,25 @@ ORDER BY
                        $content['withdraw_form'] = loadTemplate('admin_list_beg_form', true);
                } else {
                        // Display message "no manual withdraw possible"
-                       $content['withdraw_form'] = loadTemplate('admin_settings_saved', true, '{--ADMIN_BEG_ALREADY_WITHDRAW--}');
+                       $content['withdraw_form'] = displayMessage('{--ADMIN_BEG_ALREADY_WITHDRAW--}', true);
                }
 
                // Prepare constant for timemark
                if (isExtensionActive('autopurge')) {
                        $content['autopurge_timeout'] = generateDateTime(time() - getApInactiveSince(), 2);
                } else {
-                       $content['autopurge_timeout'] = loadTemplate('admin_settings_saved', true, generateExtensionInactiveNotInstalledMessage('autopurge'));
+                       $content['autopurge_timeout'] = displayMessage(generateExtensionInactiveNotInstalledMessage('autopurge'), true);
                }
 
                // Load final template
                loadTemplate('admin_list_beg', false, $content);
        } else {
                // No one has joined the begging rallye...
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_NO_RALLYE--}');
+               displayMessage('{--ADMIN_BEG_NO_RALLYE--}');
        }
 } else {
        // Rallye deactivated
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_BEG_RALLYE_DEACTIVATED--}');
+       displayMessage('{--ADMIN_BEG_RALLYE_DEACTIVATED--}');
 }
 
 // [EOF]
index cf13775287f68a436c826c6684958d0ca03143c5..0667f2b89cb4a0df68c476d91a4cbc771f5ffd3c 100644 (file)
@@ -50,7 +50,7 @@ if (isBonusRallyeActive()) {
                $curr = getMonth() - 1;
                if (strlen($curr) == 1) $curr = '0' . $curr;
                updateConfiguration('last_month', $curr);
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_WITHDRAW_PREPARED--}');
+               displayMessage('{--ADMIN_BONUS_WITHDRAW_PREPARED--}');
        } // END - if
 
        if (isExtensionInstalledAndNewer('bonus', '0.6.9')) {
@@ -140,11 +140,11 @@ ORDER BY
                loadTemplate('admin_list_bonus', false, $content);
        } else {
                // No one has become an "activity bonus"...
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_NO_ACTIVE_RALLYE--}');
+               displayMessage('{--ADMIN_BONUS_NO_ACTIVE_RALLYE--}');
        }
 } else {
        // Aktive-Rallye not activated
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_BONUS_RALLYE_DEACTIVATED--}');
+       displayMessage('{--ADMIN_BONUS_RALLYE_DEACTIVATED--}');
 }
 
 // [EOF]
index 049e32fe1626da766f1b2222163f8ef673805c41..d7881b9e51ed1664db7efc1c272d58c9344547ea 100644 (file)
@@ -97,7 +97,7 @@ if (isGetRequestParameterSet('userid')) {
                }
        } else {
                // User not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_404', $content['userid']));
+               displayMessage(getMaskedMessage('ADMIN_MEMBER_404', $content['userid']));
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index 5f1dbc33345557636f595829187e179d4f129806..05fe8420bd702a38e0a3ed32414a3c96beafb6ee 100644 (file)
@@ -68,7 +68,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
        }
 
        // Display message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } elseif ((isFormSent('change')) && (isPostRequestParameterSet('id'))) {
        // Change all status
        adminChangeActivationStatus(postRequestParameter('id'), 'countries', 'is_active');
@@ -162,7 +162,7 @@ if ((isFormSent('add')) && (isPostRequestParameterSet('code')) && (isPostRequest
                runFilterChain('run_sqls');
 
                // Display message
-               loadTemplate('admin_settings_saved', false, $message);
+               displayMessage($message);
        } // END - if
 
        // Load currenty setup country codes to list
index 3f1d2ff68921c9863a7f92b63e0b4d5bcd3c2a51..a3883d9fb9b373cea0cbe713a1092baa197905c9 100644 (file)
@@ -81,7 +81,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_holiday', false, $OUT);
 } else {
        // No holiday requests found
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_HOLIDAY_NOTHING_FOUND--}');
+       displayMessage('{--ADMIN_HOLIDAY_NOTHING_FOUND--}');
 }
 
 // [EOF]
index cd43aebdabe981e5a5973ed7b30bf676cac29c05..31a456a678405f975968dadad5b97bf1396da675 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('mailid')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mailid'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('mailid'));
        return;
 } // END - if
 
@@ -76,7 +76,7 @@ if (isGetRequestParameterSet('userid')) {
                                sendEmail(getUserData('email'), '{--ADMIN_DELETE_LINK_SUBJECT--}', $message);
 
                                // Display message
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_LINKS_DELETED--}');
+                               displayMessage('{--ADMIN_LINKS_DELETED--}');
                        } else {
                                // Init variables
                                $OUT = '';
@@ -161,11 +161,11 @@ if (isGetRequestParameterSet('userid')) {
                        }
                } else {
                        // No mails left to confirm
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_LINKS', bigintval(getRequestParameter('userid'))));
+                       displayMessage(getMaskedMessage('ADMIN_MEMBER_LINKS', bigintval(getRequestParameter('userid'))));
                }
        } else {
                // User not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
+               displayMessage(getMaskedMessage('ADMIN_MEMBER_404', bigintval(getRequestParameter('userid'))));
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index c66ad3d8a3d40f80740ec2ce1ec7e3a463801e47..c83030e9fab3077a8f9646637c325b81f4cfb4dd 100644 (file)
@@ -82,7 +82,7 @@ if (isGetRequestParameterSet('network')) {
                $networkData['network_type_id'] = bigintval(postRequestParameter('network_type_id'));
 
                // Display message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_API_TRANSLATION_LIST_LIMITED_TO_TYPE--}');
+               displayMessage('{--ADMIN_NETWORK_API_TRANSLATION_LIST_LIMITED_TO_TYPE--}');
        } // END - if
 
        // Load all advert codes for given network
@@ -123,7 +123,7 @@ ORDER BY
                loadTemplate('admin_list_network_api_translation', false, $OUT);
        } else {
                // No entries found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_API_TRANSLATION_404', $networkData['network_title']));
+               displayMessage(getMaskedMessage('ADMIN_NETWORK_API_TRANSLATION_404', $networkData['network_title']));
        }
 
        // Free result
index f17f6cc7e7da61c5798697654242ea4dad8f11ea..99b2f1e578279c3855c22160f59139ff6822bb99 100644 (file)
@@ -80,7 +80,7 @@ if (isGetRequestParameterSet('network')) {
                $networkData['network_type_id'] = bigintval(postRequestParameter('network_type_id'));
 
                // Display message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_REQUEST_PARAMETER_LIST_LIMITED_TO_TYPE--}');
+               displayMessage('{--ADMIN_NETWORK_REQUEST_PARAMETER_LIST_LIMITED_TO_TYPE--}');
        } // END - if
 
        // Load all advert types for given network
@@ -121,7 +121,7 @@ ORDER BY
                loadTemplate('admin_list_network_params', false, $OUT);
        } else {
                // No entries found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_REQUEST_PARAMETER_404', $networkData['network_title']));
+               displayMessage(getMaskedMessage('ADMIN_NETWORK_REQUEST_PARAMETER_404', $networkData['network_title']));
        }
 
        // Free result
index f2a25bc6e7113a6261b47daba118b92e2248ac4e..65580e0cf9cd9ed29aff9b31e75402551aaac1cb 100644 (file)
@@ -99,7 +99,7 @@ ORDER BY
                loadTemplate('admin_list_network_types', false, $OUT);
        } else {
                // No entries found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_NETWORK_TYPES_404', $networkData['network_title']));
+               displayMessage(getMaskedMessage('ADMIN_NETWORK_TYPES_404', $networkData['network_title']));
        }
 
        // Free result
index bf469c701d7cbe3b69c197f5eb88eceedfe2eb0c..3b533b0774fb57f925945542510307fc31ddc967 100644 (file)
@@ -82,7 +82,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_networks', false, $OUT);
 } else {
        // Display a message that there are sponsor networks supported, yet
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NETWORK_NONE_SUPPORTED--}');
+       displayMessage('{--ADMIN_NETWORK_NONE_SUPPORTED--}');
 }
 
 // Free result
index d7363b5087e224b4afda858ca988c5d1d4e82c8c..73ef864cd12e5a39df68ebfaf40ed832b770a9f9 100644 (file)
@@ -67,7 +67,7 @@ ORDER BY
        $result_max = SQL_QUERY($SQL2, __FILE__, __LINE__);
 } else {
        // Bonus extension required!
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bonus'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bonus'));
 }
 
 // Create limitation line
@@ -109,7 +109,7 @@ if ((isExtensionActive('bonus')) && (!SQL_HASZERONUMS($result_max)) && (!empty($
        }
 } elseif ((SQL_NUMROWS($result_max) === 0) && (is_resource($result_max))) {
        // No notifications found
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_NOTIFICATIONS--}');
+       displayMessage('{--ADMIN_NO_NOTIFICATIONS--}');
 }
 
 // [EOF]
index 504dc1a0754b017f0d3ff3109c52d253c5d5f48b..593c030a522ea36560b1f025d3728257ce43cffb 100644 (file)
@@ -60,7 +60,7 @@ if (isGetRequestParameterSet('pid')) {
                if (empty($taskId)) $taskId = '0';
        } elseif ((empty($userid)) || ($userid == '0')) {
                // Cannot obtain member id!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_USERID--}');
+               displayMessage('{--ADMIN_PAYOUT_FAILED_OBTAIN_USERID--}');
        } else {
                // Get task id from URL
                $taskId = getRequestParameter('task');
@@ -143,10 +143,10 @@ LIMIT 1",
                                                // Output message
                                                if ($data['allow_url'] == 'Y') {
                                                        // Banner / Textlink request
-                                                       loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_BANNER_ACCEPTED_NOTIFIED--}');
+                                                       displayMessage('{--ADMIN_PAYOUT_BANNER_ACCEPTED_NOTIFIED--}');
                                                } else {
                                                        // Normal request
-                                                       loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_ACCEPTED_NOTIFIED--}');
+                                                       displayMessage('{--ADMIN_PAYOUT_ACCEPTED_NOTIFIED--}');
                                                }
 
                                                // Finally send mail
@@ -187,7 +187,7 @@ LIMIT 1",
                                $message = loadEmailTemplate('member_payout_rejected', postRequestParameter('text'), $userid);
 
                                // Output message
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_REJECTED_NOTIFIED--}');
+                               displayMessage('{--ADMIN_PAYOUT_REJECTED_NOTIFIED--}');
 
                                // Finally send mail
                                sendEmail(getUserData('email'), '{--MEMBER_PAYOUT_REJECTED_SUBJECT--}', $message);
@@ -204,11 +204,11 @@ LIMIT 1",
                        }
                } else {
                        // Cannot load user data
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_USERDATA--}');
+                       displayMessage('{--ADMIN_PAYOUT_FAILED_OBTAIN_USERDATA--}');
                }
        } elseif ((empty($taskId)) || ($taskId == '0')) {
                // Failed loading task id
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_FAILED_OBTAIN_TASK_ID--}');
+               displayMessage('{--ADMIN_PAYOUT_FAILED_OBTAIN_TASK_ID--}');
        }
 } else {
        if (getRequestParameter('do') == 'delete') {
@@ -272,7 +272,7 @@ ORDER BY
                loadTemplate('admin_list_payouts', false, $OUT);
        } else {
                // No payout requests are sent so far
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_NO_REQUESTS_FOUND--}');
+               displayMessage('{--ADMIN_PAYOUT_NO_REQUESTS_FOUND--}');
        }
 }
 
index cd6038d5db2da3e0b145f0571bb141cacacfd2e0..41e2389394a5c707239cfddb94b3e24dbc7d5218 100644 (file)
@@ -72,7 +72,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_primera_main', false, $OUT);
 } else {
        // Nothing to display!
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_PRIMERA_NO_TRANSFERS--}');
+       displayMessage('{--ADMIN_PRIMERA_NO_TRANSFERS--}');
 }
 
 // Free the result
index f6a25db6ecaaea37f2f175251d10767f0f66fd04..88207882415018499c5e262a5bdb5f4aa48e2cb3 100644 (file)
@@ -224,7 +224,7 @@ LIMIT 1",
                loadTemplate('admin_edit_rallyes', false, $OUT);
        } else {
                // Nothing selected to edit
-               loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SELECTED--}');
+               displayMessage('{--RALLYE_NO_RALLYES_SELECTED--}');
        }
 } elseif ((getRequestParameter('sub') == 'users') && (getRequestParameter('rallye') > 0)) {
        // List users and their refs before start and current
@@ -283,7 +283,7 @@ ORDER BY
                loadTemplate('admin_list_rallye_usr', false, $content);
        } else {
                // No entries found?
-               loadTemplate('admin_settings_saved', false, '{--RALLYE_ADMIN_USERS_404--}');
+               displayMessage('{--RALLYE_ADMIN_USERS_404--}');
        }
 } else {
        // Start listing rallyes
@@ -384,7 +384,7 @@ ORDER BY
                loadTemplate('admin_list_rallyes', false, $content);
        } else {
                // No rallyes setup so far
-               loadTemplate('admin_settings_saved', false, '{--RALLYE_NO_RALLYES_SETUP--}');
+               displayMessage('{--RALLYE_NO_RALLYES_SETUP--}');
        }
 }
 
index c7d0b3661705006fa7c402c064cd54a941f9569c..7bd4b1b515330c5e1b7e1456c6418ea863e28a43 100644 (file)
@@ -60,7 +60,7 @@ if (isGetRequestParameterSet('userid')) {
                $menge_lck = countSumTotalData($userid, 'user_data', 'userid', 'refid', true, " AND `status` != 'CONFIRMED'");
 
                // Output info message
-               loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink(getRequestParameter('userid')), $menge, $menge_lck));
+               displayMessage(sprintf(getMessage('ADMIN_USER_TOTAL_REFS'), generateUserProfileLink(getRequestParameter('userid')), $menge, $menge_lck));
 
                // Load all referal levels
                $result_levels = SQL_QUERY("SELECT
@@ -180,17 +180,17 @@ ORDER BY
                        }
                } elseif (isExtensionActive('refback')) {
                        // No levels found, very bad!
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_REFERAL_LEVELS--}');
+                       displayMessage('{--ADMIN_NO_REFERAL_LEVELS--}');
                } else {
                        // No refs made so far
-                       loadTemplate('admin_settings_saved', false, '{--USER_REFERAL_404--}');
+                       displayMessage('{--USER_REFERAL_404--}');
                }
 
                // Free result
                SQL_FREERESULT($result_levels);
        } else {
                // User not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_404', getRequestParameter('userid')));
+               displayMessage(getMaskedMessage('ADMIN_MEMBER_404', getRequestParameter('userid')));
        }
 } else {
        // Output selection form with all confirmed user accounts listed
index 1c006bdaaec882014597d7547da2940eb37a8662..b762286c09d8cb055f9b058ce921a8d59f6e754b 100644 (file)
@@ -85,7 +85,7 @@ WHERE
                loadTemplate('admin_list_sponsor_details', false, $content);
        } else {
                // Sponsor not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
+               displayMessage(getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 
        // Free result
@@ -119,11 +119,11 @@ ORDER BY
                        SQL_FREERESULT($result);
                } else {
                        // No refs made so far
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_REFS_404', '<a href="{%url=modules.php?module=admin&amp;what=list_sponsor&amp;id=' . bigintval(getRequestParameter('refid')) . '%}">' . bigintval(getRequestParameter('refid')) . '</a>'));
+                       displayMessage(getMaskedMessage('ADMIN_SPONSOR_REFS_404', '<a href="{%url=modules.php?module=admin&amp;what=list_sponsor&amp;id=' . bigintval(getRequestParameter('refid')) . '%}">' . bigintval(getRequestParameter('refid')) . '</a>'));
                }
        } else {
                // Sponsor not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('refid'))));
+               displayMessage(getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('refid'))));
        }
 } else {
        // List all sponsors
@@ -159,7 +159,7 @@ ORDER BY
                loadTemplate('admin_list_sponsor', false, $OUT);
        } else {
                // No sponsors registered so far
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_REGISTERED--}');
+               displayMessage('{--ADMIN_SPONSOR_NONE_REGISTERED--}');
        }
 }
 
index f3bd967949313a7c4c1736c57f10cef0b4dd7092..7da0139c83cf770d3c34677c75241b71f071ad58 100644 (file)
@@ -105,7 +105,7 @@ LIMIT 1",
 
        if (!empty($message)) {
                // Output message
-               loadTemplate('admin_settings_saved', false, $message);
+               displayMessage($message);
        } // END - if
 }
 
@@ -134,7 +134,7 @@ if (isFormSent('add')) {
        SQL_FREERESULT($result);
 
        // Output message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } elseif ((isFormSent('edit')) || (isFormSent('delete'))) {
        // Load all data
        $OUT = '';
@@ -195,7 +195,7 @@ ORDER BY
                $content['list_out'] = loadTemplate('admin_list_sponsor_pay', true, $OUT);
        } else {
                // Noting setup so far!
-               $content['list_out'] = loadTemplate('admin_settings_saved', true, '{--ADMIN_SPONSOR_NO_PAYTYPES--}');
+               $content['list_out'] = displayMessage('{--ADMIN_SPONSOR_NO_PAYTYPES--}', true);
        }
 
        // Free memory
index dbe212688d5965e8b438b2fbfba9f1a3beeba777..89e2a39d766751c3bc16b085b5bd6c82a04d294e 100644 (file)
@@ -53,11 +53,11 @@ if (isGetRequestParameterSet('id')) {
                SQL_FREERESULT($result);
        } else {
                // Sponsor not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
+               displayMessage(getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestParameter('id'))));
        }
 } else {
        // Not called by what-list_sponsor.php
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_CALL_NOT_DIRECTLY--}');
+       displayMessage('{--ADMIN_CALL_NOT_DIRECTLY--}');
 }
 
 // [EOF]
index 6bf2789f324f2185e8ddaf930221bd4dbb01f559..195a01acb5eb7cb2770854cecb464a2bdf96e8fb 100644 (file)
@@ -80,7 +80,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_surfbar_actions', false, $OUT);
 } else {
        // No entries found, very bad!
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_ACTIONS--}');
+       displayMessage('{--ADMIN_SURFBAR_NO_ACTIONS--}');
 }
 
 // Free result
index 0852fc1d5be3cafc2a1476a75679c53929790f5d..ba8a6daa2fdf8ae59646e55cbd4b4671ae99f7c5 100644 (file)
@@ -49,7 +49,7 @@ $show = true;
 // 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, '{--ADMIN_SURFBAR_NO_SELECTIONS--}');
+       displayMessage('{--ADMIN_SURFBAR_NO_SELECTIONS--}');
 
        // Abort here
        return;
@@ -213,7 +213,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_surfbar_urls', false, $OUT);
 } else {
        // No URLs in surfbar
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_URLS_FOUND--}');
+       displayMessage('{--ADMIN_SURFBAR_NO_URLS_FOUND--}');
 }
 
 // Free result
index fa00387bac20c4085a4e8744880117b1abe300b7..29e6a73c96993ebe8e99042b73a6583d8dde9872 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('task')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('task'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('task'));
        return;
 } // END - if
 
@@ -78,7 +78,7 @@ switch (getRequestParameter('type')) {
 
        default: // Unknown type
                logDebugMessage(__FILE__, __LINE__, sprintf("Unknown task type %s detected.", getRequestParameter('type')));
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_TASK_UNKNOWN_MODE', getRequestParameter('type')));
+               displayMessage(getMaskedMessage('ADMIN_TASK_UNKNOWN_MODE', getRequestParameter('type')));
                break;
 } // END - switch
 
index 2234084d6e7ef9d1bd4b0e4ec3c94b74f70f045d..a3773aa3ebc684ebdc47627dccc1b1da256e1ada 100644 (file)
@@ -71,7 +71,7 @@ if (!SQL_HASZERONUMS($result)) {
        // Nothing for in and out
        $OUT = '<tr>
   <td colspan="6" align="center" class="bottom">
-    ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . '
+    ' . displayMessage('{--TRANSFER_NO_INOUT_TRANSFERS--}', true) . '
   </td>
 </tr>';
 }
index 420a0852c41cbb42d6ceec3076a51158223770f1..5370e111ddc9e1622401a787e3372ac96993eb01 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('mailid')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mailid'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('mailid'));
        return;
 } // END - if
 
@@ -97,7 +97,7 @@ LIMIT 1",
        $listed = true; $DATA = $ID; $mailType = '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, '{--ADMIN_CALL_NOT_DIRECTLY--}');
+       displayMessage('{--ADMIN_CALL_NOT_DIRECTLY--}');
 }
 
 // Shall I display links or not?
@@ -170,7 +170,7 @@ LIMIT %s",
                        $OUT = loadTemplate('admin_list_unconfirmed_list', true, $OUT);
                } 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, '{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}');
+                       $OUT = displayMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}', true);
                }
 
                // Prepare content
@@ -188,17 +188,17 @@ LIMIT %s",
                // Data in pool or in user_stats not found, so let's find out where data is missing
                if (countSumTotalData(bigintval($ID), 'pool', 'id', 'id', true) == 1) {
                        // pool table
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNCONFIRMED_POOL_MISSING', $ID));
+                       displayMessage(getMaskedMessage('ADMIN_UNCONFIRMED_POOL_MISSING', $ID));
                } elseif (countSumTotalData(bigintval($ID), 'user_stats', 'id', 'pool_id', true) == 1) {
                        // user_stats table
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNCONFIRMED_STATS_MISSING', $ID));
+                       displayMessage(getMaskedMessage('ADMIN_UNCONFIRMED_STATS_MISSING', $ID));
                } else {
                        // both or link is invalid
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_UNCONFIRMED_INVALID_LINK--}');
+                       displayMessage('{--ADMIN_UNCONFIRMED_INVALID_LINK--}');
                }
        } elseif (isGetRequestParameterSet('bid')) {
                // Data in bonus table not found
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_UNCONFIRMED_INVALID_LINK--}');
+               displayMessage('{--ADMIN_UNCONFIRMED_INVALID_LINK--}');
        }
 
        // Free result
index ecc63f1688dacc71d073d2b897b39cfffd24b4d0..dc797f59ad31608b5ade0a839e5c204ab860ca86 100644 (file)
@@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__);
 
 if ((!isExtensionInstalled('user')) || (!isExtensionActive('user'))) {
        // Missing extension!
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
        return;
 } // END - if
 
@@ -171,7 +171,7 @@ LIMIT 1",
                loadTemplate('admin_user_details', false, $content);
        } else {
                // Account does not exist!
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MEMBER_404', $userid));
+               displayMessage(getMaskedMessage('ADMIN_MEMBER_404', $userid));
        }
 
        // Free the result
@@ -223,7 +223,7 @@ LIMIT 1",
        // 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, '{--EXTENSION_WARNING_USER_LIMIT--}');
+               displayMessage('{--EXTENSION_WARNING_USER_LIMIT--}');
        } // END - if
 
        // Activate the extension please!
@@ -331,7 +331,7 @@ LIMIT 1",
                loadTemplate('admin_list_user', false, $content);
        } else {
                // No one as registered so far! :-(
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_NONE_REGISTERED--}');
+               displayMessage('{--ADMIN_NO_NONE_REGISTERED--}');
        }
 
        // Free memory
index 9527b59d964e39f57a7d24c303bc3196724d76f4..5d2d33ecd7f8a222cfdb985c913c487b307cec79 100644 (file)
@@ -72,7 +72,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_list_wernis_main', false, $OUT);
 } else {
        // Nothing to display!
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_WERNIS_NO_TRANSFERS--}');
+       displayMessage('{--ADMIN_WERNIS_NO_TRANSFERS--}');
 }
 
 // Free the result
index e8e39f1787a1cb61de4e618bd87686921e408aea..d7e2c5244ff94a06e07fe9ff99ac51aae939aebe 100644 (file)
@@ -43,10 +43,10 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('yoomedia')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('yoomedia'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('yoomedia'));
        return;
 } elseif (!isExtensionActive('bonus')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bonus'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bonus'));
        return;
 }
 
@@ -69,7 +69,7 @@ if (isFormSent()) {
 // Enougth queries left?
 if (getConfig('yoomedia_requests_remain') == '0') {
        // Output message
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_YOOMEDIA_REQUESTS_DEPLETED--}');
+       displayMessage('{--ADMIN_YOOMEDIA_REQUESTS_DEPLETED--}');
 
        // Abort here!
        return false;
@@ -81,7 +81,7 @@ $result = YOOMEDIA_GET_PARSED_RESULT_TEXTMAILS();
 // Sanity-check on result array
 if ((!is_array($result)) || (count($result) == 0) || (!isset($result[0]['id']))) {
        // Invalid result
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_YOOMEDIA_INVALID_RESULT--}');
+       displayMessage('{--ADMIN_YOOMEDIA_INVALID_RESULT--}');
        return false;
 } elseif (count($result[0]) < 7) {
        // Error received so prepare error code
index 0aedbe82b95bdad7e03d1bd522414ff8a6d3eedb..00b2e2560a6390870392c168ae4a8976660432cc 100644 (file)
@@ -119,7 +119,7 @@ if (isGetRequestParameterSet('id')) {
 
 if (!empty($message)) {
        // Output message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } // END - if
 
 // [EOF]
index 4512a62c17331c500461ae73eb9dccba28a91cd1..46c8d6a9961a5483a6ec51e4b5241ea752c58e2d 100644 (file)
@@ -161,7 +161,7 @@ LIMIT 1",
                        if (!empty($message)) {
                                loadTemplate('admin_settings_unsaved', false, $message);
                        } else {
-                               loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_UPDATED--}');
+                               displayMessage('{--ADMIN_USER_UPDATED--}');
                        }
                }
        } else {
index e9799d53b1b328f2c0cb159b1d9047f39d718c07..285e3ce60d2197af5f875a5313359a7f1a348c14 100644 (file)
@@ -74,7 +74,7 @@ if (isGetRequestParameterSet('access')) {
                        clearOutputBuffer();
                } else {
                        // Output message
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNKNOWN_LOGFILE_FORMAT', $access));
+                       displayMessage(getMaskedMessage('ADMIN_UNKNOWN_LOGFILE_FORMAT', $access));
                        return;
                }
 
@@ -83,7 +83,7 @@ if (isGetRequestParameterSet('access')) {
                shutdown();
        } else {
                // Not readable!
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('LOGFILE_NOT_READABLE', $access));
+               displayMessage(getMaskedMessage('LOGFILE_NOT_READABLE', $access));
        }
 } else {
        // Is the directory there?
@@ -104,7 +104,7 @@ if (isGetRequestParameterSet('access')) {
                outputHtml('</ol>');
        } else {
                // logs directory does not exist
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_LOGS_DIR_404--}');
+               displayMessage('{--ADMIN_LOGS_DIR_404--}');
        }
 }
 
index d676120a3c7467879b3bd16478bd769e8235db4b..a5aba07894765e050e1e5c219d283980e7bff840 100644 (file)
@@ -61,7 +61,7 @@ if (isFormSent()) {
        updateConfiguration('maintenance', $target_mode);
 
        // Load template
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } else {
        switch (getMaintenance()) {
                case 'Y': // Maintenance mode is active
index d953213a5bf08ecc90f25a82a0ff0e1797bcadb8..d77a7b1cf885a1defd38da9337607d88f42dc636 100644 (file)
@@ -189,10 +189,10 @@ if (!isFormSent()) {
                                bigintval(postRequestParameter('sort')),
                        ), __FILE__, __LINE__);
        }
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED');
+       displayMessage('{--SETTINGS_SAVED');
 } else {
        // Demo mode!
-       loadTemplate('admin_settings_saved', false, '{--SETTINGS_NOT_SAVED--}');
+       displayMessage('{--SETTINGS_NOT_SAVED--}');
 }
 
 // [EOF]
index ff882da23e1d39230575fe1a50535f5393949dae..9c2698fc687b1a984ce0e32da84abf50546a50a5 100644 (file)
@@ -230,7 +230,7 @@ if ((isFormSent('edit')) && (ifPostContainsSelections()) && (!isDemoModeActive()
                loadTemplate('admin_member_menu_overview', false, $content);
        } else {
                // Menu entries are missing... (???)
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MENUS_FOUND--}');
+               displayMessage('{--ADMIN_NO_MENUS_FOUND--}');
        }
 }
 
index d2352eefc68c15c51dbb119d6e9f3d22a7bca276..6003db9bba992349e52b8fcc688768e6cf5e60f8 100644 (file)
@@ -43,7 +43,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Is sql_patches not yet installed?
 if (!isExtensionInstalled('sql_patches')) {
        // Output warning
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_WARNING_SQL_PATCHES_MISSING--}');
+       displayMessage('{--ADMIN_WARNING_SQL_PATCHES_MISSING--}');
 } // END - if
 
  // Load include file 'overview-inc' (old standard overview page)
@@ -70,7 +70,7 @@ if (getAction() == 'login') {
 // Are we in 'welcome' page and are there jobs to be done?
 if (!ifAdminMenuHasEntries(getAction())) {
        // This menu is empty and so no content is displayed
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MENU_IS_EMPTY', getAction()));
+       displayMessage(getMaskedMessage('ADMIN_MENU_IS_EMPTY', getAction()));
 } elseif ($jobsDone === true) {
        // Generate overview of all main menus
        if ((is_array($GLOBALS['menu']['description'])) && (count($GLOBALS['menu']['description']) > 0)) {
@@ -92,7 +92,7 @@ if (!ifAdminMenuHasEntries(getAction())) {
 } elseif ($taskExt === false) {
        if (isExtensionActive('task')) {
                // Output warning message
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('EXTENSION_WARNING_EXTENSION_INACTIVE', 'task'));
+               displayMessage(getMaskedMessage('EXTENSION_WARNING_EXTENSION_INACTIVE', 'task'));
        } // END - if
 
        // List selected tasks on overview when task management is not active
index f403fa672b010ea233478e6949eb9934fdd432c5..338ae6f7d771c9062a8d733a951d716bf2e65fec 100644 (file)
@@ -81,7 +81,7 @@ if (isFormSent()) {
        }
 
        // Output template
-       loadTemplate('admin_settings_saved', false, $content);
+       displayMessage($content);
 } elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
        // Delete entries here
        $OUT = '';
index 6e766fec5ffe44d1c47b400d5821f40bc2eb8351..0025912ab0838805372a49e86da1ad0bda9dce2f 100644 (file)
@@ -101,7 +101,7 @@ VALUES ('%s','%s','%s')",
        }
 
        // Display message
-       loadTemplate('admin_settings_saved', false, $content);
+       displayMessage($content);
 } elseif ((ifPostContainsSelections()) && (isFormSent('edit'))) {
        // Edit banner
        $OUT = '';
index 10dab0599b0a6eac896737bc1faf5fdb2ed42983..793ca9f2cd9589db753997e9ca7fbd2d285f9d6d 100644 (file)
@@ -88,7 +88,7 @@ if ($repairedWeights > 0) {
 }
 
 // Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
 
 // [EOF]
 ?>
index 38e305b819fc310e445da92b659ebc4ea46dd39f..e0293f6818799fa315a50810ef78df9d2431bee4 100644 (file)
@@ -73,7 +73,7 @@ if (!SQL_HASZERONUMS($result)) {
 }
 
 // Load template
-loadTemplate('admin_settings_saved', false, $content);
+displayMessage($content);
 
 // [EOF]
 ?>
index 90f4d860c7c147463d399abdccca8725d6b5ea9f..af753414d0a5abfab880d86b1d23805a6356f192 100644 (file)
@@ -90,7 +90,7 @@ if ($repairedWeights > 0) {
 }
 
 // Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
 
 //
 ?>
index c262dd4ff7873c40631b3292f3387504908bcf6d..3efb04be091dbf795caa763f44d52a1663c56980 100644 (file)
@@ -88,7 +88,7 @@ if ($repairedWeights > 0) {
 }
 
 // Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
 
-//
+// [EOF]
 ?>
index da0013fdd78ab530258d2be18eefcf99da974de3..523f00c31bbb83833318e01c83822053b6816ddf 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('order')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
        return;
 } // END - if
 
index 39cfa49be6ca5bb5be887f3090904ac7d186af2d..d964131028492fafa03e58699543b1470679f7d4 100644 (file)
@@ -78,7 +78,7 @@ ORDER BY
                } // END - while
 
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_NL_SEND_DONE--}');
+               displayMessage('{--ADMIN_NL_SEND_DONE--}');
        } // END - if
 
        // Free memory
index 5c5dc6c4e97c8fa5d34c2603499cd8356360bf75..da7bed7cce1d32e78f7f39a4c72c5609b63b64e3 100644 (file)
@@ -74,7 +74,7 @@ if (getRequestParameter('userid') == 'all') {
                SQL_FREERESULT($result_main);
 
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_ALL_POINTS_SUBTRACTED--}');
+               displayMessage('{--ADMIN_ALL_POINTS_SUBTRACTED--}');
        } else {
                // Display form add points
                loadTemplate('admin_sub_points_all');
@@ -100,7 +100,7 @@ if (getRequestParameter('userid') == 'all') {
                        sendEmail($content['email'], '{--ADMIN_SUB_SUBJECT--}', $message);
 
                        // Output message
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_SUBTRACTED--}');
+                       displayMessage('{--ADMIN_POINTS_SUBTRACTED--}');
                } else {
                        // Prepare content
                        $content['userid'] = bigintval(getRequestParameter('userid'));
index e7f70a0a17a4e38c8ef91d67850d0a8afd5ae7a1..3ab7526171193323f0ccf2f50dc4f9bf8c565084 100644 (file)
@@ -86,7 +86,7 @@ ORDER BY
                loadTemplate('admin_surfbar_url_stats', false, $content);
        } else {
                // No statistics so far
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_URL_STATS--}');
+               displayMessage('{--ADMIN_SURFBAR_NO_URL_STATS--}');
        }
 } else {
        // Generate general statistics
@@ -126,7 +126,7 @@ ORDER BY
                loadTemplate('admin_surfbar_stats', false, $content);
        } else {
                // No statistics so far
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_STATS--}');
+               displayMessage('{--ADMIN_SURFBAR_NO_STATS--}');
        }
 }
 
index 00a47149682935f051224b650f77f9d16c63b781..c90166a3c53a4dfbb276cb49f5c8805fb6b6a3f1 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('theme')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
        return;
 } // END - if
 
@@ -139,7 +139,7 @@ if (!SQL_HASZERONUMS($result)) {
        // No themes found???
        $OUT .= '<tr>
   <td colspan="7" class="bottom" height="60">
-    ' . loadTemplate('admin_settings_saved', true, '{--ADMIN_NO_THEMES_FOUND--}') . '
+    ' . displayMessage('{--ADMIN_NO_THEMES_FOUND--}', true) . '
   </td>
 </tr>';
 }
index a7f9c10e510ab5f9f68cba3ec39d67032660989c..0d6ad900376e53aaeb6e0c3707f6f9fc63b9f6d8 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 if (!isExtensionActive('theme')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
        return;
 } // END - if
 
@@ -87,7 +87,7 @@ VALUES ('%s','N','%s','%s')",
        }
 
        // Output message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } // END - if
 
 // Initialize array
@@ -152,7 +152,7 @@ foreach ($THEMES['theme_unix'] as $key => $unix) {
 
 if (empty($OUT)) {
        // No themes found???
-       $OUT .= loadTemplate('admin_import_theme_none', true, loadTemplate('admin_settings_saved', true, '{--ADMIN_NO_THEMES_FOUND--}'));
+       $OUT .= loadTemplate('admin_import_theme_none', true, displayMessage('{--ADMIN_NO_THEMES_FOUND--}', true));
 } // END - if
 
 // Load template
index 201cd9fe39edd4b8e2585bfc8602ac3862798b0f..372af1abe1c9beb25e610e4749350c440900392b 100644 (file)
@@ -120,7 +120,8 @@ LIMIT 1",
                }
 
                // Mails unlocked for mail delivery
-               loadTemplate('admin_settings_saved', false, $message);
+
+               displayMessage($message);
        } elseif (isPostRequestParameterSet('reject')) {
                if (ifPostContainsSelections()) {
                        // Reject mail orders
@@ -166,7 +167,7 @@ LIMIT 1",
                        loadTemplate('admin_unlock_emails_redir', false, $OUT);
                } else {
                        // Nothing selected
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_MAILS_NOTHING_CHECKED--}');
+                       displayMessage('{--ADMIN_MAILS_NOTHING_CHECKED--}');
                }
        } elseif ((isFormSent('lock')) && (ifPostContainsSelections()) && (isUrlBlacklistEnabled())) {
                // Lock URLs
@@ -188,7 +189,7 @@ LIMIT 1",
                } // END - foreach
 
                // Output message
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_URLS_BLOCKED--}');
+               displayMessage('{--ADMIN_URLS_BLOCKED--}');
        } elseif ((!isFormSent('lock')) && (!isFormSent('accept')) && (!isFormSent('reject'))) {
                // Mail orders are in pool so we can display them
                $OUT = '';
@@ -210,14 +211,14 @@ LIMIT 1",
                loadTemplate('admin_unlock_emails', false, $content);
        } elseif ((isFormSent('lock')) && (!isUrlBlacklistEnabled())) {
                // URL blacklist not activated
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_URL_BLACKLIST_DISABLED--}');
+               displayMessage('{--ADMIN_URL_BLACKLIST_DISABLED--}');
        } else {
                // Wrong call!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_WRONG_CALL--}');
+               displayMessage('{--ADMIN_WRONG_CALL--}');
        }
 } else {
        // No mail orders fond
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
+       displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');
 }
 
 // [EOF]
index 6e290696dbb6cbf0dfc8fa209a4db570ebab3e83..74bd7e8ce913676eee5cbe2d93cf4d3064d98e09 100644 (file)
@@ -124,7 +124,7 @@ ORDER BY
                                SQL_FREERESULT($result);
                        } else {
                                // Not found
-                               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_ACCOUNT_404_ALREADY_CONFIRMED', $content['id']));
+                               displayMessage(getMaskedMessage('ADMIN_SPONSOR_ACCOUNT_404_ALREADY_CONFIRMED', $content['id']));
                                return;
                        }
 
@@ -187,7 +187,7 @@ LIMIT 1",
                } // END - foreach
        } else {
                // Nothing selected
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_SELECTED_UNLOCK--}');
+               displayMessage('{--ADMIN_SPONSOR_NONE_SELECTED_UNLOCK--}');
        }
 } // END - if
 
@@ -217,7 +217,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_unlock_sponsor', false, $OUT);
 } else {
        // No pending accounts found
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_PENDING--}');
+       displayMessage('{--ADMIN_SPONSOR_NONE_PENDING--}');
 }
 
 // Free memory
index 4c1ec1b9e3270b1c0202f632bae6040389fc0dac..5b0d0066e3086643c375d5ac862b1e956c3cf7a9 100644 (file)
@@ -48,19 +48,19 @@ if ((isPostRequestParameterSet('unlock')) && (is_array(postRequestParameter('url
        // Unlock selected URLs
        if (SURFBAR_ADMIN_UNLOCK_URL_IDS(postRequestParameter('url_id'))) {
                // Unlock done! :-)
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_DONE--}');
+               displayMessage('{--ADMIN_SURFBAR_UNLOCK_DONE--}');
        } else {
                // Unlock failed!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_FAILED--}');
+               displayMessage('{--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, '{--ADMIN_SURFBAR_UNLOCK_DONE--}');
+               displayMessage('{--ADMIN_SURFBAR_UNLOCK_DONE--}');
        } else {
                // Unlock failed!
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_UNLOCK_FAILED--}');
+               displayMessage('{--ADMIN_SURFBAR_UNLOCK_FAILED--}');
        }
 }
 
@@ -93,7 +93,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('admin_unlock_surfbar_urls', false, $OUT);
 } else {
        // No URLs in surfbar
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_SURFBAR_NO_URLS_FOUND--}');
+       displayMessage('{--ADMIN_SURFBAR_NO_URLS_FOUND--}');
 }
 
 // Free result
index ec84e5cfc79e058e4b3a7de59ddf747ffe43d4cf..46049de5431a9705642db06e0cc8a4fcf0287735 100644 (file)
@@ -97,10 +97,10 @@ if (empty($ONLINE['version'])) {
        loadTemplate('admin_update_download', false, $ONLINE);
 } elseif ($ONLINE['revision'] < getCurrentRepositoryRevision()) {
        // Installed revision is newer than on server
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_LOCAL_REVISION_IS_NEWER_THAN_UPDATE--}');
+       displayMessage('{--ADMIN_LOCAL_REVISION_IS_NEWER_THAN_UPDATE--}');
 } else {
        // You have the latest version!
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_UPDATES_AVAILABLE--}');
+       displayMessage('{--ADMIN_NO_UPDATES_AVAILABLE--}');
 }
 
 // [EOF]
index a3e1aafa36a4585aa62b0bad90a0508505c8f807..fe040c30e302ddb8e2e601f2599d7f388ddf1349 100644 (file)
@@ -107,7 +107,7 @@ if ((!empty($FQFN)) && (isFileReadable($FQFN))) {
        outputHtml($content);
 } else {
        // Nothing to load, then we have no directory 'usage'
-       loadTemplate('admin_settings_saved', false, '{--ADMIN_USAGE_DIRECTORY_404--}');
+       displayMessage('{--ADMIN_USAGE_DIRECTORY_404--}');
 }
 
 // [EOF]
index 93ed6696dfb1e8c2c0812fbb9937a5b8cb81880d..ac51462b020053567244723260ebf75c64ecd229 100644 (file)
@@ -65,14 +65,14 @@ if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('user
                        sendEmail($content['email'], '{--ADMIN_CONTACT_USER_SUBJECT--}', $message);
 
                        // Display message
-                       loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_CONTACTED--}');
+                       displayMessage('{--ADMIN_USER_CONTACTED--}');
                } else {
                        // Load contact form template
                        loadTemplate('admin_contct_user_form', false, $content);
                }
        } else {
                // Not found?
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_USER_ACCOUNT_404', bigintval(getRequestParameter('userid'))));
+               displayMessage(getMaskedMessage('ADMIN_USER_ACCOUNT_404', bigintval(getRequestParameter('userid'))));
        }
 } else {
        // Display selection box
index f5dee9dc55c756329a36dfdff422459a50763617..97672830303fbd5bd93214ebe6f6253c24de9c89 100644 (file)
@@ -90,7 +90,7 @@ if (isExtensionActive('online')) {
        } // END - if
 } else {
        // Online statistics deactivated!
-       loadTemplate('admin_settings_saved', false, '{--ONLINE_STATISTICS_DEACTIVATED--}');
+       displayMessage('{--ONLINE_STATISTICS_DEACTIVATED--}');
 }
 
 // [EOF]
index 10674aa667f80e24f850ba6ac4bfd641639e5287..7602a888950463f308091ea444b4ffa3d861a0dd 100644 (file)
@@ -56,7 +56,7 @@ if (isMember()) {
 }
 
 // Output final message
-loadTemplate('admin_settings_saved', false, $GLOBALS['message']);
+displayMessage($GLOBALS['message']);
 
 // [EOF]
 ?>
index 4203c99cfedd63c69c0644de8cfceb628c72bf0f..a31c49f5c7b66d6b2a2fff70c4329489e05d19f4 100644 (file)
@@ -106,7 +106,7 @@ if ((isPostRequestParameterSet('url')) || (isGetRequestParameterSet('url')) || (
                        break;
 
                case 'test_top':
-                       loadTemplate('admin_settings_saved', false, '{--GUEST_FRAMETESTER_TOP--}');
+                       displayMessage('{--GUEST_FRAMETESTER_TOP--}');
                        break;
 
                case 'back': // Back buttom
index 29b88273f316b86822db20485c9725eda992bf8a..f8cdcc1d46ca380b94a2a948892508ff86f7635e 100644 (file)
@@ -47,7 +47,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage(''));
+       displayMessage(generateExtensionInactiveNotInstalledMessage(''));
        return;
 }
 
index 9528e42356a286b1ee574a1423bb8e640f2bbe2f..4733e5f45a0b738f229cfae3d43315c56cb605c0 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 }
 
 if ((!isExtensionActive('theme')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
        return;
 } // END - if
 
index bdd6e19e6226fcb23b723cf1b63756febdcb5f9c..945f6ef8a17af88517c7fda756eb44535c23dfd4 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('active')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('active'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('active'));
        return;
 } // END - if
 
index 5dc11a20ded8094ca89b5d892429540638c9d45f..7dc84d0105ef1d1457008d0c4b423400d1c78d07 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('beg')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('beg'));
        return;
 } // END - if
 
index e12b000e1acb13e877ed29a7e3c33c8ba2cce1a7..9437acbf4ca729f8263a45d318a72f66459f7e0d 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('user')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
        return;
 } // END - if
 
index ba7bd2cc940b28629ac5db3906307a00dda755cf..c185800cc8bbec2b95cbb3bee22285eeadc99ed6 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('doubler')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('doubler'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('doubler'));
        return;
 } // END - if
 
index 5bafc253126bace0df33108813b2627283bd8df4..deb31075c91ff622f5e3152e9f0ded0ce674a6b3 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('user')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
        return;
 } // END - if
 
index 51126ec6d1be2e84331b3d87f326f5d9571d6280..25ef23425dfc6bf629b0949a8738e7fe4b9d16f9 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('mediadata')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mediadata'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('mediadata'));
        return;
 } // END - if
 
index c8a79d642081d3219c92eda3421da65cbd5484fc..50760250e47f9844c966a5cf6dd79c289cbe8575 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('rallye')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('rallye'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('rallye'));
        return;
 } // END - if
 
index ae06e50078449de93bb7516c0b8e72dd3009d28b..a7eb9b6676f4af60f351efe1c55e4d4e9393fdfa 100644 (file)
@@ -44,10 +44,10 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if (!isExtensionActive('register')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('register'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('register'));
        return;
 } elseif (!isExtensionActive('country')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('country'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('country'));
        return;
 }
 
@@ -58,7 +58,7 @@ if ((isFormSent()) && (isRegistrationDataComplete())) {
        doRegistration();
 
        // Output success registration
-       loadTemplate('admin_settings_saved', false, '{--REGISTRATION_DONE--}');
+       displayMessage('{--REGISTRATION_DONE--}');
 } else {
        // Do this only if form is sent
        if (isFormSent()) {
index 01180cea4a4a30cc4c6e7ac9a4c05f33c016fd4b..bea40fcc1ff3dd1b4c52d0c0414f2410985ee656 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('sponsor'))) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } // END - if
 
index 44de25d0127b11d954cefac2e92150875d28a3e5..089f83de149e211f8be476e27676499691b84141 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('sponsor'))) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } // END - if
 
@@ -90,12 +90,12 @@ if (!SQL_HASZERONUMS($result_act)) {
                } // END - while
        } else {
                // No pay types setuped so far!
-               $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', false, loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
+               $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', false, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', true));
        }
 } else {
        // No actions activated so far!
-       $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', true, loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
-       $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', true, loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_ACTIONS_ACTIVATED--}'));
+       $OUT_ACT = loadTemplate('guest_sponsor_infos_none_row', true, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', true));
+       $OUT_PAY = loadTemplate('guest_sponsor_infos_none_row', true, displayMessage('{--SPONSOR_NO_ACTIONS_ACTIVATED--}', true));
 }
 
 // Free memory
index e2c967fa34b3fb2fc39ce0cc80aefc6a4e67fe01..b86614b9b24d1670c99b9b893b05ffa91d648cef 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('sponsor'))) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } elseif (isSponsor()) {
        // Is already a logged-in sponsor
@@ -108,10 +108,10 @@ LIMIT 1",
                                sendAdminNotification('{--ADMIN_NEW_SPONSOR--}', 'admin_sponsor_pending', $data);
 
                                // Sponsor account set to pending
-                               loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_IS_PENDING--}');
+                               displayMessage('{--SPONSOR_ACCOUNT_IS_PENDING--}');
                        } else {
                                // Could not unlock account!
-                               loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_PENDING_FAILED--}');
+                               displayMessage('{--SPONSOR_ACCOUNT_PENDING_FAILED--}');
                        }
                } elseif ($data['status'] == 'EMAIL') {
                        // Changed email adress need to be confirmed
@@ -130,18 +130,18 @@ LIMIT 1",
                        // Check on success
                        if (!SQL_HASZEROAFFECTED()) {
                                // Sponsor account is unlocked again
-                               loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN--}');
+                               displayMessage('{--SPONSOR_ACCOUNT_IS_CONFIRMED_AGAIN--}');
                        } else {
                                // Could not unlock account!
-                               loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_EMAIL_FAILED--}');
+                               displayMessage('{--SPONSOR_ACCOUNT_EMAIL_FAILED--}');
                        }
                } else {
                        /// ??? Other status?
-                       loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACCOUNT_STATUS_FAILED--}');
+                       displayMessage('{--SPONSOR_ACCOUNT_STATUS_FAILED--}');
                }
        } else {
                // No sponsor found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('SPONSOR_ACCOUNT_404', getRequestParameter('hash')));
+               displayMessage(getMaskedMessage('SPONSOR_ACCOUNT_404', getRequestParameter('hash')));
        }
 
        // Free memory
@@ -185,10 +185,10 @@ LIMIT 1",
                        sendEmail(postRequestParameter('email'), '{--SPONSOR_ACTIVATION_LINK_SUBJECT--}', $message_sponsor);
 
                        // Output message
-                       loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACTIVATION_LINK_SENT--}');
+                       displayMessage('{--SPONSOR_ACTIVATION_LINK_SENT--}');
                } else {
                        // No account found or not UNCONFIRMED
-                       loadTemplate('admin_settings_saved', false, '{--SPONSOR_ACTIVATION_LINK_404--}');
+                       displayMessage('{--SPONSOR_ACTIVATION_LINK_404--}');
                }
 
                // Free memory
@@ -242,10 +242,10 @@ LIMIT 1",
                                array(md5($DATA['password']), bigintval($DATA['id'])), __FILE__, __LINE__);
 
                        // Output message
-                       loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOST_PASSWORD_SENT--}');
+                       displayMessage('{--SPONSOR_LOST_PASSWORD_SENT--}');
                } else {
                        // No account found or not UNCONFIRMED
-                       loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOST_PASSWORD_404--}');
+                       displayMessage('{--SPONSOR_LOST_PASSWORD_404--}');
                }
 
                // Free memory
@@ -283,21 +283,21 @@ LIMIT 1",
                                redirectToUrl('modules.php?module=sponsor');
                        } else {
                                // Cookie setup failed!
-                               loadTemplate('admin_settings_saved', false, '{--SPONSOR_COOKIE_SETUP_FAILED--}');
+                               displayMessage('{--SPONSOR_COOKIE_SETUP_FAILED--}');
 
                                // Login formular and other links
                                loadTemplate('guest_sponsor_login');
                        }
                } else {
                        // Status is not fine
-                       loadTemplate('admin_settings_saved', false, '{--SPONSOR_LOGIN_FAILED_' . strtoupper($status) . '--}');
+                       displayMessage('{--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, '{--SPONSOR_LOGIN_FAILED_404_WRONG_PASS--}');
+               displayMessage('{--SPONSOR_LOGIN_FAILED_404_WRONG_PASS--}');
 
                // Login formular and other links
                loadTemplate('guest_sponsor_login');
index f78c2da510161d74989ae9d2a7d486a61df33010..3a8a20154a6fab27124f59e44cbfba569a87f65c 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('sponsor'))) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } // END - if
 
@@ -228,7 +228,7 @@ LIMIT 1",
        $message = doProcessSponsorFormRequest($messageArray);
 
        // Display message
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } else {
        // Check for payment types
        $result = SQL_QUERY('SELECT
@@ -281,7 +281,7 @@ ORDER BY
 
                        // Errors found?
                        if (count($formErrors) > 0) {
-                               $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_REGISTER_SOMETHING_MISSING--}');
+                               $OUT = displayMessage('{--SPONSOR_REGISTER_SOMETHING_MISSING--}', true);
                                $OUT .= '<ol>';
                                foreach ($formErrors as $error) {
                                        $OUT .= '<li>' . $error . '</li>';
@@ -306,7 +306,7 @@ ORDER BY
                loadTemplate('guest_sponsor_reg', false, $content);
        } else {
                // Nothing added so far
-               loadTemplate('admin_settings_saved', false, '{--SPONSOR_PAYMENT_LIST_IS_EMPTY--}');
+               displayMessage('{--SPONSOR_PAYMENT_LIST_IS_EMPTY--}');
        }
 
        // Free memory
index bf0e3ea7d796e915a0763b424251254dc188f565..ff9863dd8b2ba6905685530c049b47abb9a9ba43 100644 (file)
@@ -208,12 +208,12 @@ switch (getConfig('guest_stats')) {
                        loadTemplate('guest_stats_table', false, $content);
                } else {
                        // No clicks detected
-                       loadTemplate('admin_settings_saved', false, '{--GUEST_STATS_NO_CLICKS--}');
+                       displayMessage('{--GUEST_STATS_NO_CLICKS--}');
                }
                break;
 
        case 'INACTIVE': // Deactivated stats
-               loadTemplate('admin_settings_saved', false, '{--GUEST_STATS_DEACTIVATED--}');
+               displayMessage('{--GUEST_STATS_DEACTIVATED--}');
                break;
 } // END - switch
 
index b9fd3f14db4eb5326f60ebf75a57ba24536edb6b..0e1d4904ad2c1771102ca3af4304d9bb1e3165eb 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('top10')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('top10'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('top10'));
        return;
 } // END - if
 
index 27166d8584534232781c71087dcd36b756320876..813425e464cb487b5196ba1d265b436d01e01ca4 100644 (file)
@@ -47,7 +47,7 @@ loadIncludeOnce('inc/classes/rdf.class.php');
 addYouAreHereLink('guest', __FILE__);
 
 if ((!isExtensionActive('wernis')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('wernis'));
        return;
 } // END - if
 
index 2404416371d43d3ec184d341548f1a860f0e5486..ec95c9aa6ce7bcafc4e4552be6478676730ff8c7 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage(''));
+       displayMessage(generateExtensionInactiveNotInstalledMessage(''));
        return;
 } // END - if
 
index 3e087dff57220366b6cb92e44f3c994d6ddf8043..4980981e94d5641a628113b4d21f0cfcf34a23a1 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bank')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
        return;
 } // END - if
 
index 53e8058682cdb36c4e4f969d414379b8f291e55a..e50d203a1295a5430c0d2294eb3bbe8559729b5c 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('order')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
        return;
 } // END - if
 
index f4b6faf37ad32d5ef7b9d328cc03c0efae4c7fcf..45990768d0e2946086b5e5fb22944755af136663 100644 (file)
@@ -49,7 +49,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
        return;
 } // END - if
 
index ebfa82cb7e135e66ecbfc4b8a60dee0f343b9bd4..9a725b16723a09ebe52192be98819e7e6306965f 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 }
 
 if ((!isExtensionActive('theme')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
        return;
 } // END - if
 
index 43d1087ce2b34d7a2ccc7a17aa786ba2bc75f170..a15af144d58d71927f69a2c0df989be4729a4c57 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bank')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
        return;
 } // END - if
 
index b8ace961f417beef67dce7fd2a91a60695ba7381..d78bd5454a8eff7b32bd80882773e1d6470a3870 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bank')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
        return;
 } // END - if
 
index 2066c6fbf325ca55c37e71bd9c62f69719c176ee..5c019a242ba8c5c7c45b5ff6ffdec6467fb88aba 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bank')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
        return;
 }
 
index 43d1087ce2b34d7a2ccc7a17aa786ba2bc75f170..a15af144d58d71927f69a2c0df989be4729a4c57 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bank')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
        return;
 } // END - if
 
index 2066c6fbf325ca55c37e71bd9c62f69719c176ee..5c019a242ba8c5c7c45b5ff6ffdec6467fb88aba 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bank')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
        return;
 }
 
index 2c6c2ca755fe4d98cf4ef57c0e6fc54cf6e65090..48902d0bcb8b2876630e04ab976aea9968dbd9c1 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('beg')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('beg'));
        return;
 } // END - if
 
index 1061adf2c8b36e257d8e34d83127a02bf0c41ab1..996c31ae3622b5b923854c42e70bb81abbe2c141 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('beg')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('beg'));
        return;
 } // END - if
 
index a480b8afd2184a8c56f6bad1c4ad3709c912a041..8c8233c23de57fb393bb5ab819dd623041a0b406 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('bonus')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bonus'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('bonus'));
        return;
 } // END - if
 
index 5c75e5f5bfe98a7aa080c905cb05742d2493acc5..45e79d7492528bf8cf62b26c3dc4871debd1d0ce 100644 (file)
@@ -110,15 +110,15 @@ if (!SQL_HASZERONUMS($result)) {
                // Categories saved?
                if ($count > 0) {
                        // Output message
-                       loadTemplate('admin_settings_saved', false, '{--MEMBER_CATEGORIES_SAVED--}');
+                       displayMessage('{--MEMBER_CATEGORIES_SAVED--}');
                } else {
                        // None save
-                       loadTemplate('admin_settings_saved', false, '{--MEMBER_CATEGORIES_NOT_SAVED--}');
+                       displayMessage('{--MEMBER_CATEGORIES_NOT_SAVED--}');
                }
        } else {
                if ($LEAST === true) {
                        // Also here we have to secure it... :(
-                       loadTemplate('admin_settings_saved', false, '{--CHOOSE_MORE_CATEGORIES--}');
+                       displayMessage('{--CHOOSE_MORE_CATEGORIES--}');
                } // END - if
 
                // Put some data into constants for the template
@@ -159,7 +159,7 @@ if (!SQL_HASZERONUMS($result)) {
        }
 } else {
        // No cateogries are defined yet
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_CATEGORIES--}');
+       displayMessage('{--MEMBER_NO_CATEGORIES--}');
 }
 
 // Free result
index 344a61290d2f088de14cbdf883072fe7a269e721..3687b6aeea1acdfeb2719909f9a8093ea85783c6 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('doubler')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('doubler'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('doubler'));
        return;
 } // END - if
 
index 88bdb0064d0d98593b034e0bf8ecd259b1986000..10c76eea900da06e9b223b983bca4cafac7010b6 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('holiday')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('holiday'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('holiday'));
        return;
 } // END - if
 
@@ -98,7 +98,7 @@ if ((SQL_NUMROWS($result1) == 1) || (SQL_NUMROWS($result2) == 1)) {
                }
 
                // Display message and exit here
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_HOLIDAY_ORDER', generateDateTime($stamp, 1)));
+               displayMessage(getMaskedMessage('MEMBER_HOLIDAY_ORDER', generateDateTime($stamp, 1)));
                return;
        }
 } // END - if
@@ -152,7 +152,7 @@ LIMIT 1",
                createNewTask('{--ADMIN_HOLIDAY_SUBJECT--}', $message, 'HOLIDAY_REQUEST', getMemberId());
 
                // Display message
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_IS_ACTIVATED_NOW--}');
+               displayMessage('{--MEMBER_HOLIDAY_IS_ACTIVATED_NOW--}');
        }
 } // END - if
 
@@ -211,21 +211,21 @@ LIMIT 1",
                                sendAdminNotification('{--ADMIN_HOLIDAY_DEAC_SUBJECT--}', 'admin_holiday_deactivated', $content, getMemberId());
 
                                // Display message to user
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_DEACTIVATED_NOW--}');
+                               displayMessage('{--MEMBER_HOLIDAY_DEACTIVATED_NOW--}');
                        } else {
                                // Display message to user
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_CANNOT_DEACTIVATE--}');
+                               displayMessage('{--MEMBER_HOLIDAY_CANNOT_DEACTIVATE--}');
                        }
 
                        // Free result
                        SQL_FREERESULT($result2);
                } elseif ($content['holiday_active'] == 'Y') {
                        // To fast!
-                       loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_LOCKED--}');
+                       displayMessage('{--MEMBER_HOLIDAY_LOCKED--}');
                }
        } else {
                // User not found
-               loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_HOLIDAY_NOT_STOPPED_404', getMemberId()));
+               displayMessage(getMaskedMessage('MEMBER_HOLIDAY_NOT_STOPPED_404', getMemberId()));
        }
 
        // Free result
@@ -311,7 +311,7 @@ LIMIT 1",
                } // END - switch
        } else {
                // To fast!
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_LOCKED--}');
+               displayMessage('{--MEMBER_HOLIDAY_LOCKED--}');
        }
 } // END - if
 
index 276cfb1f73c3c943b57828343612fd1e6714bb8e..c00badbd45d26989eb9c9fb3f41f08fbb77f409b 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('html_mail')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('html_mail'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('html_mail'));
        return;
 } // END - if
 
@@ -55,7 +55,7 @@ if (isFormSent()) {
        // 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, '{--MEMBER_SETTINGS_SAVED--}');
+       displayMessage('{--MEMBER_SETTINGS_SAVED--}');
 } else {
        // Prepare it
        $content['html_y'] = '';
index 9d8d6127dd62cfff6ce390764cd5b97b96ce3c63..14cb33b936efb6e2545e291465cea39721a5fe07 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('mydata')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mydata'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('mydata'));
        return;
 } // END - if
 
@@ -71,9 +71,9 @@ switch ($mode) {
                $content['last_update'] = generateDateTime($content['last_update'], 0);
 
                // How far is last change on his profile away from now?
-               if ((($content['last_update'] + getConfig('profile_lock')) > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
+               if ((($content['last_update'] + getProfileLock()) > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
                        // You cannot change your account
-                       $content['change'] = loadTemplate('admin_settings_saved', true, '<div class="notice">' . getMaskedMessage('MEMBER_PROFILE_LOCKED', generateDateTime($content['last_update'] + getConfig('profile_lock'), 0)) . '</div>');
+                       $content['change'] = displayMessage('<div class="notice">' . getMaskedMessage('MEMBER_PROFILE_LOCKED', generateDateTime($content['last_update'] + getProfileLock(), 0)) . '</div>', true);
                } else {
                        // He is allowed to change his profile
                        $content['change'] = loadTemplate('member_mydata_button', true);
@@ -123,14 +123,14 @@ LIMIT 1",
                // Free result
                SQL_FREERESULT($result);
 
-               $content['update_check'] = $content['last_update'] + getConfig('profile_lock');
+               $content['update_check'] = $content['last_update'] + getProfileLock();
 
                // How far is last change on his profile away from now?
-               if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
-                       $content['update_check'] = getMaskedMessage('MEMBER_PROFILE_LOCKED', generateDateTime($content['update_check'] + getConfig('profile_lock'), 0));
+               if (($content['update_check'] > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
+                       $content['update_check'] = getMaskedMessage('MEMBER_PROFILE_LOCKED', generateDateTime($content['update_check'] + getProfileLock(), 0));
 
                        // You cannot change your account
-                       loadTemplate('admin_settings_saved', false, $content['update_check']);
+                       displayMessage($content['update_check']);
                } else {
                        // He is allowed to change his profile
                        foreach (array('gender_m','gender_f','gender_c') as $entry) {
@@ -189,17 +189,17 @@ LIMIT 1",
                $content = merge_array($content, getUserDataArray());
 
                // Calculate time to check
-               $content['update_check'] = $content['last_update'] + getConfig('profile_lock');
+               $content['update_check'] = $content['last_update'] + getProfileLock();
 
                // How far is last change on his profile away from now?
-               if (($content['update_check'] > time()) && (!isAdmin()) && (getConfig('profile_lock') > 0)) {
-                       $content['update_check'] = generateDateTime($content['update_check'] + getConfig('profile_lock'), 0);
+               if (($content['update_check'] > time()) && (!isAdmin()) && (getProfileLock() > 0)) {
+                       $content['update_check'] = generateDateTime($content['update_check'] + getProfileLock(), 0);
 
                        // You cannot change your account
-                       loadTemplate('admin_settings_saved', false, $content['update_check']);
+                       displayMessage($content['update_check']);
                } elseif ((!isEmailValid(postRequestParameter('email'))) && (!isAdmin())) {
                        // Invalid email address!
-                       loadTemplate('admin_settings_saved', false, '{--INVALID_EMAIL_ENTERED--}');
+                       displayMessage('{--INVALID_EMAIL_ENTERED--}');
                } else {
                        // Generate hash
                        $hash = generateHash(postRequestParameter('pass1'), substr($content['password'], 0, -40));
@@ -301,11 +301,11 @@ LIMIT 1",
                                        sendModeMails ('mydata', $modes);
                                } else {
                                        // Something went wrong
-                                       loadTemplate('admin_settings_saved', false, '{--MEMBER_UPDATE_FAILED--}');
+                                       displayMessage('{--MEMBER_UPDATE_FAILED--}');
                                }
                        } else {
                                // Entered wrong pass for updating profile
-                               loadTemplate('admin_settings_saved', false, '{--MEBER_UPDATE_PWD_WRONG--}');
+                               displayMessage('{--MEBER_UPDATE_PWD_WRONG--}');
                        }
                }
                break;
index a0cf5bfecd790cb1de645603d02e19e340343d8b..0c4a786a4c1afc09d644e61ab0120022dcd897f9 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('nickname')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('nickname'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('nickname'));
        return;
 } // END - if
 
@@ -81,7 +81,7 @@ if ($isValid === true) {
        }
 
        // Load template
-       loadTemplate('admin_settings_saved', false, $content);
+       displayMessage($content);
 } else {
        // Do we have already submit the form?
        if (isPostRequestParameterSet('nickname')) {
index 59b1cb1ba080a6ba2fa96345f2cdf267ab34ccfc..0110dfec0235d9d7abf867882033ebeb7b02bed3 100644 (file)
@@ -44,7 +44,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('order')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
        return;
 } // END - if
 
@@ -61,7 +61,7 @@ $total = getTotalPoints(getMemberId());
 
 if ((isExtensionInstalledAndNewer('holiday', '0.1.3')) && (getUserData('holiday_active') == 'Y')) {
        // Holiday is active!
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_ORDER_NOT_POSSIBLE--}');
+       displayMessage('{--MEMBER_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
        //
@@ -397,7 +397,7 @@ LIMIT 1",
        $url = 'modules.php?module=login&amp;what=order&amp;code=' . getCode('MORE_RECEIVERS1');
 } elseif (($ALLOWED == '0') && (getConfig('order_max_full') == 'ORDER')) {
        // No more mail orders allowed
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_ORDER_ALLOWED_EXHAUSTED--}');
+       displayMessage('{--MEMBER_ORDER_ALLOWED_EXHAUSTED--}');
 } elseif ($links < getConfig('unconfirmed')) {
        // Show only enabled categories to the user ...
        $whereStatement = " WHERE `visible`='Y'";
@@ -514,7 +514,7 @@ LIMIT 1",
 
                                if (!empty($message)) {
                                        // We got system message so we drop it out to the user
-                                       loadTemplate('admin_settings_saved', false, $message);
+                                       displayMessage($message);
                                } // END - if
 
                                // Load all email types...
@@ -659,19 +659,19 @@ LIMIT 1",
                                }
                        } else {
                                // No mail types defined
-                               loadTemplate('admin_settings_saved', false, '<span class="notice">{--MEMBER_NO_PAYMENTS--}</span>');
+                               displayMessage('<span class="notice">{--MEMBER_NO_PAYMENTS--}</span>');
                        }
                } else {
                        // No points left
-                       loadTemplate('admin_settings_saved', false, '<span class="notice">{--MEMBER_NO_POINTS--}</span>');
+                       displayMessage('<span class="notice">{--MEMBER_NO_POINTS--}</span>');
                }
        } else {
                // No cateogries are defined yet
-               loadTemplate('admin_settings_saved', false, '<span class="notice">{--MEMBER_NO_CATEGORIES--}</span>');
+               displayMessage('<span class="notice">{--MEMBER_NO_CATEGORIES--}</span>');
        }
 } else {
        // Please confirm some mails first
-       loadTemplate('admin_settings_saved', false, '<span class="notice">{%message,MEMBER_LINKS_LEFT=' . $links . '%}</span>', $links);
+       displayMessage('<span class="notice">{%message,MEMBER_LINKS_LEFT=' . $links . '%}</span>', $links);
 }
 
 if (!empty($url)) {
index 8e62a5bd70a42d0c6157b128378735fc753b3765..aa9e6e516c4175c6f649607792caf42a412bed7d 100644 (file)
@@ -48,7 +48,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('payout')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('payout'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('payout'));
        return;
 } // END - if
 
@@ -119,7 +119,7 @@ ORDER BY
                outputPayoutList($totalPoints);
        } else {
                // No payout types setup
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
+               displayMessage('{--MEMBER_PAYOUT_SETUP_INCOMPLETE--}');
        }
 } else {
        // Chedk if he can get paid by selected type
@@ -207,7 +207,7 @@ VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')",
                                sendAdminNotification('{--ADMIN_PAYOUY_REQUEST_SUBJECT--}', $admin_tpl, postRequestArray(), getMemberId());
 
                                // Load template and output it
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_REQUEST_SENT--}');
+                               displayMessage('{--MEMBER_PAYOUT_REQUEST_SENT--}');
                        } elseif ($content['allow'] == 'Y') {
                                // Prepare content
                                $content = array(
@@ -231,11 +231,11 @@ VALUES (%s,%s,%s,'%s',%s, UNIX_TIMESTAMP(), 'NEW','%s')",
                        }
                } else {
                        // Not enougth points
-                       loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_POINTS_NOT_ENOUGTH--}');
+                       displayMessage('{--MEMBER_PAYOUT_POINTS_NOT_ENOUGTH--}');
                }
        } else {
                // id is invalid
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_PAYOUT_ID_INVALID--}');
+               displayMessage('{--MEMBER_PAYOUT_ID_INVALID--}');
        }
 
        // Free result
index 5c7f34e643e3946a9c387f549b533f9f9d7496b3..0fdd37c1305f53dcd8f79c021c508321070e5f4b 100644 (file)
@@ -155,10 +155,10 @@ if (isExtensionActive('user')) {
        loadTemplate('member_points', false, $content);
 } elseif (isAdmin()) {
        // Missing extension
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
 } else {
        // Message for user
-       loadTemplate('admin_settings_saved', false, '{--PROBLEM_POINTS_OVERVIEW_UNAVAILABLE--}');
+       displayMessage('{--PROBLEM_POINTS_OVERVIEW_UNAVAILABLE--}');
 }
 
 if (isExtensionActive('payout')) {
index 8a483cb07fc8c4ddd7a76389406b02f94dbf79a3..eb627aa0a5572ce79708808c5d31484c1acd51cb 100644 (file)
@@ -48,14 +48,14 @@ addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('primera')) && (!isAdmin())) {
        // Extension 'primera' is not activated
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('primera'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('primera'));
        return;
 } // END - if
 
 // 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, '{--MEMBER_PRIMERA_API_DATA_MISSING--}');
+       displayMessage('{--MEMBER_PRIMERA_API_DATA_MISSING--}');
        return;
 } // END - if
 
@@ -106,7 +106,7 @@ if (getRequestParameter('mode') == 'pay') {
        // Is this enougth for a payout?
        if ($points < getConfig('primera_min_payout')) {
                // No, then abort here
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT--}');
+               displayMessage('{--MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT--}');
                return;
        } // END - if
 
@@ -114,7 +114,7 @@ if (getRequestParameter('mode') == 'pay') {
        $content['points'] = $points;
 } else {
        // Invalid mode!
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_PRIMERA_MODE_INVALID', getRequestParameter('mode')));
+       displayMessage(getMaskedMessage('MEMBER_PRIMERA_MODE_INVALID', getRequestParameter('mode')));
        return;
 }
 
@@ -126,22 +126,22 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                        // Is the user id and password set?
                        if (!isPostRequestParameterSet('primera_nickname')) {
                                // Nothing entered in Primus nickname
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
+                               displayMessage('{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
                        } elseif (!isPostRequestParameterSet('primera_password')) {
                                // Nothing entered in Primera password
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
+                               displayMessage('{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
                        } elseif (!isPostRequestParameterSet('amount')) {
                                // Nothing entered in amount
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_AMOUNT--}');
+                               displayMessage('{--MEMBER_PRIMERA_EMPTY_AMOUNT--}');
                        } elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {
                                // Only numbers in amount!
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_INVALID_AMOUNT--}');
+                               displayMessage('{--MEMBER_PRIMERA_INVALID_AMOUNT--}');
                        } elseif (postRequestParameter('amount') < getConfig('primera_min_payout')) {
                                // Not enougth entered!
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_AMOUNT_SMALLER_MIN--}');
+                               displayMessage('{--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)));
+                               displayMessage(sprintf(getMessage('MEMBER_PRIMERA_PAYOUT_POINTS_DEPLETED'), bigintval(postRequestParameter('amount')), bigintval($points)));
                        } else {
                                // All is fine here so do the payout
                                $success = executePrimeraPayout(postRequestParameter('primera_nickname'), md5(postRequestParameter('primera_password')), postRequestParameter('amount'));
@@ -163,21 +163,21 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                                array(postRequestParameter('primera_nickname'), getMemberId()), __FILE__, __LINE__);
 
                                        // All done!
-                                       loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_PAYOUT_DONE--}');
+                                       displayMessage('{--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
-                                       loadTemplate('admin_settings_saved', false, GET_PRIMERA_ERROR_MESSAGE());
+                                       displayMessage(GET_PRIMERA_ERROR_MESSAGE());
                                } else {
                                        // Something went wrong
-                                       loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_PRIMERA_PAYOUT_FAILED', GET_PRIMERA_ERROR_MESSAGE()));
+                                       displayMessage(getMaskedMessage('MEMBER_PRIMERA_PAYOUT_FAILED', GET_PRIMERA_ERROR_MESSAGE()));
                                }
                        }
                        break;
 
                default: // Invalid mode!
                        logDebugMessage(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", getRequestParameter('mode')));
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_PRIMERA_MODE_INVALID', getRequestParameter('mode')));
+                       displayMessage(getMaskedMessage('MEMBER_PRIMERA_MODE_INVALID', getRequestParameter('mode')));
                        return;
        }
 } // END - if
index b438e2fe6ebe4a4963476b396e6d16290348bc62..40591fb49c54d48bdc05abee7229170aa6510c4e 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('rallye')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('rallye'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('rallye'));
        return;
 } // END - if
 
index 8075701382b461b125c05dda1f3a2028a207ffbf..cf67b296431c2a77a396673c21d0f4e7caa923a6 100644 (file)
@@ -43,7 +43,7 @@ if (!defined('__SECURITY')) {
        redirectToIndexMemberOnlyModule();
 } elseif (!isRefbackEnabled()) {
        // Output message
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_DISABLED--}');
+       displayMessage('{--MEMBER_REFBACK_DISABLED--}');
 
        // Abort here
        return false;
@@ -53,7 +53,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('refback')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('refback'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('refback'));
        return;
 } // END - if
 
@@ -72,17 +72,17 @@ if ((isFormSent('edit')) && (isPostRequestParameterSet('id'))) {
                        // Check status
                        if (isset($status['ok'])) {
                                // No message found
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_DONE--}');
+                               displayMessage('{--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']));
+                               displayMessage(getMaskedMessage('MEMBER_REFBACK_ERROR_MESSAGE', $status['message']));
                        } else {
                                // No message found
-                               loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_ERROR_EMPTY_MESSAGE--}');
+                               displayMessage('{--MEMBER_REFBACK_ERROR_EMPTY_MESSAGE--}');
                        }
                } else {
                        // Percents out-of-bounds ;-)
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_REFBACK_ERROR_OUT_OF_BOUNDS'));
+                       displayMessage(getMaskedMessage('MEMBER_REFBACK_ERROR_OUT_OF_BOUNDS'));
                }
 
                // Insert line
@@ -146,7 +146,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('member_refback_list', false, $OUT);
 } else {
        // No entries
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_NO_ENTRIES--}');
+       displayMessage('{--MEMBER_REFBACK_NO_ENTRIES--}');
 }
 
 // Free result
index 609c738f6e9367461f28fe6bdf3bede4e32eae08..c1a5a1794b818f27f4466aefc46ed3a9250448f4 100644 (file)
@@ -108,7 +108,7 @@ if (!SQL_HASZERONUMS($result)) {
        $content['refbanner_content'] = loadTemplate('member_reflinks_table', true, $OUT);
 } else {
        // No refbanner found
-       $content['refbanner_content'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_REFBANNER_FOUND--}');
+       $content['refbanner_content'] = displayMessage('{--MEMBER_NO_REFBANNER_FOUND--}', true);
 }
 
 // Free result
index f0bdf2f57e2cbcb588886aef516d16812444e7f0..f8fb335492a0aeb071ea12b5dcea284df00928e8 100644 (file)
@@ -90,7 +90,7 @@ if (!SQL_HASZERONUMS($result)) {
        loadTemplate('member_ref_list', false, $OUT);
 } else {
        // No entries
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_NO_ENTRIES--}');
+       displayMessage('{--MEMBER_REFBACK_NO_ENTRIES--}');
 }
 
 // Free result
index 80d60391b4a422e27b57d10df278a055dca60601..067735061678477010712de91589c0a5fe8c2fa6 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('sponsor')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } // END - if
 
index 2153250a164115ca30bf44e8d6ba79eb4de7c8dc..3411c12dff23b800d53172b8564e1a601f59cdec 100644 (file)
@@ -76,7 +76,7 @@ if (!SQL_HASZERONUMS($result)) {
        $main_content['pool'] = loadTemplate('member_pool_table', true, $OUT);
 } else {
        // No mails in pool!
-       $main_content['pool'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_MAILS_IN_POOL--}');
+       $main_content['pool'] = displayMessage('{--MEMBER_NO_MAILS_IN_POOL--}', true);
 }
 
 // Free result
@@ -110,7 +110,7 @@ if (!SQL_HASZERONUMS($result)) {
        $main_content['stats'] = loadTemplate('member_stats_table', true, $OUT);
 } else {
        // No mail orders fond
-       $main_content['stats'] = loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_MAILS_IN_STATS--}');
+       $main_content['stats'] = displayMessage('{--MEMBER_NO_MAILS_IN_STATS--}', true);
 }
 
 // Free result
index bda4e1beeb43ce02f3ce80f2f4e1617decc359e4..31642af3c4595c0eb8ff43cac8bf2754042ffaec 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('support')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('support'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('support'));
        return;
 } // END - if
 
index 3684fd55c7f6aa91db5e788d33c39101d9d30ac6..f7dd0aa4656eaffd0771edb9215a7d752e0265d1 100644 (file)
@@ -47,14 +47,14 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
        return;
 } // END - if
 
 // Still allowed to book more URLs?
 if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
        // No more URLs allowed to book!
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_MORE_ALLOWED--}');
+       displayMessage('{--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'))) {
@@ -75,7 +75,7 @@ if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
        } // END - if
 
        // Load message template
-       loadTemplate('admin_settings_saved', false, $message);
+       displayMessage($message);
 } else {
        // Prepare some content
        $content = array(
index 0b10c3418c18ee825d17e17d32fdbc7346a60806..46474d66561e06a1e99a64312a29340b7da5870b 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
        return;
 } // END - if
 
@@ -60,11 +60,11 @@ if ((isFormSent()) && (isPostRequestParameterSet('action')) && (isPostRequestPar
                // Action performed but shall we display it?
                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, '{--MEMBER_SURFBAR_ACTION_DONE--}');
+                       displayMessage('{--MEMBER_SURFBAR_ACTION_DONE--}');
                } // END - if
        } else {
                // Something went wrong
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_ACTION_FAILED--}');
+               displayMessage('{--MEMBER_SURFBAR_ACTION_FAILED--}');
        }
 } elseif (count($urlArray) > 0) {
        // List all URLs
@@ -87,7 +87,7 @@ if ((isFormSent()) && (isPostRequestParameterSet('action')) && (isPostRequestPar
        loadTemplate('member_surfbar_list', false, $OUT);
 } else {
        // No URLs booked so far
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_SURFBAR_NO_URLS_FOUND--}');
+       displayMessage('{--MEMBER_SURFBAR_NO_URLS_FOUND--}');
 }
 
 // [EOF]
index 63db9020c247e1fadcca59b4c1b6de53b008d1d9..c721627d3c83c17799add27acf784c1925c1bb75 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
        return;
 } // END - if
 
index f7971b61a40606045043462299fb93dd64771d20..b4eebd6769650641eb5fd2980b8b88af276f53d3 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
        return;
 } // END - if
 
index 603938e115f2569fa38a94ad0973e6d6328ce0d3..20d74a441e1e3ef05242ecbcfe584c701fd3a123 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('theme')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
        return;
 } // END - if
 
@@ -62,7 +62,7 @@ if (isPostRequestParameterSet('member_theme')) {
        setTheme($newTheme);
 
        // Theme saved!
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_THEME_SAVED--}');
+       displayMessage('{--MEMBER_THEME_SAVED--}');
 } // END - if
 
 // Initialize array
@@ -131,7 +131,7 @@ if (empty($OUT)) {
        // No themes found???
        $OUT = '<tr>
   <td colspan="5" class="bottom" height="80">
-    ' . loadTemplate('admin_settings_saved', true, '{--MEMBER_NO_THEMES_FOUND--}') . '
+    ' . displayMessage('{--MEMBER_NO_THEMES_FOUND--}', true) . '
   </td>
 </tr>';
 } // END - if
index 0bdd10de82f6abad6011ab6ffcb1cc939b39c6e1..e9e78c92b8ebdc13bada46f49120d7ea1c1f4fe1 100644 (file)
@@ -46,7 +46,7 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('transfer')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('transfer'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('transfer'));
        return;
 } // END - if
 
@@ -174,7 +174,7 @@ switch ($mode) {
                                sendAdminNotification($adminSubject, 'admin_transfer_points', $content);
 
                                // Transfer is completed
-                               loadTemplate('admin_settings_saved', false, '<div>{--TRANSFER_COMPLETED--}' . '</div><div><a href="{%url=modules.php?module=login&amp;what=transfer%}">{--TRANSFER_CONTINUE_OVERVIEW--}</a></div>');
+                               displayMessage('<div>{--TRANSFER_COMPLETED--}' . '</div><div><a href="{%url=modules.php?module=login&amp;what=transfer%}">{--TRANSFER_CONTINUE_OVERVIEW--}</a></div>');
                        } elseif ($valid_code === false) {
                                // Invalid Touring code!
                                loadTemplate('admin_settings_unsaved', false, '{--TRANSFER_INVALID_CODE--}');
@@ -242,7 +242,7 @@ switch ($mode) {
                                SQL_FREERESULT($result);
                        } else {
                                // No one else is opt-in
-                               $OUT = loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_ONE_ELSE_OPT_IN--}');
+                               $OUT = displayMessage('{--TRANSFER_NO_ONE_ELSE_OPT_IN--}', true);
                                $content['to_disabled'] = ' disabled="disabled"';
                        }
 
@@ -264,7 +264,7 @@ switch ($mode) {
                                $content['captcha_code'] = '<input type="hidden" name="code_chk" value="' . $rand . '" /><input type="text" name="code" class="form_field" size="5" maxlength="7"' . $content['to_disabled'] . ' />&nbsp;' . $img;
                        } else {
                                $code = '00000';
-                               $content['captcha_code'] = loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_CODE--}');
+                               $content['captcha_code'] = displayMessage('{--TRANSFER_NO_CODE--}', true);
                        }
 
                        // Init points/reason
@@ -332,7 +332,7 @@ switch ($mode) {
                        // Nothing for in or out
                        $OUT = '<tr>
   <td colspan="5" align="center" class="bottom">
-    ' . loadTemplate('admin_settings_saved', true, $nothingMessage) . '
+    ' . displayMessage($nothingMessage, true) . '
   </td>
 </tr>';
                }
@@ -416,7 +416,7 @@ KEY (`party_userid`)
                        // Nothing for in and out
                        $OUT = '<tr>
   <td colspan="5" align="center" class="bottom">
-    ' . loadTemplate('admin_settings_saved', true, '{--TRANSFER_NO_INOUT_TRANSFERS--}') . '
+    ' . displayMessage('{--TRANSFER_NO_INOUT_TRANSFERS--}', true) . '
   </td>
 </tr>';
                }
@@ -477,7 +477,7 @@ KEY (`party_userid`)
                                array(postRequestParameter('opt_in'), getMemberId()), __FILE__, __LINE__);
 
                        // "Settings saved..."
-                       loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+                       displayMessage('{--SETTINGS_SAVED--}');
                } // END - if
 
                // Init entries
index e593034a2ac6295ae0e97528ca1e2343f6e70cfd..9f06817864c1db879a0345c6bebec93eb41712ff 100644 (file)
@@ -257,7 +257,7 @@ LIMIT 1",
        }
 } else {
        // No mails left to confirm... :)
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_MAILS_TO_CONFIRM--}');
+       displayMessage('{--MEMBER_NO_MAILS_TO_CONFIRM--}');
 }
 
 // [EOF]
index f8c43992b52068b79128c9b95464b82984b889fd..bac90e4a6fabb96b5c4dcaf3ebc4bf37f6ed060d 100644 (file)
@@ -47,14 +47,14 @@ if (!defined('__SECURITY')) {
 addYouAreHereLink('member', __FILE__);
 
 if ((!isExtensionActive('wernis')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('wernis'));
        return;
 } // END - if
 
 // Check if the admin has entered the data
 if ((getWernisApiId() == '') || (getWernisApiMd5() == '')) {
        // Something important is missing...
-       loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_API_DATA_MISSING--}');
+       displayMessage('{--MEMBER_WERNIS_API_DATA_MISSING--}');
        return;
 } // END - if
 
@@ -122,7 +122,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
        // Is this enougth for a payout?
        if ($points < getConfig('wernis_min_payout')) {
                // No, then abort here
-               loadTemplate('admin_settings_saved', false, '{%message,MEMBER_WERNIS_MIN_PAYOUT=' . $points . '%}');
+               displayMessage('{%message,MEMBER_WERNIS_MIN_PAYOUT=' . $points . '%}');
                return;
        } // END - if
 
@@ -141,7 +141,7 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo
        $content['wernis_userid'] = getUserData('wernis_userid');
 } else {
        // Invalid mode!
-       loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_WERNIS_MODE_INVALID', getRequestParameter('mode')));
+       displayMessage(getMaskedMessage('MEMBER_WERNIS_MODE_INVALID', getRequestParameter('mode')));
        return;
 }
 
@@ -150,26 +150,26 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
        // Is the user id and password set?
        if (!isPostRequestParameterSet('wernis_userid')) {
                // Nothing entered in WDS66 user id
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_EMPTY_USERNAME--}');
+               displayMessage('{--MEMBER_WERNIS_EMPTY_USERNAME--}');
        } elseif (!isPostRequestParameterSet('wds66_password')) {
                // Nothing entered in WDS66 password
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_EMPTY_PASSWORD--}');
+               displayMessage('{--MEMBER_WERNIS_EMPTY_PASSWORD--}');
        } elseif (!isPostRequestParameterSet('amount')) {
                // Nothing entered in amount
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_EMPTY_AMOUNT--}');
+               displayMessage('{--MEMBER_WERNIS_EMPTY_AMOUNT--}');
        } elseif (postRequestParameter('wernis_userid') != bigintval(postRequestParameter('wernis_userid'))) {
                // Only numbers in account id!
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_INVALID_USERNAME');
+               displayMessage('{--MEMBER_WERNIS_INVALID_USERNAME');
        } elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {
                // Only numbers in amount!
-               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_INVALID_AMOUNT--}');
+               displayMessage('{--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, '{--MEMBER_WERNIS_WITHDRAW_AMOUNT_SMALLER_MIN--}');
+                                       displayMessage('{--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'));
@@ -182,14 +182,14 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                                        array(bigintval(postRequestParameter('wernis_userid')), getMemberId()), __FILE__, __LINE__);
 
                                                // All done!
-                                               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_WITHDRAW_DONE--}');
+                                               displayMessage('{--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
-                                               loadTemplate('admin_settings_saved', false, GET_WERNIS_ERROR_MESSAGE());
+                                               displayMessage(GET_WERNIS_ERROR_MESSAGE());
                                        } else {
                                                // Something went wrong
-                                               loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_WERNIS_WITHDRAW_FAILED', GET_WERNIS_ERROR_MESSAGE()));
+                                               displayMessage(getMaskedMessage('MEMBER_WERNIS_WITHDRAW_FAILED', GET_WERNIS_ERROR_MESSAGE()));
                                        }
                                }
                                break;
@@ -197,10 +197,10 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                        case 'payout': // Payout this exchange -> WDS66
                                if (postRequestParameter('amount') < getConfig('wernis_min_payout')) {
                                        // Not enougth entered!
-                                       loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_PAYOUT_AMOUNT_SMALLER_MIN--}');
+                                       displayMessage('{--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)));
+                                       displayMessage(sprintf(getMessage('MEMBER_WERNIS_PAYOUT_POINTS_DEPLETED'), bigintval(postRequestParameter('amount')), bigintval($points)));
                                } else {
                                        // All is fine here so do the withdraw
                                        $success = WERNIS_EXECUTE_PAYOUT(postRequestParameter('wernis_userid'), postRequestParameter('amount'));
@@ -213,21 +213,21 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                                        array(bigintval(postRequestParameter('wernis_userid')), getMemberId()), __FILE__, __LINE__);
 
                                                // All done!
-                                               loadTemplate('admin_settings_saved', false, '{--MEMBER_WERNIS_PAYOUT_DONE--}');
+                                               displayMessage('{--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
-                                               loadTemplate('admin_settings_saved', false, GET_WERNIS_ERROR_MESSAGE());
+                                               displayMessage(GET_WERNIS_ERROR_MESSAGE());
                                        } else {
                                                // Something went wrong
-                                               loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_WERNIS_WITHDRAW_FAILED', GET_WERNIS_ERROR_MESSAGE()));
+                                               displayMessage(getMaskedMessage('MEMBER_WERNIS_WITHDRAW_FAILED', GET_WERNIS_ERROR_MESSAGE()));
                                        }
                                }
                                break;
 
                        default: // Invalid mode!
                                logDebugMessage(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", getRequestParameter('mode')));
-                               loadTemplate('admin_settings_saved', false, getMaskedMessage('MEMBER_WERNIS_MODE_INVALID', getRequestParameter('mode')));
+                               displayMessage(getMaskedMessage('MEMBER_WERNIS_MODE_INVALID', getRequestParameter('mode')));
                                return;
                } // END - switch
        }
index ac4023556fa790d87dc1038544882cbcbcddb376..dfb303f01d4afc14ce43a6e015970e7ceaa68e9a 100644 (file)
@@ -40,7 +40,7 @@ $url = '';
 if (!defined('__SECURITY')) {
        die();
 } elseif ((!isExtensionActive('order')) && (!isAdmin())) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
        return;
 } elseif (!isMember()) {
        // Sorry, no guest access!
index 8fb132cafafe4d8c715273a59bf33cfac2c0620b..eb7297555b39c6495b97b7217ed30b9f3ba8417d 100644 (file)
@@ -38,7 +38,7 @@
 if (!defined('__SECURITY')) {
        die();
 } elseif ((!isExtensionActive('sponsor'))) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } elseif (!isSponsor()) {
        // No sponsor!
index 118d92e9c7acd1832e38e37ede579ad55d141b78..571340b12f2bd3f41a5b3ba05b4de1437cc79341 100644 (file)
@@ -39,7 +39,7 @@
 if (!defined('__SECURITY')) {
        die();
 } elseif (!isExtensionActive('sponsor')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } elseif (!isSponsor()) {
        // No sponsor!
@@ -118,10 +118,10 @@ if (SQL_NUMROWS($result) == 1) {
 
                        if (!empty($message)) {
                                // Output message
-                               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, $message);
+                               $GLOBALS['sponsor_output'] = displayMessage($message, true);
                        } else {
                                // No message generated
-                               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
+                               $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', true);
                        }
                } else {
                        // Init gender
@@ -138,11 +138,11 @@ if (SQL_NUMROWS($result) == 1) {
        } else {
                // Locked or so?
                $STATUS = sponsorTranslateUserStatus($content['status']);
-               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
+               $GLOBALS['sponsor_output'] = displayMessage(getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS), true);
        }
 } else {
        // Sponsor account not found
-       $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
+       $GLOBALS['sponsor_output'] = displayMessage(getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')), true);
 }
 
 // Free memory
index d4bc9345394a7b4df8d88d889039e3df3c4b8dad..8a4c76b1e04219c6041716e7a187e0eccef47ef8 100644 (file)
@@ -39,7 +39,7 @@
 if (!defined('__SECURITY')) {
        die();
 } elseif (!isExtensionActive('sponsor')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } elseif (!isSponsor()) {
        // No sponsor!
@@ -99,10 +99,10 @@ if (SQL_NUMROWS($result) == 1) {
 
                        if (!empty($message)) {
                                // Output message
-                               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, $message);
+                               $GLOBALS['sponsor_output'] = displayMessage($message, true);
                        } else {
                                // No message generated
-                               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
+                               $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', true);
                        }
                } else {
                        // Make yes/no selection
@@ -116,11 +116,11 @@ if (SQL_NUMROWS($result) == 1) {
        } else {
                // Locked or so?
                $STATUS = sponsorTranslateUserStatus($content['status']);
-               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
+               $GLOBALS['sponsor_output'] = displayMessage(getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS), true);
        }
 } else {
        // Sponsor account not found
-       $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
+       $GLOBALS['sponsor_output'] = displayMessage(getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')), true);
 }
 
 // Free memory
index a81ed8fb27d78289e4206ac71706d36ed0a58ff0..1a37ea11186a84683ac025b6118208a66ee246e0 100644 (file)
@@ -39,7 +39,7 @@
 if (!defined('__SECURITY')) {
        die();
 } elseif (!isExtensionActive('sponsor')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
        return;
 } elseif (!isSponsor()) {
        // No sponsor!
index 457ae0b6afa98134e99b540c8a96375f96b451df..7436f55ae7df70374dc711c1b3516edb5f2e1060 100644 (file)
@@ -1128,7 +1128,7 @@ function addPointsThroughReferalSystem ($subject, $userid, $points, $sendNotify
                                sendEmail($userid, '{--DIRECT_PAYMENT_SUBJECT--}', $message);
                                if (!isGetRequestParameterSet('mid')) {
                                        // Output message to admin
-                                       loadTemplate('admin_settings_saved', false, '{--ADMIN_POINTS_ADDED--}');
+                                       displayMessage('{--ADMIN_POINTS_ADDED--}');
                                } // END - if
                        }
 
@@ -1951,7 +1951,7 @@ function reduceRecipientReceivedMails ($column, $id, $count) {
                                array(implode(',', $userids), count($userids)), __FUNCTION__, __LINE__);
                } else {
                        // Nothing deleted
-                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_MAIL_NOTHING_DELETED', $id));
+                       displayMessage(getMaskedMessage('ADMIN_MAIL_NOTHING_DELETED', $id));
                }
        } // END - if
 
index d15de9e25f09ac5b4ebc580789a2afd8525cef9f..cac8b529dd56277417eb5b913a48a6b4fcbb9e10 100644 (file)
@@ -1588,7 +1588,7 @@ function sendModeMails ($mod, $modes) {
        }
 
        // Load template
-       loadTemplate('admin_settings_saved', false, $content['message']);
+       displayMessage($content['message']);
 }
 
 // Generates a 'selection box' from given array
@@ -1705,6 +1705,12 @@ function translatePoolType ($type) {
        return sprintf("{--POOL_TYPE_%s--}", strtoupper($type));
 }
 
+// Displays given message in admin_settings_saved template
+function displayMessage ($message, $return = false) {
+       // Load the template
+       return loadTemplate('admin_settings_saved', $return, $message);
+}
+
 //-----------------------------------------------------------------------------
 //                      Template helper functions for EL
 //-----------------------------------------------------------------------------
index eee9e64f0be4a358dec5de6094e8a9647172db38..2a953014d64becc8dccbed06609899054dcaa086 100644 (file)
@@ -2257,7 +2257,7 @@ function getSmtpPassword () {
        return $GLOBALS[__FUNCTION__];
 }
 
-// "Getter" for POINTS_WORD
+// "Getter" for points_word
 function getPointsWord () {
        // Do we have cache?
        if (!isset($GLOBALS[__FUNCTION__])) {
@@ -2269,6 +2269,42 @@ function getPointsWord () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// "Getter" for profile_lock
+function getProfileLock () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('profile_lock');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for online_timeout
+function getOnlineTimeout () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('online_timeout');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
+// "Getter" for url_tlock
+function getUrlTlock () {
+       // Do we have cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = getConfig('url_tlock');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Checks wether proxy configuration is used
 function isProxyUsed () {
        // Do we have cache?
index ed53114ca8ef37a3cc5373dfe5d6e24b1076c9b5..eb9ab63004b2dda97c1ca90a7851760718a39aff 100644 (file)
@@ -79,7 +79,7 @@ if (!isMember()) {
                        // Is there a 'code' provided?
                        if (isGetRequestParameterSet('code')) {
                                // Then generate an error message
-                               loadTemplate('admin_settings_saved', false, getMessageFromErrorCode(getRequestParameter('code')));
+                               displayMessage(getMessageFromErrorCode(getRequestParameter('code')));
                        } // END - if
 
                        // Display login form