echo '<div style="border:#ee0000 solid 1px; background-color:#f6adad; color:#000000; width:500px; margin-bottom:20px">'; echo 'Cannot connect to mysql database, check settings in configuration file `<b>config.php</b>`.<br />'; echo 'MySQL error: ' . mysql_error(); echo '</div>'; die; } if (!$pony_db->select_db($mysql_database)) { echo '<h4><font color="#b72525">Error! Server configuration problem!</font></h4>'; echo '<div style="border:#ee0000 solid 1px; background-color:#f6adad; color:#000000; width:500px; margin-bottom:20px">'; echo 'Cannot select mysql database, please, check if the `<b>' . $mysql_database . '</b>` database exists or you have enough rights to create new databases.<br />'; echo 'MySQL error: ' . mysql_error() . '.'; echo '</div>'; die; } $all_tables_exist = $pony_db->all_tables_exist(); $some_tables_exist = $pony_db->some_tables_exist(); if (!$pony_db->state) { echo '<h4><font color="#b72525">Error! Server configuration problem!</font></h4>'; echo '<div style="border:#ee0000 solid 1px; background-color:#f6adad; color:#000000; width:500px; margin-bottom:20px">'; echo 'Unknown MySQL error occured: ' . mysql_error() . '.'; echo '</div>'; die; } if (!install_check(false, true)) { echo '<h4><font color="#b72525">Attention! Server configuration problem!</font></h4>'; echo '<div style="border:#ee0000 solid 1px; background-color:#f6adad; color:#000000; width:500px; margin-bottom:20px">'; install_check(true, true); echo '</div>'; } $set_admin_pass = trim(assign($_REQUEST['set_admin_pass'])) == '1'; if (!$all_tables_exist && $set_admin_pass) {