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;
}
$content = array(); $points = false;
// Is the mode set (payout only)
-if (!REQUEST_ISSET_GET(('mode'))) {
+if (!REQUEST_ISSET_GET('mode')) {
// Get referal id
$content['refid'] = getConfig(('primera_refid'));
SQL_FREERESULT($result);
// Is there an ID?
- if ((!empty($content['primera_nickname'])) && (!REQUEST_ISSET_GET(('mode')))) {
+ if ((!empty($content['primera_nickname'])) && (!REQUEST_ISSET_GET('mode'))) {
// Then use an other "mode"
REQUEST_SET_GET('mode', "list");
SQL_FREERESULT($result);
} else {
// Invalid mode!
- LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET(('mode'))));
+ LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET('mode')));
return;
}
// Is the formular sent?
-if ((isFormSent()) && (REQUEST_ISSET_GET(('mode')))) {
+if ((isFormSent()) && (REQUEST_ISSET_GET('mode'))) {
// Check input data depending on the mode and execute the requested mode
switch (REQUEST_GET('mode')) {
case "pay": // Payout this exchange -> Primus
default: // Invalid mode!
DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", REQUEST_GET('mode')));
- LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET(('mode'))));
+ LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('PRIMERA_MEMBER_MODE_INVALID'), REQUEST_GET('mode')));
return;
}
} // END - if
// Prepare mode for template name
-$mode = sprintf("member_primera_mode_%s", REQUEST_GET(('mode')));
+$mode = sprintf("member_primera_mode_%s", REQUEST_GET('mode'));
// Load the template
LOAD_TEMPLATE($mode, false, $content);