function test() { echo "Checking database...<br/>"; test_database(); echo "SUCCESS: Database is ready.<br/>"; echo "Checking files...<br/>"; test_files(); echo "SUCCESS: php-info-beamer is ready."; }
echo "<input type=\"submit\" value=\"OK\">\n"; echo "</form>\n"; } else { $is_dbconf_ok = write_db_config($dbserver, $dbuser, $dbpasswd, $dbdb); if ($is_dbconf_ok != true) { echo "le dossier " . CONFIG_PATH . " n'est pas accessible en écriture"; } else { echo _('db_configuration_ok'); echo "<br><a href=\"{$PHP_SELF}?session={$session}&lang={$lang}\"> continuez....</a><br>\n"; } } bottom(); } else { include CONFIG_PATH . 'dbconnect.php'; include ROOT_PATH . 'version.php'; if (!test_database()) { header_popup(); echo "<center>\n"; echo "<br><br>\n"; echo "<b>" . _('install_db_inaccessible') . " ... <br><br>\n"; echo _('install_verifiez_param_file'); echo "(" . _('install_verifiez_priv_mysql') . ")<br><br>\n"; echo "<center>\n"; echo "<br><br>\n"; if ($dbserver == "" || $dbuser == "" || $dbpasswd == "") { echo _('db_configuration'); echo "<form action=\"{$PHP_SELF}?session={$session}\" method=\"POST\">\n"; echo "Server :"; echo '<INPUT type="text" value="localhost" name="dbserver"><br>'; echo "Database name :"; echo '<INPUT type="text" value="db_conges" name="dbdb"><br>';