$install_access = true; require ("config.php"); if ($CONFIG['installed'] == "y") { header ("Location: admin.php"); exit; } if ($submit) { if ($password != $password_confirm) { $status_msg = "The password that you entered did not match the confirmed password. Please try again."; } else { if ($password == "") { $status_msg = "Please enter a password."; } else { $fp = fopen($CONFIG['admin_data'], "w"); fputs ($fp, "installed=" . $do_install . "\n"); fputs ($fp, "admin_password=" . $password . "\n"); fclose ($fp); header ("Location: admin.php"); exit; } } } ?>