templates/de/html/install/install_fatal_table.tpl svneol=native#text/plain
templates/de/html/install/install_finished.tpl svneol=native#text/plain
templates/de/html/install/install_footer.tpl svneol=native#text/plain
+templates/de/html/install/install_header.tpl -text
templates/de/html/install/install_main_ajax.tpl svneol=native#text/plain
templates/de/html/install/install_main_plain.tpl svneol=native#text/plain
templates/de/html/install/install_menu.tpl svneol=native#text/plain
setSession('mysql_pass2', '');
} // END - if
- // Is 'mysql_type' not set?
- if (!isSessionVariableSet('mysql_type')) {
+ // Is 'mysql_engine' not set?
+ if (!isSessionVariableSet('mysql_engine')) {
// Then set it directly
- setSession('mysql_type', 'MyISAM');
+ setSession('mysql_engine', 'MyISAM');
} // END - if
}
}
// Gets an array (or false if none is found) from all supported engines
-function getArrayFromSupportedSqlEngines ($support = 'YES') {
+function getArrayFromSupportedSqlEngines ($requestedEngine = 'ALL') {
// Init array
$engines = array();
$result = SQL_QUERY('SHOW ENGINES', __FUNCTION__, __LINE__);
// Are there entries? (Bad if not)
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// Load all and check for active entries
while ($content = SQL_FETCHARRAY($result)) {
+ // Debug message
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'support=' . $requestedEngine . ',Engine=' . $content['Engine'] . ',Support=' . $content['Support']);
+
// Is this supported?
- if (($support == 'ALL') || ($content['Support'] == $support)) {
+ if ((($requestedEngine == 'ALL') || ($content['Engine'] == $requestedEngine)) && (in_array($content['Support'], array('YES', 'DEFAULT')))) {
// Add it
array_push($engines, $content);
} elseif (isDebugModeEnabled()) {
// Log it away in debug mode
- logDebugMessage(__FUNCTION__, __LINE__, 'Engine ' . $content['Engine'] . ' is not supported (' . $content['Supported'] . ' - ' . $support . ')');
+ logDebugMessage(__FUNCTION__, __LINE__, 'Engine ' . $content['Engine'] . ' is not supported (' . $content['Supported'] . ' - ' . $requestedEngine . ')');
}
} // END - if
} else {
'mysql_host' => 'database_config',
'mysql_dbase' => 'database_config',
'mysql_prefix' => 'database_config',
- 'mysql_type' => 'database_config',
+ 'mysql_engine' => 'database_config',
'mysql_login' => 'database_config',
'mysql_password1' => 'database_config',
'mysql_password2' => 'database_config',
'/ARRAY/',
array('MyISAM', 'InnoDB'),
array('{--INSTALLER_TABLE_TYPE_MYISAM--}', '{--INSTALLER_TABLE_TYPE_INNODB--}'),
- getSession('mysql_type')
+ getSession('mysql_engine')
);
}
return $isValid;
}
-// Call-back function to check validity of 'mysql_type'
+// Call-back function to check validity of 'mysql_engine'
function isInstallerMysqlTypeValid ($value) {
// This value must be 'MyISAM' or 'InnoDB'
$isValid = in_array($value, array('MyISAM', 'InnoDB'));
// Could not find database
$GLOBALS['installer_post_error'][$currentTab] = '{--INSTALLER_POST_DATABASE_SELECT_FAILED--}';
array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_dbase');
+
+ // Disconnect here, we don't need idle database connections laying around
+ SQL_CLOSE(__FUNCTION__, __LINE__);
+
+ // Abort here
return FALSE;
} // END - if
setConfigEntry('_MYSQL_PREFIX', postRequestElement('mysql_prefix'));
// Get an array of all supported engines
- $engines = getArrayFromSupportedSqlEngines();
+ $engines = getArrayFromSupportedSqlEngines(postRequestElement('mysql_engine'));
// Is this an array?
if (!is_array($engines)) {
// Something bad happened
$GLOBALS['installer_post_error'][$currentTab] = '{--INSTALLER_POST_DATABASE_ENGINES_SQL_ERROR--}';
- array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_type');
+ array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_engine');
+
+ // Disconnect here, we don't need idle database connections laying around
+ SQL_CLOSE(__FUNCTION__, __LINE__);
+
+ // Abort here
return FALSE;
} elseif (count($engines) == 0) {
// No engine is active
$GLOBALS['installer_post_error'][$currentTab] = '{--INSTALLER_POST_DATABASE_NO_ENGINES_ACTIVE--}';
- array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_type');
+ array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_engine');
+
+ // Disconnect here, we don't need idle database connections laying around
+ SQL_CLOSE(__FUNCTION__, __LINE__);
+
+ // Abort here
return FALSE;
}
$engineValid = FALSE;
// Is the engine there?
- if (strtolower($engineArray['Engine']) == strtolower(postRequestElement('mysql_type'))) {
+ if (strtolower($engineArray['Engine']) == strtolower(postRequestElement('mysql_engine'))) {
// Okay, engine is found
$engineValid = TRUE;
break;
if ($engineValid === FALSE) {
// Requested engine is not active
$GLOBALS['installer_post_error'][$currentTab] = '{--INSTALLER_POST_DATABASE_ENGINE_UNSUPPORTED--}';
- array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_type');
+ array_push($GLOBALS['installer_failed_fields'][$currentTab], 'mysql_engine');
+
+ // Disconnect here, we don't need idle database connections laying around
+ SQL_CLOSE(__FUNCTION__, __LINE__);
+
+ // Abort here
return FALSE;
} // END - if
'INSTALLER_MYSQL_HOST' => "Server-Hostname:",
'INSTALLER_MYSQL_DBASE' => "Datenbank:",
'INSTALLER_MYSQL_PREFIX' => "Präfix für alle Tabellen:",
- 'INSTALLER_MYSQL_TABLE_TYPE' => "Tabellentyp:",
- 'INSTALLER_MYSQL_TABLE_TYPE_NOTICE' => "MyISAM ist meistens ausreichend.",
+ 'INSTALLER_MYSQL_ENGINE' => "Tabellentyp:",
+ 'INSTALLER_MYSQL_ENGINE_NOTICE' => "MyISAM ist meistens ausreichend.",
'INSTALLER_TABLE_TYPE_MYISAM' => "MyISAM (langsamer, da Tabelle gelockt wird)",
'INSTALLER_TABLE_TYPE_INNODB' => "InnoDB (schneller, da zweilenweis gelockt wird)",
'INSTALLER_MYSQL_LOGIN' => "Ihr Loginname:",
'INSTALLER_CHANGED_ELEMENT_MYSQL_HOST' => "Sie haben den Hostnamen für die Datenbankverbindung geändert.",
'INSTALLER_CHANGED_ELEMENT_MYSQL_DBASE' => "Sie haben den Datenbanknamen für die Datenbankverbindung geändert.",
'INSTALLER_CHANGED_ELEMENT_MYSQL_PREFIX' => "Sie haben den Tabellenpräfix für die Datenbankverbindung geändert.",
- 'INSTALLER_CHANGED_ELEMENT_MYSQL_TYPE' => "Sie haben den Tabellentyp für die Datenbankverbindung geändert.",
+ 'INSTALLER_CHANGED_ELEMENT_MYSQL_ENGINE' => "Sie haben die Datenbank-Engine für die Datenbankverbindung geändert.",
'INSTALLER_CHANGED_ELEMENT_MYSQL_LOGIN' => "Sie haben den Login für die Datenbankverbindung geändert.",
'INSTALLER_CHANGED_ELEMENT_MYSQL_PASSWORD1' => "Sie haben das Passwort für die Datenbankverbindung geändert.",
'INSTALLER_CHANGED_ELEMENT_MYSQL_PASSWORD2' => "Sie haben die Passwortwiederholung für die Datenbankverbindung geändert.",
--- /dev/null
+<!-- @DEPRECATED //-->
</td>
</tr>
<tr>
- <td align="right" class="install_right">{--INSTALLER_MYSQL_TABLE_TYPE--}</td>
+ <td align="right" class="install_right">{--INSTALLER_MYSQL_ENGINE--}</td>
<td align="left">
<select name="mysql[type]" size="1">
<option value="MyISAM">{--INSTALLER_TABLE_TYPE_MYISAM--}</option>
</div>
<div class="table_row">
- <label class="install_label" for="mysql_type">{--INSTALLER_MYSQL_TABLE_TYPE--}</label>
- <select id="mysql_type" name="mysql_type" size="1" class="form_select" onchange="return allowSaveChanges('mysql_type')">
+ <label class="install_label" for="mysql_engine">{--INSTALLER_MYSQL_ENGINE--}</label>
+ <select id="mysql_engine" name="mysql_engine" size="1" class="form_select" onchange="return allowSaveChanges('mysql_engine')">
{%pipe,generateInstallerDatabaseTypeOptions%}
</select>
<div class="field_note">
- {--INSTALLER_MYSQL_TABLE_TYPE_NOTICE--}
+ {--INSTALLER_MYSQL_ENGINE_NOTICE--}
</div>
</div>
</fieldset>