return $isValid;
}
+// Call-back function to check validity of 'database_extension'
+function isInstallerDatabaseExtensionValid ($value) {
+ // This value must be 'mysql' or 'mysqli'
+ $isValid = in_array($value, array('mysql', 'mysqli'));
+
+ // Return it
+ return $isValid;
+}
+
// Call-back function to check validity of 'mysql_dbase'
function isInstallerMysqlDbaseValid ($value) {
// This value must not be empty
'ADMIN_OPTIMIZE_STATUS_OK' => "Nein",
'ADMIN_OPTIMIZE_STATUS_TABLE_DOES_NOT_SUPPORT_OPTIMIZE_DOING_RECREATE_ANALYZE_INSTEAD' => "Keine Unterstützung (1)",
'ADMIN_OPTIMIZE_STATUS_THE_STORAGE_ENGINE_FOR_THE_TABLE_DOESNT_SUPPORT_OPTIMIZE' => "Keine Unterstützung (2)",
+ 'ADMIN_OPTIMIZE_STATUS_TABLE_DOES_NOT_SUPPORT_OPTIMIZE_DOING_RECREATE__ANALYZE_INSTEAD' => "Keine Unterstützung (3)",
'ADMIN_OPTIMIZE_STATUS_UNSUPPORTED' => "Nicht möglich",
'ADMIN_OPTIMIZE_STATUS_OPTIMIZED' => "Optimiert.",
'ADMIN_OPTIMIZE_DB_TOTAL_TABLES' => "Gesamtzahl angelegter Tabellen",
'GUEST_REGISTER_WERNIS_PROVIDER_TITLE' => "Anmeldung mit WDS66 am {?mt_word?} <strong>{?MAIN_TITLE?}</strong>:",
// Points accounts - subject
- 'POINTS_SUBJECT_WERNIS_WITHDRAW' => "Einzahlung vom WDS66-Account",
+ 'POINTS_SUBJECT_WERNIS_WITHDRAW' => "Einzahlung vom WDS66-Account",
+ 'POINTS_SUBJECT_WERNIS_WITHDRAW_REF' => "Anteil an Einzahlung vom WDS66-Account",
// Registration provider
'REGISTRATION_PROVIDER_WERNIS_USER_REGISTRATION' => "Mit WDS66-Portal anmelden ...",
// Status was okay?
if (isHttpResponseStatusOkay($args)) {
- // Is status set?
+ // Is auth_status set?
//* DEBUG-DIE */ die('response=<pre>' . print_r($response, TRUE) . '</pre>,args=' . '<pre>'.print_r($args, TRUE).'</pre>');
assert(isset($args['auth_status']));
reportBug(__FUNCTION__, __LINE__, 'Cannot map from=' . $from . ' -> to=' . $to . ': element does not exist.');
} // END - if
- // "Map" all
+ // "Map" all and make empty strings to NULL
$return['mapped_data'][$to] = convertEmptyToNull($userData[$from]);
} // END - foreach
setConfigEntry('OUTPUT_MODE', 'render');
} // END - if
- // CFG: DATABASE-TYPE
- setConfigEntry('_DB_TYPE', 'mysql');
+ // Debug message
+ /* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'isAjaxOutputMode()=' . intval(isAjaxOutputMode()) . ',isSessionVariableSet(database_extension)=' . intval(isSessionVariableSet('database_extension')));
+
+ // Is it AJAX call and database_extension is set?
+ if ((isAjaxOutputMode()) && (isSessionVariableSet('database_extension'))) {
+ // Then take it from session
+ /* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Setting _DB_TYPE from session;database_extension=' . getSession('database_extension'));
+ setConfigEntry('_DB_TYPE', getSession('database_extension'));
+ } else {
+ // Debug message
+ /* DEBUG: */ logDebugMessage(__FILE__, __LINE__, 'Setting _DB_TYPE to default (mysql) ...');
+
+ // Set (old) default
+ setConfigEntry('_DB_TYPE', 'mysql');
+ }
// Set link as down
unsetSqlLinkUp(__FILE__, __LINE__);