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 b83e8a0a..aca56015 100644 Binary files a/htdocs/.DS_Store and b/htdocs/.DS_Store differ diff --git a/htdocs/account.php b/htdocs/account.php new file mode 100644 index 00000000..65b5ee54 --- /dev/null +++ b/htdocs/account.php @@ -0,0 +1,38 @@ + + + + + + + + Dashboard + + + + + + + + + + + + + + + + +
+

Welcome, !

+

Email:

+ Logout +
+ + + diff --git a/htdocs/assets/.DS_Store b/htdocs/assets/.DS_Store index 9879712f..9a0ef78a 100755 Binary files a/htdocs/assets/.DS_Store and b/htdocs/assets/.DS_Store differ 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 +
+ + +