switch ($code) {
case '': break;
case getCode('LOGOUT_DONE') : $message = '{--LOGOUT_DONE--}'; break;
- case getCode('LOGOUT_FAILED') : $message = '<span class="notice">{--LOGOUT_FAILED--}</span>'; break;
+ case getCode('LOGOUT_FAILED') : $message = '<span class="bad">{--LOGOUT_FAILED--}</span>'; break;
case getCode('DATA_INVALID') : $message = '{--MAIL_DATA_INVALID--}'; break;
case getCode('POSSIBLE_INVALID') : $message = '{--MAIL_POSSIBLE_INVALID--}'; break;
case getCode('USER_404') : $message = '{--USER_404--}'; break;
'ADMIN_CONFIG_BIRTHDAY_POINTS_NOTE' => "Wert <strong>0</strong> deaktiviert die Extragutschrift.",
'MEMBER_BIRTHDAY_CANNOT_STATUS' => "Kann keine {?POINTS?} gutschreiben! Status Ihres Accounts: <span class=\"data\">{%%pipe,translateUserStatus=%s%%}</span>",
'MEMBER_BIRTHDAY_CANNOT_LOAD_DATA' => "Entweder haben Sie bereits Ihr Geburtsgeschenk erhalten oder Sie haben heute keinen Geburtstag.",
- 'ADMIN_CONFIG_BIRTHDAY_ONLY_ACTIVE' => "Nur aktive Mitglieder erhalten die Geburtstagsgutschrift?<br /><div class=\"notice\">(Nur in Verbindung mit der Erweiterung <strong>autopurge</strong>!)</div>",
+ 'ADMIN_CONFIG_BIRTHDAY_ONLY_ACTIVE' => "Nur aktive Mitglieder erhalten die Geburtstagsgutschrift?<br /><div class=\"notice\">(Nur in Verbindung mit der Erweiterung <strong>ext-autopurge</strong>!)</div>",
));
// [EOF]
// @TODO Move this HTML to a template
$OUT = '<tr>
<td colspan="3" align="center" height="30" class="bottom">
- <div class="notice">{%message,MEMBER_BONUS_NO_RANKS=' . $data . '%}</div>
+ <div class="bad">{%message,MEMBER_BONUS_NO_RANKS=' . $data . '%}</div>
</td>
</tr>';
}
// Outputs a 'failed message'
function registerOutputFailedMessage ($messageId, $extra='') {
if (empty($messageId)) {
- outputHtml('<div class="notice">' . $extra . '</div>');
+ outputHtml('<div class="bad">' . $extra . '</div>');
} else {
- outputHtml('<div class="notice">{--' . $messageId . '--}' . $extra . '</div>');
+ outputHtml('<div class="bad">{--' . $messageId . '--}' . $extra . '</div>');
}
}
} elseif (isExtensionActive('bonus')) {
$content['purged_bonus_mails'] = '{%message,ADMIN_EXTENSION_BONUS_OUTDATED=0.1.8%}';
} else {
- $content['purged_bonus_mails'] = '<span class="notice">{--ADMIN_EXTENSION_BONUS_404--}</span>';
+ $content['purged_bonus_mails'] = '<span class="bad">{--ADMIN_EXTENSION_BONUS_404--}</span>';
}
} else {
- $content['purged_bonus_mails'] = '<span class="notice">{--ADMIN_EXTENSION_AUTOPURGE_404--}</span>';
- $content['purged_mails'] = '<span class="notice">{--ADMIN_EXTENSION_AUTOPURGE_404--}</span>';
+ $content['purged_bonus_mails'] = '<span class="bad">{--ADMIN_EXTENSION_AUTOPURGE_404--}</span>';
+ $content['purged_mails'] = '<span class="bad">{--ADMIN_EXTENSION_AUTOPURGE_404--}</span>';
}
//
redirectToUrl('modules.php?module=index&what=login&login=' . $errorCode);
}
} else {
- // id or email is wrong
- displayMessage('<span class="notice">{--GUEST_WRONG_ID_EMAIL--}</span>');
+ // Id or email is wrong
+ displayMessage('<span class="bad">{--GUEST_WRONG_ID_EMAIL--}</span>');
}
// Return the error code
$OUT .= '[<a href="{%url=modules.php?module=admin&action=' . $menu . '%}">';
}
} else {
- $OUT .= '<em style="cursor:help" class="notice" title="{%message,ADMIN_MENU_ACTION_404_TITLE=' . $menu . '%}">';
+ $OUT .= '<em style="cursor:help" class="bad" title="{%message,ADMIN_MENU_ACTION_404_TITLE=' . $menu . '%}">';
}
$OUT .= $title;
$OUT .= '[<a href="{%url=modules.php?module=admin&what=' . $what_sub . '%}">';
}
} else {
- $OUT .= '<em style="cursor:help" class="notice" title="{%message,ADMIN_MENU_WHAT_404_TITLE=' . $what_sub . '%}">';
+ $OUT .= '<em style="cursor:help" class="bad" title="{%message,ADMIN_MENU_WHAT_404_TITLE=' . $what_sub . '%}">';
}
$OUT .= $title_what;
}
} else {
// Maybe deleted?
- $adminLink = '<div class="notice">{%message,ADMIN_ID_404=' . $adminId . '%}</div>';
+ $adminLink = '<div class="bad">{%message,ADMIN_ID_404=' . $adminId . '%}</div>';
}
} // END - if
$content = '{--CATEGORY_ADDED--}';
} else {
// Category does already exists
- $content = '<span class="notice">{--CATEGORY_ALREADY_EXISTS--}</span>';
+ $content = '<span class="bad">{--CATEGORY_ALREADY_EXISTS--}</span>';
}
// Free memory
SQL_FREERESULT($result);
// Does already exist
- $message = '<div class="notice">{--ADMIN_PAYOUT_TYPE_ALREADY--}</div>';
+ $message = '<div class="bad">{--ADMIN_PAYOUT_TYPE_ALREADY--}</div>';
}
}
rebuildCache('config', 'config');
} else {
// Prepare failed-message
- $message = '<span class="notice">{--SETTINGS_NOT_SAVED--}</span>';
+ $message = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
}
// Remove SQL queries
if (!SQL_HASZEROAFFECTED()) {
$content = '{--ADMIN_EMAIL_CHANGES_SAVED--}';
} else {
- $content = '<span class="notice">{--ADMIN_EMAIL_CHANGES_NOT_SAVED--}</span>';
+ $content = '<span class="bad">{--ADMIN_EMAIL_CHANGES_NOT_SAVED--}</span>';
}
} elseif (isPostRequestElementSet('bid')) {
// Update pool
if (!SQL_HASZEROAFFECTED()) {
$content = '{--ADMIN_EMAIL_CHANGES_SAVED--}';
} else {
- $content = '<span class="notice">{--ADMIN_EMAIL_CHANGES_NOT_SAVED--}</span>';
+ $content = '<span class="bad">{--ADMIN_EMAIL_CHANGES_NOT_SAVED--}</span>';
}
} else {
// No valid action
- $content = '<span class="notice">{--ADMIN_EDIT_EMAIL_FAILED--}</span>';
+ $content = '<span class="bad">{--ADMIN_EDIT_EMAIL_FAILED--}</span>';
}
// Display message
$content = '{--ADMIN_MAX_VALUE_SAVED--}';
} else {
// Value does alread exists!
- $content = '<span class="notice">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
+ $content = '<span class="bad">{--ADMIN_MAX_VALUE_ALREADY--}</span>';
}
// Free memory
if (countSqls() > 0) {
// Run all queries
runFilterChain('run_sqls');
- $content = '<span class="notice">{--SETTINGS_SAVED--}</span>';
+ $content = '<span class="good">{--SETTINGS_SAVED--}</span>';
} else {
// Nothing has changed!
- $content = '<span class="notice">{--SETTINGS_NOT_SAVED--}</span>';
+ $content = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
}
// Output template
$content = '{--SETTINGS_SAVED--}';
} else {
// Nothing has been updated
- $content = '<span class="notice">{--SETTINGS_NOT_SAVED--}</span>';
+ $content = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';
}
// Display message
loadInclude($inc);
// Add found theme to array
- $themes['theme_unix'][] = $dir;
- $themes['theme_name'][] = $GLOBALS['theme_data']['name'];
- $themes['theme_author'][] = $GLOBALS['theme_data']['author'];
- $themes['theme_email'][] = $GLOBALS['theme_data']['email'];
- $themes['theme_url'][] = $GLOBALS['theme_data']['url'];
- $themes['theme_version'][] = $GLOBALS['theme_data']['version'];
+ $themes['theme_unix'][] = $dir;
+ $themes['theme_name'][] = $GLOBALS['theme_data']['name'];
+ $themes['theme_author'][] = $GLOBALS['theme_data']['author'];
+ $themes['theme_email'][] = $GLOBALS['theme_data']['email'];
+ $themes['theme_url'][] = $GLOBALS['theme_data']['url'];
+ $themes['theme_version'][] = $GLOBALS['theme_data']['version'];
} // END - while
// Sort array by Uni* name
// @TODO Move this HTML code into a template
$content['message'] = '<tr>
<td colspan="4" align="center">
- <span class="notice">' . getMessageFromErrorCode($errorCode) . '</span>
+ <span class="bad">' . getMessageFromErrorCode($errorCode) . '</span>
</td>
</tr>';
} // END - if
}
} else {
// No mail types defined
- displayMessage('<span class="notice">{--MEMBER_ORDER_NO_PAYMENTS--}</span>');
+ displayMessage('<span class="bad">{--MEMBER_ORDER_NO_PAYMENTS--}</span>');
}
} else {
// No points left
- displayMessage('<span class="notice">{--MEMBER_ORDER_NO_POINTS--}</span>');
+ displayMessage('<span class="bad">{--MEMBER_ORDER_NO_POINTS--}</span>');
}
} else {
// No cateogries are defined yet
- displayMessage('<span class="notice">{--MEMBER_NO_CATEGORIES--}</span>');
+ displayMessage('<span class="bad">{--MEMBER_NO_CATEGORIES--}</span>');
}
} else {
// Please confirm some mails first
}
} else {
// Not found - open
- $OUT .= '<em style="cursor:help" class="notice" title="{%message,ADMIN_MENU_WHAT_404_TITLE=' . $content['sub_what'] . '%}">';
+ $OUT .= '<div style="cursor:help" class="bad" title="{%message,ADMIN_MENU_WHAT_404_TITLE=' . $content['sub_what'] . '%}">';
}
// Menu title
} // END - if
} else {
// Not found - close
- $OUT .= '</em>';
+ $OUT .= '</div>';
}
// Cunt it up
} // END - foreach
} else {
// No cateogries are defined yet
- $OUT = '<option class="notice">{--MEMBER_NO_CATEGORIES--}</option>';
+ $OUT = '<option class="bad">{--MEMBER_NO_CATEGORIES--}</option>';
}
// Return HTML code
} elseif ((isAdmin()) || ((isInstalling()) && (!isInstalled()))) {
// Only admins shall see this warning or when installation mode is active
$ret = '<div class="para">
- <span class="notice">{--TEMPLATE_404--}</span>
+ <span class="bad">{--TEMPLATE_404--}</span>
</div>
<div class="para">
(' . $template . ')
default: // Unsupported module!
logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unsupported module %s detected.", $mod));
- $content['message'] = '<span class="notice">{--UNKNOWN_MODULE--}</span>';
+ $content['message'] = '<span class="bad">{--UNKNOWN_MODULE--}</span>';
break;
} // END - switch
} else {
// Passwords mismatch
- $content['message'] = '<span class="notice">{--MEMBER_PASSWORD_ERROR--}</span>';
+ $content['message'] = '<span class="bad">{--MEMBER_PASSWORD_ERROR--}</span>';
}
} else {
// Could not load profile
- $content['message'] = '<span class="notice">{--MEMBER_CANNOT_LOAD_PROFILE--}</span>';
+ $content['message'] = '<span class="bad">{--MEMBER_CANNOT_LOAD_PROFILE--}</span>';
}
// Send email to user if required
// Helper function to create a selection box for YES/NO configuration entries
function doTemplateConfigurationYesNoSelectionBox ($template, $clear, $configEntry) {
// Default is a "missing entry" warning
- $OUT = '<em style="cursor:help" class="notice" title="{%message,ADMIN_CONFIG_ENTRY_MISSING=' . $configEntry . '%}">!' . $configEntry . '!</em>';
+ $OUT = '<em style="cursor:help" class="bad" title="{%message,ADMIN_CONFIG_ENTRY_MISSING=' . $configEntry . '%}">!' . $configEntry . '!</em>';
// Generate the HTML code
if (isConfigEntrySet($configEntry)) {
$content['message'] = loadTemplate('show_bonus_msg', true, $content);
} else {
// No data found
- $content['message'] = '<span class="notice">{--BONUS_SHOW_NO_DATA--}</span>';
+ $content['message'] = '<span class="bad">{--BONUS_SHOW_NO_DATA--}</span>';
}
// Free memory
SQL_FREERESULT($result);
} else {
// Wrong type entered
- $content['message'] = '<span class="notice">{--BONUS_SHOW_WRONG_TYPE--}</span>';
+ $content['message'] = '<span class="bad">{--BONUS_SHOW_WRONG_TYPE--}</span>';
}
} else {
// Wrong call!
- $content['message'] = '<span class="notice">{--BONUS_SHOW_WRONG_CALL--}</span>';
+ $content['message'] = '<span class="bad">{--BONUS_SHOW_WRONG_CALL--}</span>';
}
// Load send_bonus header template (for your banners, e.g.?)
padding-bottom: 5px;
}
-bad {
+.bad {
color: #aa0000;
font-style: italic;
}
-good {
+.good {
color: #00aa00;
}
}
.notice {
- color: #aa0000;
+ color: #00aa00;
font-size: 12px;
}
padding-bottom: 5px;
}
-bad {
+.bad {
color: #aa0000;
font-style: italic;
}
-good {
+.good {
color: #00aa00;
}
padding-bottom: 5px;
}
-bad {
+.bad {
color: #aa0000;
font-style: italic;
}
-good {
+.good {
color: #00aa00;
}
}
.form_delete {
- border-style : groove;
+ border-style : groove 1px #000000;
color : #881111;
- border-color : #000000;
}
.form_submit {
padding-bottom: 5px;
}
-bad {
+.bad {
color: #aa0000;
font-style: italic;
}
-good {
+.good {
color: #00aa00;
}
padding-bottom: 5px;
}
-bad {
+.bad {
color: #aa0000;
font-style: italic;
}
-good {
+.good {
color: #00aa00;
}
padding-bottom: 5px;
}
-bad {
+.bad {
color: #aa0000;
font-style: italic;
}
-good {
+.good {
color: #00aa00;
}