From 0c8309d33803d2865901c0f5157668e133e9b999 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 22 Jan 2026 14:39:45 +0000 Subject: [PATCH] Revert to version a16d2f1 --- .htaccess | 25 ++-- admin_credentials.txt | 4 - .../gamepulse-newsletter.php | 140 ------------------ .../twentytwentyfive-child/functions.php | 6 - .../themes/twentytwentyfive-child/style.css | 32 ---- 5 files changed, 16 insertions(+), 191 deletions(-) delete mode 100644 admin_credentials.txt delete mode 100644 wp-content/plugins/gamepulse-newsletter/gamepulse-newsletter.php delete mode 100644 wp-content/themes/twentytwentyfive-child/functions.php delete mode 100644 wp-content/themes/twentytwentyfive-child/style.css diff --git a/.htaccess b/.htaccess index fffb651..e2bbc23 100644 --- a/.htaccess +++ b/.htaccess @@ -1,11 +1,18 @@ -# BEGIN WordPress - +DirectoryIndex index.php index.html +Options -Indexes +Options -MultiViews + RewriteEngine On -RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] -RewriteBase / -RewriteRule ^index\.php$ - [L] -RewriteCond %{REQUEST_FILENAME} !-f + +# 0) Serve existing files/directories as-is +RewriteCond %{REQUEST_FILENAME} -f [OR] +RewriteCond %{REQUEST_FILENAME} -d +RewriteRule ^ - [L] + +# 1) Internal map: /page or /page/ -> /page.php (if such PHP file exists) +RewriteCond %{REQUEST_FILENAME}.php -f +RewriteRule ^(.+?)/?$ $1.php [L] + +# 2) Optional: strip trailing slash for non-directories (keeps .php links working) RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule . /index.php [L] - -# END WordPress +RewriteRule ^(.+)/$ $1 [R=301,L] diff --git a/admin_credentials.txt b/admin_credentials.txt deleted file mode 100644 index 9689bd0..0000000 --- a/admin_credentials.txt +++ /dev/null @@ -1,4 +0,0 @@ -WordPress Admin Credentials: -URL: http://localhost/wp-admin -Username: admin -Password: qtWbo5uE2epruH8y diff --git a/wp-content/plugins/gamepulse-newsletter/gamepulse-newsletter.php b/wp-content/plugins/gamepulse-newsletter/gamepulse-newsletter.php deleted file mode 100644 index a154d0a..0000000 --- a/wp-content/plugins/gamepulse-newsletter/gamepulse-newsletter.php +++ /dev/null @@ -1,140 +0,0 @@ -prefix . 'gamepulse_subscriptions'; - $charset_collate = $wpdb->get_charset_collate(); - - $sql = "CREATE TABLE IF NOT EXISTS $table_name ( - id mediumint(9) NOT NULL AUTO_INCREMENT, - email varchar(100) NOT NULL, - created_at datetime DEFAULT CURRENT_TIMESTAMP NOT NULL, - PRIMARY KEY (id), - UNIQUE KEY email (email) - ) $charset_collate;"; - - require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); - dbDelta($sql); -} - -// Shortcode to display the form -add_shortcode('gamepulse_newsletter', 'gamepulse_newsletter_form_shortcode'); -function gamepulse_newsletter_form_shortcode() { - ob_start(); - ?> -
-

Stay in the Loop

-

Get the latest gaming news, reviews, and "realises" delivered to your inbox.

-
- - -
-
-
- - 'Please enter a valid email address.']); - } - - global $wpdb; - $table_name = $wpdb->prefix . 'gamepulse_subscriptions'; - - // Check if already subscribed - $exists = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $table_name WHERE email = %s", $email)); - - if ($exists) { - wp_send_json_error(['message' => 'You are already subscribed!']); - } - - $inserted = $wpdb->insert( - $table_name, - ['email' => $email], - ['%s'] - ); - - if ($inserted) { - // Send notification to admin using MailService - if (file_exists(ABSPATH . 'mail/MailService.php')) { - require_once ABSPATH . 'mail/MailService.php'; - $site_name = get_bloginfo('name'); - MailService::sendMail( - null, // Fallback to MAIL_TO - "New Subscriber for $site_name", - "

A new user has subscribed to your newsletter: $email

", - "A new user has subscribed to your newsletter: $email" - ); - } - - wp_send_json_success(['message' => 'Thank you for subscribing!']); - } else { - wp_send_json_error(['message' => 'Subscription failed. Please try again later.']); - } -} diff --git a/wp-content/themes/twentytwentyfive-child/functions.php b/wp-content/themes/twentytwentyfive-child/functions.php deleted file mode 100644 index 215f6ed..0000000 --- a/wp-content/themes/twentytwentyfive-child/functions.php +++ /dev/null @@ -1,6 +0,0 @@ -get('Version')); -} -add_action('wp_enqueue_scripts', 'twentytwentyfive_child_enqueue_styles'); diff --git a/wp-content/themes/twentytwentyfive-child/style.css b/wp-content/themes/twentytwentyfive-child/style.css deleted file mode 100644 index 2e36960..0000000 --- a/wp-content/themes/twentytwentyfive-child/style.css +++ /dev/null @@ -1,32 +0,0 @@ -/* -Theme Name: GamePulse Child -Theme URI: https://flatlogic.com/ -Description: Child theme for the GamePulse blog. -Author: Gemini -Template: twentytwentyfive -Version: 1.0.0 -*/ - -body { - background-color: #0f0f0f; - color: #e0e0e0; -} - -h1, h2, h3, h4, h5, h6 { - color: #ffffff; - font-family: 'Inter', sans-serif; -} - -a { - color: #E63946; - text-decoration: none; -} - -a:hover { - color: #f1faee; -} - -.wp-block-heading { - border-left: 4px solid #E63946; - padding-left: 15px; -}