Initial Upload #1
This commit is contained in:
commit
281bcaf36d
2 changed files with 418 additions and 0 deletions
149
downloads.php
Normal file
149
downloads.php
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
require __DIR__ . '/includes/config.php';
|
||||
|
||||
// Check if the download links exist in the session
|
||||
if (!isset($_SESSION['download_links'])) {
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$download_links = $_SESSION['download_links'];
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>SquidDebrid - Download Ready</title>
|
||||
<!-- Bootstrap 5 CSS -->
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!-- Custom CSS -->
|
||||
<style>
|
||||
body {
|
||||
background-color: #121212;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background-color: #1f1f1f;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
color: #e0e0e0 !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
background-color: #1f1f1f;
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background-color: #198754;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-success:hover {
|
||||
background-color: #157347;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: #6c757d;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #5c636a;
|
||||
}
|
||||
|
||||
.filename {
|
||||
max-width: 300px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.list-group-item {
|
||||
background-color: #2d2d2d;
|
||||
border: 1px solid #444;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.alert {
|
||||
color: white;
|
||||
border-radius: 10px;
|
||||
background-color: #2d2d2d;
|
||||
border: 1px solid #444;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.form-control {
|
||||
border: 1px solid #444;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
border-color: #0d6efd;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link {
|
||||
background-color: #2d2d2d;
|
||||
border: 1px solid #444;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link.active {
|
||||
background-color: #1f1f1f;
|
||||
border-color: #444 #444 #1f1f1f;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="index.php">SquidDebrid</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- Main Content -->
|
||||
<div class="container mt-5">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card p-4">
|
||||
<h2 class="text-center mb-4">Your Files are Ready!</h2>
|
||||
<ul class="list-group">
|
||||
<?php foreach ($download_links as $file): ?>
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center">
|
||||
<span class="filename" title="<?php echo htmlspecialchars($file['filename']); ?>">
|
||||
<?php echo htmlspecialchars($file['filename']); ?>
|
||||
</span>
|
||||
<a href="<?php echo htmlspecialchars($file['url']); ?>" class="btn btn-success btn-sm" download>Download</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<a href="/" class="btn btn-secondary w-100 mt-3">Back to Home</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bootstrap 5 JS (Optional) -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue