./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
// 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
$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
$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);
// 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!');
$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
// Display message
if (!empty($message)) {
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} // END - if
// Remove cache file
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--}');
}
}
// List no entries
$OUT = '<tr>
<td colspan="' . $COLS . '" align="center" class="bottom">
- ' . loadTemplate('admin_settings_saved', true, $message) . '
+ ' . displayMessage($message, true) . '
</td>
</tr>';
}
// 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--}');
// 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--}');
// 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--}');
// 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--}');
// 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--}');
// 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--}');
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) {
// Did this work?
if ($userid == '0') {
// Something bad happened!
- loadTemplate('admin_settings_saved', false, '{--USER_NOT_REGISTERED--}');
+ displayMessage('{--USER_NOT_REGISTERED--}');
// Stop here
return;
} else {
// Error detected
$message = getMessageFromIndexedArray('{--SPONSOR_DATA_NOT_SAVED--}', 'failed', $messageArray);
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
}
// Always return the status
$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
} // 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
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
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);
}
} 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
}
// Load template
- loadTemplate('admin_settings_saved', false, $content['message']);
+ displayMessage($content['message']);
}
// Does resend the user's confirmation link for given email address
} // END - if
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
}
// Get a message (somewhat translation) from user status for confirmation link.
}
} 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]
} // 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);
// 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'));
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
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
// 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
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;
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('task')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('task'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('task'));
return;
} // END - if
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;
} // 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--}');
}
}
// 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
// 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
// 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
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
// 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
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');
$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'));
redirectToUrl('modules.php?module=admin&what=config_rallye_prices&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
);
// Save sponsor in database
- loadTemplate('admin_settings_saved', false, doProcessSponsorFormRequest($messageArray));
+ displayMessage(doProcessSponsorFormRequest($messageArray));
} else {
// Output form
loadTemplate('admin_add_sponsor');
// 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
), __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]
}
// Load template
- loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+ displayMessage('{--SETTINGS_SAVED--}');
break;
case 'delete': // Delete menu
} // 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 {
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--}');
}
}
$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());
}
// 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');
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]
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
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--}');
}
}
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]
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
} // 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 = '';
} // 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')));
}
// 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__);
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 = '';
if (isset($TEXT)) {
// Display message
- loadTemplate('admin_settings_saved', false, $TEXT);
+ displayMessage($TEXT);
} // END - if
} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
// Delete categories
SQL_FREERESULT($result);
// Display message
- loadTemplate('admin_settings_saved', false, $content);
+ displayMessage($content);
} elseif ((isFormSent()) && (isGetRequestParameterSet('do'))) {
// Change or delete entries...
$TEXT = '';
if (isset($TEXT)) {
// Display message
- loadTemplate('admin_settings_saved', false, $TEXT);
+ displayMessage($TEXT);
} // END - if
} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
// Delete entries
adminSaveSettingsFromPostData();
// Display continue link
- loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&what=config_home&sub=settings%}">{--ADMIN_CONTINUE_TO_CONFIG--}</a>');
+ displayMessage('<a href="{%url=modules.php?module=admin&what=config_home&sub=settings%}">{--ADMIN_CONTINUE_TO_CONFIG--}</a>');
} else {
// Prepare data for the template
$content = array_fill(-1, 60, '');
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');
} // END - if
// Entries updated
- loadTemplate('admin_settings_saved', false, '{--ADMIN_MODS_CHANGED--}');
+ displayMessage('{--ADMIN_MODS_CHANGED--}');
}
if (!ifPostContainsSelections()) {
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);
if (!isExtensionActive('other')) {
// Missing extension!
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('other'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('other'));
return;
} // END - if
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) {
if (!empty($message)) {
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} // END - if
// Payout types
// 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&what=list_payouts%}">{--ADMIN_PAYOUT_LIST_REQUESTS--}</a>');
+ displayMessage('<a href="{%url=modules.php?module=admin&what=list_payouts%}">{--ADMIN_PAYOUT_LIST_REQUESTS--}</a>');
} elseif ($display) {
// No member requests so far
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PAYOUT_NO_MEMBER_REQUESTS--}');
+ displayMessage('{--ADMIN_PAYOUT_NO_MEMBER_REQUESTS--}');
}
// Free result
// 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
adminSaveSettingsFromPostData();
} else {
// Failed to test the API!
- loadTemplate('admin_settings_saved', false, GET_PRIMERA_ERROR_MESSAGE());
+ displayMessage(GET_PRIMERA_ERROR_MESSAGE());
}
} else {
// Load template
adminSaveSettingsFromPostData();
} else {
// Invalid!
- loadTemplate('admin_settings_saved', false, '{--ADMIN_PROXY_SETTINGS_INVALID--}');
+ displayMessage('{--ADMIN_PROXY_SETTINGS_INVALID--}');
}
} else {
// Load template
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')) {
} // 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
}
// Output message
- loadTemplate('admin_settings_saved', false, '{--RALLYE_ENTRIES_CHANGED--}');
+ displayMessage('{--RALLYE_ENTRIES_CHANGED--}');
}
if (isFormSent('edit')) {
} else {
// Nothing selected
$content = '{--RALLYE_NO_PRICES_SELECTED_1--}<a href="{%url=modules.php?module=admin&what=config_rallye_prices&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
} else {
// Nothing selected
$content = '{--RALLYE_NO_PRICES_SELECTED_1--}<a href="{%url=modules.php?module=admin&what=config_rallye_prices&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...
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--}');
}
}
} // 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
adminSaveSettingsFromPostData();
} else {
// Invalid!
- loadTemplate('admin_settings_saved', false, '{--ADMIN_SESSION_SAVE_PATH_INVALID--}');
+ displayMessage('{--ADMIN_SESSION_SAVE_PATH_INVALID--}');
}
} else {
// Load template
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
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('yoomedia')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('yoomedia'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('yoomedia'));
return;
} // END - if
adminSaveSettingsFromPostData();
} else {
// Config not saved
- loadTemplate('admin_settings_saved', false, '{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
+ displayMessage('{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
}
} else {
// Erotic selection
// Shall we pay the points back to the user?
if ($totalPoints == 0) {
// No points repayed!
- loadTemplate('admin_settings_saved', false, '{--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?
// 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
$count += SQL_AFFECTEDROWS();
// Load template for link
- loadTemplate('admin_settings_saved', false, '<a href="{%url=modules.php?module=admin&what=del_email&pid=' . bigintval(getRequestParameter('mid')) . '%}">{--ADMIN_REMOVE_STATS_ENTRY--}</a>');
+ displayMessage('<a href="{%url=modules.php?module=admin&what=del_email&pid=' . bigintval(getRequestParameter('mid')) . '%}">{--ADMIN_REMOVE_STATS_ENTRY--}</a>');
} // END - if
// Free the result
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
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",
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
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]
// 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--}';
SQL_FREERESULT($result_load);
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} else {
// Add member selection box
addMemberSelectionBox();
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&what=list_sponsor&id='.bigintval(getRequestParameter('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]
// 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>';
}
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'))));
}
// Display message
- loadTemplate('admin_settings_saved', false, $content);
+ displayMessage($content);
} else {
// There are mail orders available
$OUT = '';
}
} else {
// No mail orders left in pool
- loadTemplate('admin_settings_saved', false, '{--ADMIN_NO_MAILS_IN_POOL--}');
+ displayMessage('{--ADMIN_NO_MAILS_IN_POOL--}');
}
// [EOF]
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
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]
}
// Load template
- loadTemplate('admin_settings_saved', false, $content);
+ displayMessage($content);
} else {
// Load entry
$content = SQL_FETCHARRAY($result_main);
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
// 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
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]
// 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';
$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')) {
}
} 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?
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;
redirectToUrl('modules.php?module=admin&what=extensions&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?
} // 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
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]
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--}');
}
}
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]
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
$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?
$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]
$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')) {
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]
}
} 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
}
// Display message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} elseif ((isFormSent('change')) && (isPostRequestParameterSet('id'))) {
// Change all status
adminChangeActivationStatus(postRequestParameter('id'), 'countries', 'is_active');
runFilterChain('run_sqls');
// Display message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} // END - if
// Load currenty setup country codes to list
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]
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('mailid')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mailid'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('mailid'));
return;
} // END - if
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 = '';
}
} 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
$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
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
$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
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
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
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
$result_max = SQL_QUERY($SQL2, __FILE__, __LINE__);
} else {
// Bonus extension required!
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bonus'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bonus'));
}
// Create limitation line
}
} 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]
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');
// 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
$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);
}
} 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') {
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--}');
}
}
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
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
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
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--}');
}
}
$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
}
} 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
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
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&what=list_sponsor&id=' . bigintval(getRequestParameter('refid')) . '%}">' . bigintval(getRequestParameter('refid')) . '</a>'));
+ displayMessage(getMaskedMessage('ADMIN_SPONSOR_REFS_404', '<a href="{%url=modules.php?module=admin&what=list_sponsor&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
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--}');
}
}
if (!empty($message)) {
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} // END - if
}
SQL_FREERESULT($result);
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} elseif ((isFormSent('edit')) || (isFormSent('delete'))) {
// Load all data
$OUT = '';
$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
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]
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
// 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;
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
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('task')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('task'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('task'));
return;
} // END - if
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
// 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>';
}
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('mailid')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mailid'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('mailid'));
return;
} // END - if
$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?
$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
// 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
if ((!isExtensionInstalled('user')) || (!isExtensionActive('user'))) {
// Missing extension!
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
return;
} // END - if
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
// 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!
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
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
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;
}
// 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;
// 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
if (!empty($message)) {
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} // END - if
// [EOF]
if (!empty($message)) {
loadTemplate('admin_settings_unsaved', false, $message);
} else {
- loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_UPDATED--}');
+ displayMessage('{--ADMIN_USER_UPDATED--}');
}
}
} else {
clearOutputBuffer();
} else {
// Output message
- loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_UNKNOWN_LOGFILE_FORMAT', $access));
+ displayMessage(getMaskedMessage('ADMIN_UNKNOWN_LOGFILE_FORMAT', $access));
return;
}
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?
outputHtml('</ol>');
} else {
// logs directory does not exist
- loadTemplate('admin_settings_saved', false, '{--ADMIN_LOGS_DIR_404--}');
+ displayMessage('{--ADMIN_LOGS_DIR_404--}');
}
}
updateConfiguration('maintenance', $target_mode);
// Load template
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} else {
switch (getMaintenance()) {
case 'Y': // Maintenance mode is active
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]
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--}');
}
}
// 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)
// 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)) {
} 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
}
// Output template
- loadTemplate('admin_settings_saved', false, $content);
+ displayMessage($content);
} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
// Delete entries here
$OUT = '';
}
// Display message
- loadTemplate('admin_settings_saved', false, $content);
+ displayMessage($content);
} elseif ((ifPostContainsSelections()) && (isFormSent('edit'))) {
// Edit banner
$OUT = '';
}
// Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
// [EOF]
?>
}
// Load template
-loadTemplate('admin_settings_saved', false, $content);
+displayMessage($content);
// [EOF]
?>
}
// Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
//
?>
}
// Output message
-loadTemplate('admin_settings_saved', false, $message);
+displayMessage($message);
-//
+// [EOF]
?>
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('order')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
return;
} // END - if
} // END - while
// Output message
- loadTemplate('admin_settings_saved', false, '{--ADMIN_NL_SEND_DONE--}');
+ displayMessage('{--ADMIN_NL_SEND_DONE--}');
} // END - if
// Free memory
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');
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'));
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
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--}');
}
}
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('theme')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
return;
} // END - if
// 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>';
}
addYouAreHereLink('admin', __FILE__);
if (!isExtensionActive('theme')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
return;
} // END - if
}
// Output message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} // END - if
// Initialize array
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
}
// Mails unlocked for mail delivery
- loadTemplate('admin_settings_saved', false, $message);
+
+ displayMessage($message);
} elseif (isPostRequestParameterSet('reject')) {
if (ifPostContainsSelections()) {
// Reject mail orders
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
} // 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 = '';
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]
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;
}
} // END - foreach
} else {
// Nothing selected
- loadTemplate('admin_settings_saved', false, '{--ADMIN_SPONSOR_NONE_SELECTED_UNLOCK--}');
+ displayMessage('{--ADMIN_SPONSOR_NONE_SELECTED_UNLOCK--}');
}
} // END - if
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
// 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--}');
}
}
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
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]
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]
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
} // END - if
} else {
// Online statistics deactivated!
- loadTemplate('admin_settings_saved', false, '{--ONLINE_STATISTICS_DEACTIVATED--}');
+ displayMessage('{--ONLINE_STATISTICS_DEACTIVATED--}');
}
// [EOF]
}
// Output final message
-loadTemplate('admin_settings_saved', false, $GLOBALS['message']);
+displayMessage($GLOBALS['message']);
// [EOF]
?>
break;
case 'test_top':
- loadTemplate('admin_settings_saved', false, '{--GUEST_FRAMETESTER_TOP--}');
+ displayMessage('{--GUEST_FRAMETESTER_TOP--}');
break;
case 'back': // Back buttom
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage(''));
+ displayMessage(generateExtensionInactiveNotInstalledMessage(''));
return;
}
}
if ((!isExtensionActive('theme')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('active')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('active'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('active'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('beg')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('beg'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('user')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('doubler')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('doubler'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('doubler'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('user')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('user'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('user'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('mediadata')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mediadata'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('mediadata'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('rallye')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('rallye'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('rallye'));
return;
} // END - if
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;
}
doRegistration();
// Output success registration
- loadTemplate('admin_settings_saved', false, '{--REGISTRATION_DONE--}');
+ displayMessage('{--REGISTRATION_DONE--}');
} else {
// Do this only if form is sent
if (isFormSent()) {
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('sponsor'))) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('sponsor'))) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} // END - if
} // 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
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
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
// 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
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
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
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');
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('sponsor'))) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} // END - if
$message = doProcessSponsorFormRequest($messageArray);
// Display message
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} else {
// Check for payment types
$result = SQL_QUERY('SELECT
// 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>';
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
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
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('top10')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('top10'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('top10'));
return;
} // END - if
addYouAreHereLink('guest', __FILE__);
if ((!isExtensionActive('wernis')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('wernis'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage(''));
+ displayMessage(generateExtensionInactiveNotInstalledMessage(''));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bank')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('order')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
} // END - if
}
if ((!isExtensionActive('theme')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bank')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bank')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bank')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
return;
}
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bank')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bank')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bank'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bank'));
return;
}
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('beg')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('beg'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('beg')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('beg'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('beg'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('bonus')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('bonus'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('bonus'));
return;
} // END - if
// 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
}
} else {
// No cateogries are defined yet
- loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_CATEGORIES--}');
+ displayMessage('{--MEMBER_NO_CATEGORIES--}');
}
// Free result
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('doubler')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('doubler'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('doubler'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('holiday')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('holiday'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('holiday'));
return;
} // END - if
}
// 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
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
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
} // END - switch
} else {
// To fast!
- loadTemplate('admin_settings_saved', false, '{--MEMBER_HOLIDAY_LOCKED--}');
+ displayMessage('{--MEMBER_HOLIDAY_LOCKED--}');
}
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('html_mail')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('html_mail'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('html_mail'));
return;
} // END - if
// Save settings
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `html`='%s' WHERE `userid`=%s LIMIT 1",
array(postRequestParameter('html'), getMemberId()), __FILE__, __LINE__);
- loadTemplate('admin_settings_saved', false, '{--MEMBER_SETTINGS_SAVED--}');
+ displayMessage('{--MEMBER_SETTINGS_SAVED--}');
} else {
// Prepare it
$content['html_y'] = '';
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('mydata')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('mydata'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('mydata'));
return;
} // END - if
$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);
// 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) {
$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));
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;
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('nickname')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('nickname'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('nickname'));
return;
} // END - if
}
// Load template
- loadTemplate('admin_settings_saved', false, $content);
+ displayMessage($content);
} else {
// Do we have already submit the form?
if (isPostRequestParameterSet('nickname')) {
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('order')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('order'));
return;
} // END - if
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
//
$url = 'modules.php?module=login&what=order&code=' . getCode('MORE_RECEIVERS1');
} elseif (($ALLOWED == '0') && (getConfig('order_max_full') == 'ORDER')) {
// No more mail orders allowed
- loadTemplate('admin_settings_saved', false, '{--MEMBER_ORDER_ALLOWED_EXHAUSTED--}');
+ displayMessage('{--MEMBER_ORDER_ALLOWED_EXHAUSTED--}');
} elseif ($links < getConfig('unconfirmed')) {
// Show only enabled categories to the user ...
$whereStatement = " WHERE `visible`='Y'";
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...
}
} 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)) {
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('payout')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('payout'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('payout'));
return;
} // END - if
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
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(
}
} 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
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')) {
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
// 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
$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;
}
// 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'));
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
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('rallye')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('rallye'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('rallye'));
return;
} // END - if
redirectToIndexMemberOnlyModule();
} elseif (!isRefbackEnabled()) {
// Output message
- loadTemplate('admin_settings_saved', false, '{--MEMBER_REFBACK_DISABLED--}');
+ displayMessage('{--MEMBER_REFBACK_DISABLED--}');
// Abort here
return false;
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('refback')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('refback'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('refback'));
return;
} // END - if
// 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
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
$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
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
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('sponsor')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} // END - if
$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
$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
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('support')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('support'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('support'));
return;
} // END - if
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'))) {
} // END - if
// Load message template
- loadTemplate('admin_settings_saved', false, $message);
+ displayMessage($message);
} else {
// Prepare some content
$content = array(
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
} // END - if
// 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
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]
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('surfbar')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('surfbar'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
} // END - if
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('theme')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('theme'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('theme'));
return;
} // END - if
setTheme($newTheme);
// Theme saved!
- loadTemplate('admin_settings_saved', false, '{--MEMBER_THEME_SAVED--}');
+ displayMessage('{--MEMBER_THEME_SAVED--}');
} // END - if
// Initialize array
// 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
addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('transfer')) && (!isAdmin())) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('transfer'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('transfer'));
return;
} // END - if
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&what=transfer%}">{--TRANSFER_CONTINUE_OVERVIEW--}</a></div>');
+ displayMessage('<div>{--TRANSFER_COMPLETED--}' . '</div><div><a href="{%url=modules.php?module=login&what=transfer%}">{--TRANSFER_CONTINUE_OVERVIEW--}</a></div>');
} elseif ($valid_code === false) {
// Invalid Touring code!
loadTemplate('admin_settings_unsaved', false, '{--TRANSFER_INVALID_CODE--}');
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"';
}
$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'] . ' /> ' . $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
// 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>';
}
// 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>';
}
array(postRequestParameter('opt_in'), getMemberId()), __FILE__, __LINE__);
// "Settings saved..."
- loadTemplate('admin_settings_saved', false, '{--SETTINGS_SAVED--}');
+ displayMessage('{--SETTINGS_SAVED--}');
} // END - if
// Init entries
}
} else {
// No mails left to confirm... :)
- loadTemplate('admin_settings_saved', false, '{--MEMBER_NO_MAILS_TO_CONFIRM--}');
+ displayMessage('{--MEMBER_NO_MAILS_TO_CONFIRM--}');
}
// [EOF]
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
// 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
$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;
}
// 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'));
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;
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'));
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
}
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!
if (!defined('__SECURITY')) {
die();
} elseif ((!isExtensionActive('sponsor'))) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!isSponsor()) {
// No sponsor!
if (!defined('__SECURITY')) {
die();
} elseif (!isExtensionActive('sponsor')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!isSponsor()) {
// No sponsor!
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
} 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
if (!defined('__SECURITY')) {
die();
} elseif (!isExtensionActive('sponsor')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!isSponsor()) {
// No sponsor!
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
} 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
if (!defined('__SECURITY')) {
die();
} elseif (!isExtensionActive('sponsor')) {
- loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor'));
+ displayMessage(generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!isSponsor()) {
// No sponsor!
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
}
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
}
// Load template
- loadTemplate('admin_settings_saved', false, $content['message']);
+ displayMessage($content['message']);
}
// Generates a 'selection box' from given array
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
//-----------------------------------------------------------------------------
return $GLOBALS[__FUNCTION__];
}
-// "Getter" for POINTS_WORD
+// "Getter" for points_word
function getPointsWord () {
// Do we have cache?
if (!isset($GLOBALS[__FUNCTION__])) {
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?
// 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