require($INC);
} elseif ((!EXT_IS_ACTIVE("user")) || (GET_EXT_VERSION("user") == "")) {
// Missing extension!
- addFatalMessage(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "user"));
+ addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "user");
return;
}
ADD_DESCR("admin", __FILE__);
// Init title with "all accounts"
-$listHeader = ADMIN_ALL_ACCOUNTS;
+$listHeader = getMessage('ADMIN_ALL_ACCOUNTS');
if (!empty($_GET['status'])) {
// Set title according to the "status"
- $listHeader = constant(sprintf("ADMIN_LIST_STATUS_%s_ACCOUNTS", strtoupper(SQL_ESCAPE($_GET['status']))));
+ $listHeader = getMessage(sprintf("ADMIN_LIST_STATUS_%s_ACCOUNTS", strtoupper(SQL_ESCAPE($_GET['status']))));
} elseif (!empty($_GET['mode'])) {
// Set title according to the "mode"
- $listHeader = constant(sprintf("ADMIN_LIST_MODE_%s_ACCOUNTS", strtoupper(SQL_ESCAPE($_GET['mode']))));
+ $listHeader = getMessage(sprintf("ADMIN_LIST_MODE_%s_ACCOUNTS", strtoupper(SQL_ESCAPE($_GET['mode']))));
}
// Remember it
if (!isset($DATA['lock_reason'])) $DATA['lock_reason'] = "---";
// Nickname inclusion?
+ // @TODO Rewrite these to filters
if (EXT_IS_ACTIVE("nickname")) {
// Nickname not set or invalid? Then
if ((empty($DATA['nickname'])) || ($DATA['nickname'] == $uid)) $DATA['nickname'] = "---";
} else {
// Extension not found
- $DATA['nickname'] = EXT_NICKNAME_404;
+ $DATA['nickname'] = getMessage('EXT_NICKNAME_404');
}
// Is the user extension newer?
// Calculate page count (0.5 fixes a bug with page count)
if (getConfig('user_limit') == 0) {
setConfigEntry('user_limit', 100);
- LOAD_TEMPLATE("admin_settings_saved", false, EXTENSION_WARNING_USER_LIMIT);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('EXTENSION_WARNING_USER_LIMIT'));
} // END - if
// Activate the extension please!
}
// Column with nickname when nickname extension is present
- if (EXT_IS_ACTIVE("nickname"))
- {
+ // @TODO Rewrite this into a filter
+ if (EXT_IS_ACTIVE("nickname")) {
// Nickname extension found
- define('__NICKNAME_TH', " <td class=\"admin_title bottom2\" align=\"center\">".NICKNAME."</td>");
- }
- else
- {
+ define('__NICKNAME_TH', " <td class=\"admin_title bottom2\" align=\"center\">{--NICKNAME--}</td>");
+ } else {
// Not found
define('__NICKNAME_TH', "");
}
if (!isset($content['lock_reason'])) $content['lock_reason'] = "---";
// Is the extension "country" installed?
+ // @TODO Rewrite this into a filter
if (EXT_IS_ACTIVE("country")) {
// Then overwrite country information
$content['country'] = COUNTRY_GENERATE_INFO($content['country_code']);