From ecebef5a4abbbcb9d502eee38dcfcd63aa686f52 Mon Sep 17 00:00:00 2001 From: xodivorce Date: Sun, 2 Feb 2025 05:16:59 +0530 Subject: [PATCH] v4.1.3 --- README.md | 2 +- htdocs/.DS_Store | Bin 8196 -> 8196 bytes htdocs/account.php | 38 ++++++++++++++++++++++++++++ htdocs/assets/.DS_Store | Bin 8196 -> 8196 bytes htdocs/assets/_header.php | 18 +++++++++++-- htdocs/assets/css/_account.css | 12 +++++++++ htdocs/assets/css/_monetization.css | 12 +++++++++ htdocs/assets/js/_home.js | 4 +-- htdocs/core/login_action.php | 4 +-- htdocs/core/redirect_google.php | 4 +-- htdocs/dashboard.php | 19 -------------- htdocs/index.php | 28 -------------------- htdocs/monetization.php | 38 ++++++++++++++++++++++++++++ 13 files changed, 123 insertions(+), 56 deletions(-) create mode 100644 htdocs/account.php create mode 100644 htdocs/assets/css/_account.css create mode 100644 htdocs/assets/css/_monetization.css delete mode 100644 htdocs/dashboard.php create mode 100644 htdocs/monetization.php diff --git a/README.md b/README.md index e14a97b4..2441d05c 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.2-yellow.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/) [![PRs](https://img.shields.io/badge/PRs-welcome-blue.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)

diff --git a/htdocs/.DS_Store b/htdocs/.DS_Store index b83e8a0a8585c25a7b19841f77b88aca0aa59afc..aca560156f13fb9d5d63761cefd5832ec7cb83f1 100644 GIT binary patch delta 37 tcmZp1XmOa}&nU1lU^hRbz-Ar+PnOBEMe;Tu=5b-(%r5bRWn&d9GXUl?3+n&? delta 84 zcmZp1XmOa}&nUPtU^hRb;AS2HPZn8Wh9ZVkh7^WOFrCa$!Vu4p&X5m;=?poOKL|;( gIx;XY@=f* + + + + + + + Dashboard + + + + + + + + + + + + + + + + +
+

Welcome, !

+

Email:

+ Logout +
+ + + diff --git a/htdocs/assets/.DS_Store b/htdocs/assets/.DS_Store index 9879712fd8394ec9ffceec31b526d127a018d737..9a0ef78ae094461e7185cc65fb05b5a6d987ab37 100755 GIT binary patch delta 99 zcmZp1XmQwZOo&NZYVrx8JJJ!E$@zJ~nN_Lr0{q1p`Q@HKZa`6LS!Qba0Y)W8ZAKGDTSj|E55_>oAjV|I48}~xqRn0+ySM=@6B`l$ delta 99 zcmZp1XmQwZOo&NJX7UN4JJRt2{KXmh<(|p;c>zVKWtpkv5t%@CaAsBNNk%0`ZAKGDTSj|E55_>oAjV|I48}~xtj%5`ySM=jA{vSS diff --git a/htdocs/assets/_header.php b/htdocs/assets/_header.php index 467507ee..531f0b71 100755 --- a/htdocs/assets/_header.php +++ b/htdocs/assets/_header.php @@ -1,3 +1,9 @@ + +
@@ -16,9 +22,17 @@
-
\ No newline at end of file + diff --git a/htdocs/assets/css/_account.css b/htdocs/assets/css/_account.css new file mode 100644 index 00000000..7f6461e7 --- /dev/null +++ b/htdocs/assets/css/_account.css @@ -0,0 +1,12 @@ +body { + font-family: "Montserrat", sans-serif; + margin: 0; + padding: 0; + background-color: #ffffff; + color: #333333; +} + +main { + padding: 60px 20px; + text-align: center; +} \ No newline at end of file diff --git a/htdocs/assets/css/_monetization.css b/htdocs/assets/css/_monetization.css new file mode 100644 index 00000000..7f6461e7 --- /dev/null +++ b/htdocs/assets/css/_monetization.css @@ -0,0 +1,12 @@ +body { + font-family: "Montserrat", sans-serif; + margin: 0; + padding: 0; + background-color: #ffffff; + color: #333333; +} + +main { + padding: 60px 20px; + text-align: center; +} \ No newline at end of file diff --git a/htdocs/assets/js/_home.js b/htdocs/assets/js/_home.js index 2f5619e6..f479ac0e 100755 --- a/htdocs/assets/js/_home.js +++ b/htdocs/assets/js/_home.js @@ -46,7 +46,8 @@ shortenBtn.onclick = () => { if (xhr.readyState == 4 && xhr.status == 200) { let data = xhr.response; if (data.length <= 5) { - let domain = "xeorl.buzz/"; + //This is your domain name + const domain = "xeorl.buzz/"; let shortenURL = domain + data; // Remove the default message if it exists @@ -101,7 +102,6 @@ document.addEventListener('click', function(e) { } }); - // Handle delete button clicks /* document.addEventListener('click', function(e) { diff --git a/htdocs/core/login_action.php b/htdocs/core/login_action.php index 92f824de..667dc418 100644 --- a/htdocs/core/login_action.php +++ b/htdocs/core/login_action.php @@ -32,8 +32,8 @@ if (isset($_POST['login_btn'])) { $_SESSION['user_email'] = $row['user_email']; $_SESSION['user_type'] = $row['user_type']; - // Redirect to dashboard after successful login - header('Location: ../dashboard.php'); + // Redirect to monetization after successful login + header('Location: ../monetization.php'); exit(); } else { $_SESSION['error'] = "Invalid password. Please try again."; diff --git a/htdocs/core/redirect_google.php b/htdocs/core/redirect_google.php index a96dfdb3..6ad4c156 100644 --- a/htdocs/core/redirect_google.php +++ b/htdocs/core/redirect_google.php @@ -60,8 +60,8 @@ if (isset($_GET['code'])) { $_SESSION['user_name'] = $name; $_SESSION['user_email'] = $email; - // Redirect to dashboard - header("Location: ../dashboard.php"); + // Redirect to monetization + header("Location: ../monetization.php"); exit(); } else { header("Location: " . $client->createAuthUrl()); diff --git a/htdocs/dashboard.php b/htdocs/dashboard.php deleted file mode 100644 index c52045b6..00000000 --- a/htdocs/dashboard.php +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - Dashboard - - -

Welcome, !

-

Email:

- Logout - - diff --git a/htdocs/index.php b/htdocs/index.php index 67ef9be6..0f421fa1 100755 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -37,34 +37,6 @@ require 'core/get_statistics.php'; // Include the statistics file diff --git a/htdocs/monetization.php b/htdocs/monetization.php new file mode 100644 index 00000000..32237e43 --- /dev/null +++ b/htdocs/monetization.php @@ -0,0 +1,38 @@ + + + + + + + + Dashboard + + + + + + + + + + + + + + + + +
+

Welcome, !

+

Email:

+ Logout +
+ + +