</fieldset> <?php if (is_writable($_SERVER['DOCUMENT_ROOT'] . '/user_mod/settings.php')) { ?> <input type='submit' value='Proceed' /> <?php } ?> </form> </div> <?php } else { $dbase = new dbase($dbh); $install = new install($dbase, $settings); if (!$install->checkdb()) { $dbh->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $dbase = new dbase($dbh); $install = new install($dbase, $settings); $install->makedb(); include 'firstuser.php'; } else { if (!$install->checkfinished()) { include 'firstuser.php'; } else { ?> <div>Already Installed</div> <?php } } }