From c4c8ba334e094bd2e1b6f918f7656d91ef82394a Mon Sep 17 00:00:00 2001 From: xodivorce Date: Sun, 2 Feb 2025 18:45:42 +0530 Subject: [PATCH] v4.1.4 --- README.md | 2 +- htdocs/.htaccess | 9 ++- htdocs/assets/_header.php | 2 +- htdocs/assets/css/_home.css | 124 ++++++++++++++++++++++++++++++------ htdocs/home.php | 94 +++++++++++++++++++++++++++ htdocs/index.php | 97 ++-------------------------- 6 files changed, 210 insertions(+), 118 deletions(-) create mode 100644 htdocs/home.php diff --git a/README.md b/README.md index 2441d05c..ed1a4a45 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ### Xeorl - The All-In-One, Fully Free to Use Advanced Link Shortener and Management Tool - Powered by [@xodivorce](https://instagram.com/xodivorce) ✨ [![status](https://img.shields.io/badge/status-active-brightgreen.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/) -[![version](https://img.shields.io/badge/version-v4.1.3-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/) +[![version](https://img.shields.io/badge/version-v4.1.4-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/) [![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)

diff --git a/htdocs/.htaccess b/htdocs/.htaccess index bb6c821a..57ae4f51 100755 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -1,6 +1,9 @@ +Options -Indexes RewriteEngine On -RewriteCond $1 !^(index\.php) -RewriteCond %{REQUEST_FILENAME} !-f +# Check if the request is not for an existing directory or file RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)$ index.php?/$1 [L] \ No newline at end of file +RewriteCond %{REQUEST_FILENAME} !-f + +# Rewrite all other URLs to index.php with the 'url' parameter +RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] diff --git a/htdocs/assets/_header.php b/htdocs/assets/_header.php index 531f0b71..8084a40f 100755 --- a/htdocs/assets/_header.php +++ b/htdocs/assets/_header.php @@ -10,7 +10,7 @@ if (session_status() === PHP_SESSION_NONE) {