diff --git a/README.md b/README.md
index 41fa8273..0a2b82a4 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) ✨
[](https://github.com/xeorl/xeorl-portfolio/)
-[](https://github.com/xeorl/xeorl-portfolio/)
+[](https://github.com/xeorl/xeorl-portfolio/)
[](https://github.com/xeorl/xeorl-portfolio/)
diff --git a/htdocs/assets/_cookies.php b/htdocs/assets/_cookies.php
index 400a3a11..7dd25e7f 100644
--- a/htdocs/assets/_cookies.php
+++ b/htdocs/assets/_cookies.php
@@ -1,6 +1,6 @@
diff --git a/htdocs/assets/js/_home.js b/htdocs/assets/js/_home.js
index c2ebb62d..c231b1d0 100755
--- a/htdocs/assets/js/_home.js
+++ b/htdocs/assets/js/_home.js
@@ -34,7 +34,7 @@ shortenBtn.onclick = () => {
let data = xhr.response;
if (data.length <= 5) {
// This is your shoeten domain name
- const domain = "http://localhost/Php-Projects/xeorl/htdocs//";
+ const domain = "xeorl.buzz/";
let shortenURL = domain + data;
const defaultMessage = document.getElementById("default-message");
diff --git a/htdocs/register.php b/htdocs/register.php
index 213a50eb..ac2e4f7a 100644
--- a/htdocs/register.php
+++ b/htdocs/register.php
@@ -55,7 +55,7 @@ ini_set('display_errors', 1);
diff --git a/xeorl.sql b/xeorl.sql
index 5d88d0b0..2bce3423 100644
--- a/xeorl.sql
+++ b/xeorl.sql
@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Host: localhost
--- Generation Time: Feb 05, 2025 at 08:28 AM
+-- Generation Time: Feb 05, 2025 at 12:54 PM
-- Server version: 10.4.28-MariaDB
-- PHP Version: 8.2.4
@@ -34,23 +34,9 @@ CREATE TABLE `url` (
`clicks` int(11) NOT NULL,
`total_links` int(11) DEFAULT 0,
`total_clicks` int(11) DEFAULT 0,
- `user_id` int(11) DEFAULT NULL
+ `user_email` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
---
--- Dumping data for table `url`
---
-
-INSERT INTO `url` (`id`, `shorten_url`, `full_url`, `clicks`, `total_links`, `total_clicks`, `user_id`) VALUES
-(68, 'b1f6c', 'https://chatgpt.com/', 0, 0, 0, NULL),
-(87, '52fe9', 'https://prourl.eu.org/rwqe', 0, 0, 0, NULL),
-(96, 'f49aa', 'https://www.xodivorce.in/', 6, 0, 0, NULL),
-(103, '67191', 'https://github.com/xodivorce', 0, 0, 0, NULL),
-(105, '4dfe6', 'https://www.blackbox.ai/', 0, 0, 0, NULL),
-(112, '9500b', 'https://www.google.com/search?q=int+11+max+value+%3F&sca_esv=b71b87a039ad9bf1&sxsrf=AHTn8zqi--a95yrKigfA0Sd6b_9ixbSRLQ%3A1738710375024&ei=Z52iZ9mfAcGtseMP0L-DkAQ&ved=0ahUKEwiZ75TykKuLAxXBVmwGHdDfAEIQ4dUDCBA&uact=5&oq=int+11+max+value+%3F&gs_lp=Egxnd3Mtd2l6LXNlcnAiEmludCAxMSBtYXggdmFsdWUgPzIGEAAYFhgeMgYQABgWGB4yBhAAGBYYHjIGEAAYFhgeMgsQABiABBiGAxiKBTILEAAYgAQYhgMYigUyCxAAGIAEGIYDGIoFMgUQABjvBTIIEAAYgAQYogRIiwpQlgRY2ghwAXgBkAEAmAGvAaAB1AKqAQMwLjK4AQPIAQD4AQGYAgOgAuICwgIKEAAYsAMY1gQYR5gDAIgGAZAGCJIHAzEuMqAH5Ak&sclient=gws-wiz-serp', 0, 0, 0, NULL),
-(116, '1dbcc', 'https://www.blackbox.ai/', 0, 0, 0, NULL),
-(117, '2f909', 'https://chatgpt.com/', 2, 0, 0, NULL);
-
-- --------------------------------------------------------
--
@@ -59,21 +45,15 @@ INSERT INTO `url` (`id`, `shorten_url`, `full_url`, `clicks`, `total_links`, `to
CREATE TABLE `user` (
`id` int(11) NOT NULL,
+ `google_id` varchar(255) DEFAULT NULL,
`user_email` varchar(255) NOT NULL,
- `user_pass` varchar(255) NOT NULL,
+ `user_pass` varchar(255) DEFAULT NULL,
`user_otp` int(11) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
`user_name` varchar(255) NOT NULL,
`user_type` int(1) NOT NULL DEFAULT 3
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
---
--- Dumping data for table `user`
---
-
-INSERT INTO `user` (`id`, `user_email`, `user_pass`, `user_otp`, `created_at`, `user_name`, `user_type`) VALUES
-(2, 'prasidmandal79@gmail.com', '$2y$10$qPRIk2B7EftJZUPB.y01GONHDhqMvcQKIvUVRRDnHsRUJYT.1zdQy', 835416, '2025-01-29 11:22:48', 'Prasid Mandal', 3);
-
--
-- Indexes for dumped tables
--
@@ -83,14 +63,15 @@ INSERT INTO `user` (`id`, `user_email`, `user_pass`, `user_otp`, `created_at`, `
--
ALTER TABLE `url`
ADD PRIMARY KEY (`id`),
- ADD KEY `fk_user_id` (`user_id`);
+ ADD KEY `fk_user_email` (`user_email`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
- ADD UNIQUE KEY `user_email` (`user_email`);
+ ADD UNIQUE KEY `user_email` (`user_email`),
+ ADD UNIQUE KEY `google_id` (`google_id`);
--
-- AUTO_INCREMENT for dumped tables
@@ -100,13 +81,13 @@ ALTER TABLE `user`
-- AUTO_INCREMENT for table `url`
--
ALTER TABLE `url`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=118;
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=125;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Constraints for dumped tables
@@ -116,7 +97,7 @@ ALTER TABLE `user`
-- Constraints for table `url`
--
ALTER TABLE `url`
- ADD CONSTRAINT `fk_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE;
+ ADD CONSTRAINT `fk_user_email` FOREIGN KEY (`user_email`) REFERENCES `user` (`user_email`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;