if (!SQL_IS_LINK_UP()) return false;
// Init variable
- $query = "failed";
+ $query = 'failed';
if ($strip === true) {
$strip = "true";
eval($eval);
// Was the eval() command fine?
- if ($query == "failed") {
+ if ($query == 'failed') {
// Something went wrong?
debug_report_bug("eval={$eval}");
} // END - if
if ($load_mode == 'remove') {
// Delete this extension (remember to remove it from your server *before* you click on welcome!
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_extensions` WHERE `ext_name`='%s' LIMIT 1",
- array(EXT_GET_CURR_NAME()), __FUNCTION__, __LINE__);
+ array(EXT_GET_CURR_NAME()), __FUNCTION__, __LINE__);
} // END - if
} // END - if
//* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, "DB! ext_name={$ext_name}");
// Load from database
$result = SQL_QUERY_ESC("SELECT ext_active FROM `{!_MYSQL_PREFIX!}_extensions` WHERE `ext_name`='%s' LIMIT 1",
- array($ext_name), __FUNCTION__, __LINE__);
+ array($ext_name), __FUNCTION__, __LINE__);
// Entry found?
if (SQL_NUMROWS($result) == 1) {
if (SQL_NUMROWS($result) == 1) {
// Load entry
list($ext_ver) = SQL_FETCHROW($result);
- } else {
+ } elseif (isDebugModeEnabled()) {
// Not found!
DEBUG_LOG(__FUNCTION__, __LINE__, sprintf(": Cannot find extension %s in database!", $ext_name));
}
// Redirects if the provided extension is not installed
function redirectOnUninstalledExtension ($ext_name) {
// So is the extension there?
- if (!EXT_IS_ACTIVE($ext_name)) {
+ if ((!isExtensionInstalled($ext_name)) || (!EXT_IS_ACTIVE($ext_name))) {
// Redirect to index
redirectToUrl('modules.php?module=index&msg=' . getCode('EXTENSION_PROBLEM') . '&ext=' . $ext_name);
} // END - if
}
+// Determines wether the given extension is installed
+function isExtensionInstalled ($ext_name) {
+ // Default is not installed
+ $isInstalled = false;
+
+ // Check cache ext_version
+ $isInstalled = isset($GLOBALS['cache_array']['extensions']['ext_version'][$ext_name]);
+
+ // Return status
+ return $isInstalled;
+}
+
//
?>
case getCode('EXTENSION_PROBLEM'):
if (REQUEST_ISSET_GET('ext')) {
- $msg = generateExtensionInactiveMessage(REQUEST_GET('ext'));
+ $msg = generateExtensionInactiveNotInstalledMessage(REQUEST_GET('ext'));
} else {
$msg = getMessage('EXTENSION_PROBLEM_UNSET_EXT');
}
}
// Generates a 'extension foo inactive' message
-function generateExtensionInactiveMessage ($ext) {
+function generateExtensionInactiveMessage ($ext_name) {
// Is the extension empty?
- if (empty($ext)) {
+ if (empty($ext_name)) {
// This should not happen
trigger_error(__FUNCTION__ . ': Parameter ext is empty. This should not happen.');
} // END - if
// Default message
- $msg = sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), $ext);
+ $msg = sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), $ext_name);
// Is an admin logged in?
if (IS_ADMIN()) {
// Then output admin message
- $msg = sprintf(getMessage('ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE'), $ext);
+ $msg = sprintf(getMessage('ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE'), $ext_name);
} // END - if
// Return prepared message
return $msg;
}
+// Generates a 'extension foo not installed' message
+function generateExtensionNotInstalledMessage ($ext_name) {
+ // Is the extension empty?
+ if (empty($ext_name)) {
+ // This should not happen
+ trigger_error(__FUNCTION__ . ': Parameter ext is empty. This should not happen.');
+ } // END - if
+
+ // Default message
+ $msg = sprintf(getMessage('EXTENSION_PROBLEM_EXT_NOT_INSTALLED'), $ext_name);
+
+ // Is an admin logged in?
+ if (IS_ADMIN()) {
+ // Then output admin message
+ $msg = sprintf(getMessage('ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED'), $ext_name);
+ } // END - if
+
+ // Return prepared message
+ return $msg;
+}
+
+// Generates a message depending on if the extension is not installed or not
+// just activated
+function generateExtensionInactiveNotInstalledMessage ($ext_name) {
+ // Init message
+ $message = '';
+
+ // Is the extension not installed or just deactivated?
+ switch (isExtensionInstalled($ext_name)) {
+ case true; // Deactivated!
+ $message = generateExtensionInactiveMessage($ext_name);
+ break;
+
+ case false; // Not installed!
+ $message = generateExtensionNotInstalledMessage($ext_name);
+ break;
+
+ default: // Should not happen!
+ DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Invalid state of extension %s detected.", $ext_name));
+ $message = sprintf("Invalid state of extension %s detected.", $ext_name);
+ break;
+ } // END - switch
+
+ // Return the message
+ return $message;
+}
+
//////////////////////////////////////////////////
// AUTOMATICALLY RE-GENERATED MISSING FUNCTIONS //
//////////////////////////////////////////////////
define('ADMIN_POINTS_TO_JACKPOT', "Es wurden <span class=\"data\">%s</span> {!POINTS!} in den Jackpot gelegt.");
define('ADMIN_NO_POINTS_REPAYED', "Die Mailbuchung hatte keine {!POINTS!} zum zurückbuchen!");
define('ADMIN_POINTS_SHREDDED', "Es wurden <span class=\"data\">%s</span> {!POINTS!} geschrettert.");
-define('EXTENSION_PROBLEM_EXT_INACTIVE', "Erweiterung <span class=\"data\">%s</span> deaktiviert! Fehler: Kann nicht fortfahren!");
+define('EXTENSION_PROBLEM_EXT_INACTIVE', "Kann nicht fortfahren! Fehler: Erweiterung <span class=\"data\">%s</span> deaktiviert!");
define('ADMIN_EXTENSION_PROBLEM_EXT_INACTIVE', "Die Erweiterung <span class=\"data\">%s</span> ist derzeit deaktiviert. <a href=\"{!URL!}/modules.php?module=admin&what=extensions\">Hier</a> können Sie diese aktivieren.");
+define('EXTENSION_PROBLEM_EXT_NOT_INSTALLED', "Kann nicht fortfahren! Fehler: Erweiterung <span class=\"data\">%s</span> nicht installiert!");
+define('ADMIN_EXTENSION_PROBLEM_EXT_NOT_INSTALLED', "Die Erweiterung <span class=\"data\">%s</span> ist derzeit nicht installiert. <a href=\"{!URL!}/modules.php?module=admin&what=extensions\">Hier</a> können Sie diese aktivieren.");
define('EXTENSION_PROBLEM_NOT_INSTALLED', "Erweiterung <span class=\"data\">%s</span> nicht installiert.");
define('EXTENSION_PROBLEM_UNSET_EXT', "Skriptfehler: Parameter <strong>ext</strong> nicht gesetzt!");
define('EXTENSION_WARNING_EXT_INACTIVE', "Die Erweiterung <span class=\"data\">%s</span> ist nicht aktiv. Dies kann zu Störungen führen.<br />\nBitte aktivieren Sie diese unter <em>Verschiedenes->Erweiterungen</em>.");
}
// Shall I test for a main or sub menu? (action or what?)
- $acl_mode = "failed";
+ $acl_mode = 'failed';
if ((GET_EXT_VERSION('cache') >= '0.1.2') && (count($GLOBALS['cache_array']['admin_acls']) > 0)) {
// Lookup in cache
if ((!empty($act)) && (isset($GLOBALS['cache_array']['admin_acls']['action_menu'][$aid])) & ($GLOBALS['cache_array']['admin_acls']['action_menu'][$aid] == $act)) {
if (!empty($sql)) {
// Run SQL command
$result = SQL_QUERY_ESC($sql, $DATA['values'], __FUNCTION__, __LINE__);
- }
+ } // END - if
// Output message
if ((!$NO_UPDATE) && (IS_ADMIN())) {
LOAD_TEMPLATE('admin_settings_saved', false, $message);
- }
+ } // END - if
} else {
// Error found!
- $message = SPONSOR_GET_MESSAGE(getMessage('SPONSOR_DATA_NOT_SAVED'), "failed", $messageArray);
+ $message = SPONSOR_GET_MESSAGE(getMessage('SPONSOR_DATA_NOT_SAVED'), 'failed', $messageArray);
LOAD_TEMPLATE('admin_settings_saved', false, $message);
}
// Shall we return the status?
- if ($RET_STATUS) return $ret;
+ if ($RET_STATUS === true) return $ret;
}
//
function sponsorTranslateUserStatus ($status) {
// "Translate" error code
function yoomediaTranslateError ($errorCode) {
- // Default is "failed"
- $return = "failed";
+ // Default is 'failed'
+ $return = 'failed';
// Is the entry there?
if (isset($GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode])) {
$return = $GLOBALS['translation_tables']['yoomedia']['error_codes'][$errorCode];
} else {
// Log missing entries
+ print '<pre>';
+ debug_print_backtrace();
+ die('</pre>');
DEBUG_LOG(__FUNCTION__, __LINE__, " errorCode={$errorCode}");
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('task')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('task'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('task'));
return;
}
rebuildCacheFiles('admins', 'admin');
// Login has failed by default... ;-)
- $ret = "failed";
+ $ret = 'failed';
// Password matches so login here
if (LOGIN_ADMIN($admin_login, $data['password'])) {
} // END - if
} elseif ((empty($salt)) && ($ret == 'pass')) {
// Something bad went wrong
- $ret = "failed";
+ $ret = 'failed';
} elseif ($ret == 'done') {
// Try to login here if we have the old hashing way (sql_patches not installed?)
if (!LOGIN_ADMIN($admin_login, $data['password'])) {
// Something went wrong
- $ret = "failed";
+ $ret = 'failed';
} // END - if
}
require($INC);
} elseif (!EXT_IS_ACTIVE('other')) {
// Missing extension!
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('other'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('other'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('yoomedia')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('yoomedia'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('yoomedia'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('task')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('task'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('task'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('mailid')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('mailid'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('mailid'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('task')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('task'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('task'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('mailid')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('mailid'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('mailid'));
return;
}
require($INC);
} elseif ((!EXT_IS_ACTIVE('user')) || (GET_EXT_VERSION('user') == '')) {
// Missing extension!
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('user'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('user'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('yoomedia')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('yoomedia'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('yoomedia'));
return;
} elseif (!EXT_IS_ACTIVE('bonus')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bonus'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bonus'));
return;
}
return false;
} elseif (count($result[0]) < 7) {
// Error received so prepare error code
- $code = explode(" ", $result[0]['id']);
- $code = $code[0];
- $code = explode("<br />", $code);
- $code = $code[0];
+ $codeArray = explode(" ", $result[0]['id']);
+ $code = $codeArray[0];
+ $codeArray = explode("<br />", $code);
+ $code = $codeArray[0];
+ $codeArray = explode("<br>", $code);
+ $code = $codeArray[0];
+
+ // Remove all new-line characters
+ $codeArray = explode("\n", $code);
+ $code = $codeArray[0];
+
+ // Remove carrige-return
+ $code = str_replace("\n", '', $code);
// Output message
LOAD_TEMPLATE('admin_yoomedia_error', false, sprintf("{--ADMIN_YOOMEDIA_ERROR_%s--}", strtoupper(yoomediaTranslateError($code))));
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('order')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('order'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('order'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('theme')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('theme'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('theme'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('theme')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('theme'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('theme'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage(''));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage(''));
return;
} elseif ($BLOCK_MODE) {
// Block mode detected
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif ($GLOBALS['block_mode']) {
// Block mode detected
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('theme')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('theme'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('theme'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('active')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('active'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('active'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('beg')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('beg'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('beg'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('doubler')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('doubler'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('doubler'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('user')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('user'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('user'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('mediadata')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('mediadata'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('mediadata'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('rallye')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('rallye'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('rallye'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('register'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('register'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('register'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('top10')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('top10'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('top10'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('wernis')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('wernis'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('wernis'));
return;
}
} elseif (!IS_LOGGED_IN()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage(''));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage(''));
return;
} elseif ($BLOCK_MODE) {
// Block mode detected
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('bank')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bank'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bank'));
return;
} elseif ($GLOBALS['block_mode']) {
// Block mode detected
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('order')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('order'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('order'));
return;
} elseif ($GLOBALS['block_mode']) {
// Block mode detected
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('surfbar'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
} elseif ($GLOBALS['block_mode']) {
// Block mode detected
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('theme')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('theme'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('theme'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('bank')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bank'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bank'));
return;
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('bank')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bank'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bank'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('bank')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bank'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bank'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('bank')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bank'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bank'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('bank')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bank'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bank'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('beg')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('beg'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('beg'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('beg')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('beg'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('beg'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('bonus')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('bonus'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('bonus'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('doubler')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('doubler'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('doubler'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('holiday')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('holiday'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('holiday'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('html_mail')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('html_mail'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('html_mail'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('mydata')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('mydata'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('mydata'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('newsletter')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('newsletter'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('newsletter'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('nickname')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('nickname'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('nickname'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('order')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('order'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('order'));
return;
}
// Not logged in
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('payout')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('payout'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('payout'));
return;
}
LOAD_TEMPLATE("member_points");
} elseif (IS_ADMIN()) {
// Missing extension
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('user'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('user'));
} else {
// Message for user
LOAD_TEMPLATE('admin_settings_saved', false, getMessage('PROBLEM_POINTS_OVERVIEW_UNAVAILABLE'));
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('primera')) && (!IS_ADMIN())) {
// Extension 'primera' is not activated
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('primera'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('primera'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('rallye')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('rallye'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('rallye'));
return;
}
// User is not logged in
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('refback')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('refback'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('refback'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('sponsor')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
}
} elseif (!IS_MEMBER()){
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('support')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('support'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('support'));
return;
}
// Redirect
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('surfbar'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('surfbar'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
}
// Not logged in
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('surfbar'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('surfbar')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('surfbar'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('surfbar'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('theme')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('theme'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('theme'));
return;
}
} elseif (!IS_MEMBER()) {
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('transfer')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('transfer'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('transfer'));
return;
}
// User is not logged in
redirectToUrl('modules.php?module=index');
} elseif ((!EXT_IS_ACTIVE('wernis')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('wernis'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('wernis'));
return;
}
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('order')) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('order'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('order'));
return;
} elseif (!IS_MEMBER()) {
// Sorry, no guest access!
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!IS_SPONSOR()) {
// No sponsor!
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif ((!EXT_IS_ACTIVE('sponsor'))) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!IS_SPONSOR()) {
// No sponsor!
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('sponsor')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!IS_SPONSOR()) {
// No sponsor!
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('sponsor')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!IS_SPONSOR()) {
// No sponsor!
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
} elseif (!EXT_IS_ACTIVE('sponsor')) {
- addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('sponsor'));
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
return;
} elseif (!IS_SPONSOR()) {
// No sponsor!