Exemplo n.º 1
0
</script>

<h1><?php 
echo gt('Configure Database');
?>
</h1>
<form method="post" action="index.php">
    <input type="hidden" name="page" value="install-3" />
	<div class="control">
        <span class="label"><?php 
echo gt('Backend');
?>
: </span>
        <select name="sc[db_engine]" onchange="showOptions(this.value);">
		<?php 
foreach (expDatabase::backends(1) as $name => $display) {
    echo '<option value="' . $name . '"';
    if ($config['db_engine'] == $name) {
        echo ' selected="selected"';
    }
    echo '>' . $display . '</option>';
}
?>
		</select>
		<div class="control_help">
			<?php 
echo gt('Select which database server software package your web server is running.  If the software is not listed, it is not supported by Exponent.');
?>
			<br /><br />
			<?php 
echo gt('If in doubt, contact your system administrator or hosting provider.');
Exemplo n.º 2
0
function _sanity_checkDB()
{
    //	$have_good = false;
    if (count(expDatabase::backends(1)) > 0) {
        return array(SANITY_FINE, gt('Supported'));
    } else {
        return array(SANITY_ERROR, gt('No Databases Supported'));
    }
}