+var dbtypes
$(document).ready(function() {
+ dbtypes={
+ sqlite:!!$('#hasSQLite').val(),
+ mysql:!!$('#hasMySQL').val(),
+ postgresql:!!$('#hasPostgreSQL').val(),
+ }
+
$('#selectDbType').buttonset();
$('#datadirContent').hide(250);
$('#databaseField').hide(250);
form.submit();
return false;
});
+
+ if(!dbtypes.sqlite){
+ $('#showAdvanced').click();
+ $('input[type="radio"]').first().click();
+ }
});
+<input type='hidden' id='hasMySQL' value='<?php echo $_['hasMySQL'] ?>'></input>
+<input type='hidden' id='hasSQLite' value='<?php echo $_['hasSQLite'] ?>'></input>
+<input type='hidden' id='hasPostgreSQL' value='<?php echo $_['hasPostgreSQL'] ?>'></input>
<form action="index.php" method="post">
<input type="hidden" name="install" value="true" />