<?php
// Simple index file to provide easy access to all the fix tools
?>
<!DOCTYPE html>
<html>
<head>
<title>Installation Fix Tools</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fc;
}
.container {
max-width: 800px;
margin: 50px auto;
padding: 20px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
color: #4e73df;
margin-top: 0;
}
.card {
border: 1px solid #e3e6f0;
border-radius: 5px;
padding: 15px;
margin-bottom: 20px;
}
.card-title {
font-size: 18px;
font-weight: bold;
margin-top: 0;
margin-bottom: 10px;
color: #4e73df;
}
.card-description {
color: #6c757d;
margin-bottom: 15px;
}
.btn {
display: inline-block;
padding: 8px 16px;
margin-right: 10px;
font-size: 14px;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
text-decoration: none;
}
.btn-primary {
color: #fff;
background-color: #4e73df;
border-color: #4e73df;
}
.btn-success {
color: #fff;
background-color: #1cc88a;
border-color: #1cc88a;
}
.btn-warning {
color: #fff;
background-color: #f6c23e;
border-color: #f6c23e;
}
.btn-info {
color: #fff;
background-color: #36b9cc;
border-color: #36b9cc;
}
</style>
</head>
<body>
<div class="container">
<h1>Installation Fix Tools</h1>
<p>Use these tools to fix the blank screen issue during installation.</p>
<div class="card">
<h2 class="card-title">1. Installation Debug</h2>
<p class="card-description">This tool checks your server configuration, database connection, and file permissions to identify the cause of the blank screen.</p>
<a href="admin/install_debug.php" class="btn btn-primary">Run Debug Tool</a>
</div>
<div class="card">
<h2 class="card-title">2. PHP Configuration</h2>
<p class="card-description">View your PHP configuration to check for any settings that might be causing issues.</p>
<a href="admin/phpinfo.php" class="btn btn-info">View PHP Info</a>
</div>
<div class="card">
<h2 class="card-title">3. Fix Installation</h2>
<p class="card-description">This tool replaces the problematic installation script with a minimal working version.</p>
<a href="admin/replace_install.php" class="btn btn-success">Fix Installation</a>
</div>
<div class="card">
<h2 class="card-title">4. Minimal Installation</h2>
<p class="card-description">A simplified installation process that works even with strict PHP configurations.</p>
<a href="admin/minimal_install.php" class="btn btn-warning">Run Minimal Installation</a>
</div>
<div class="card">
<h2 class="card-title">5. Direct Installation</h2>
<p class="card-description">If all else fails, this tool will directly create the necessary database and admin user.</p>
<a href="admin/fix_install.php" class="btn btn-primary">Direct Installation</a>
</div>
</div>
</body>
</html>