From 87f0786a0af60dc7aece31338536a1edf8ff12db Mon Sep 17 00:00:00 2001
From: Michael Howard
Date: Thu, 30 Apr 2026 10:54:12 -0500
Subject: [PATCH] Final release: Added theme color customization, security
hardening, and UI refinements
---
.gitignore | 1 +
.htaccess | 20 ++++++++++++++++++++
README.md | 6 ------
admin/backup_handler.php | 5 -----
admin/backups/index.php | 1 +
admin/settings.php | 21 ++++++++++++++++++++-
assets/css/style.css | 11 +++++++++--
includes/footer.php | 2 +-
includes/functions.php | 20 +++++++++++++++++++-
includes/header.php | 14 +++++++++++++-
includes/index.php | 1 +
includes/track_play.php | 3 ---
index.php | 12 +-----------
sql/index.php | 1 +
sql/schema.sql | 5 ++++-
15 files changed, 91 insertions(+), 32 deletions(-)
create mode 100644 .htaccess
create mode 100644 admin/backups/index.php
create mode 100644 includes/index.php
create mode 100644 sql/index.php
diff --git a/.gitignore b/.gitignore
index f3ec2be..b18b804 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ temp_restore_*/
# Logs
error_log
access_log
+*.log
# Debug and utility scripts
debug_db.php
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..70ec44b
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,20 @@
+# Disable Directory Listing
+Options -Indexes
+
+# Protect sensitive files
+
+ Order allow,deny
+ Deny from all
+
+
+# Protect config files
+
+ Order allow,deny
+ Deny from all
+
+
+# Protect SQL files
+
+ Order allow,deny
+ Deny from all
+
diff --git a/README.md b/README.md
index fb8acb9..33dae9e 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-<<<<<<< HEAD
# Podcast Server 🚀
A lightweight, professional-grade podcast hosting and management platform designed for churches and small organizations. Built with PHP 8 and MySQL, this system provides a seamless way to host audio content, track analytics, and engage listeners via push notifications.
@@ -84,8 +83,3 @@ Feel free to fork this project and submit pull requests to the [Linology Git](ht
## 📄 License
This project is licensed under the MIT License.
-=======
-# Podcast-server
-
-A lightweight, professional-grade podcast hosting and management platform designed for churches and small organizations. Built with PHP 8 and MySQL, this system provides a seamless way to host audio content, track analytics, and engage listeners via push notifications.
->>>>>>> de0edf94110f2fe94fafd5cb8cf258079f336584
diff --git a/admin/backup_handler.php b/admin/backup_handler.php
index 54be8aa..81b36b7 100644
--- a/admin/backup_handler.php
+++ b/admin/backup_handler.php
@@ -2,11 +2,6 @@
require_once '../includes/db.php';
require_once '../includes/functions.php';
-ini_set('display_errors', 1);
-ini_set('display_startup_errors', 1);
-error_reporting(E_ALL);
-ini_set('log_errors', 1);
-ini_set('error_log', 'backup_debug.log');
set_time_limit(300); // 5 minutes
ini_set('memory_limit', '512M');
diff --git a/admin/backups/index.php b/admin/backups/index.php
new file mode 100644
index 0000000..edc99f5
--- /dev/null
+++ b/admin/backups/index.php
@@ -0,0 +1 @@
+" required>
-
+
+
+ Theme Colors
+
diff --git a/assets/css/style.css b/assets/css/style.css
index 15c4334..a9106c1 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -127,7 +127,7 @@ nav {
.hero {
height: 400px;
background-size: cover;
- background-position: center 20%; /* Adjusted to show more of the top/center */
+ background-position: top center; /* Anchored to top to prevent cutting off */
display: flex;
align-items: center;
justify-content: center;
@@ -136,6 +136,7 @@ nav {
border-radius: 0 0 40px 40px;
margin-bottom: 3rem;
background-repeat: no-repeat;
+ overflow: hidden; /* Prevent image bleeding */
}
.hero::after {
@@ -145,7 +146,7 @@ nav {
left: 0;
width: 100%;
height: 100%;
- background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg-dark));
+ background: linear-gradient(to bottom, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.3));
}
.hero-content {
@@ -265,6 +266,12 @@ input:focus, textarea:focus {
.hero h1 {
font-size: 2.5rem;
}
+ .hero {
+ height: auto;
+ min-height: 180px;
+ padding: 2.5rem 1.5rem;
+ border-radius: 0 0 24px 24px;
+ }
.nav-links {
display: none;
}
diff --git a/includes/footer.php b/includes/footer.php
index 2022120..40904d9 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -1,5 +1,5 @@