mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 00:02:57 +05:30
v4.2.4
This commit is contained in:
@@ -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) ✨
|
### 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/)
|
||||||
[](https://github.com/xeorl/xeorl-portfolio/)
|
[](https://github.com/xeorl/xeorl-portfolio/)
|
||||||
<br></br>
|
<br></br>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<link rel="stylesheet" href="assets/css/_cookies.css">
|
<link rel="stylesheet" href="assets/css/_cookies.css">
|
||||||
<div id="cookieBanner">
|
<div id="cookieBanner">
|
||||||
<p>This website uses cookies to ensure you get the best experience on our website. <a href="/privacy-policy">Learn more</a>.</p>
|
<p>This website uses cookies to ensure you get the best experience on our website. <a href="https://docs.google.com/document/d/1sZ2TwjST8nKaRl-rSteAd2XHlVZdDhgS6jHRKwjDedc/edit?usp=sharing">Learn more</a>.</p>
|
||||||
<button class="accept" onclick="acceptCookies()">GOT IT!</button>
|
<button class="accept" onclick="acceptCookies()">GOT IT!</button>
|
||||||
</div>
|
</div>
|
||||||
<script src="assets/js/_cookies.js"></script>
|
<script src="assets/js/_cookies.js"></script>
|
||||||
@@ -10,7 +10,7 @@ if (session_status() === PHP_SESSION_NONE) {
|
|||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="assets/images/url.png" alt="Xeorl Logo" class="logo-img">
|
<img src="assets/images/url.png" alt="Xeorl Logo" class="logo-img">
|
||||||
<span>Xeorl</span>
|
<span>Xeorl</span>
|
||||||
<span class="version-number">4.2.3</span>
|
<span class="version-number">4.2.4</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="burger">
|
<label class="burger">
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ shortenBtn.onclick = () => {
|
|||||||
let data = xhr.response;
|
let data = xhr.response;
|
||||||
if (data.length <= 5) {
|
if (data.length <= 5) {
|
||||||
// This is your shoeten domain name
|
// This is your shoeten domain name
|
||||||
const domain = "http://localhost/Php-Projects/xeorl/htdocs//";
|
const domain = "xeorl.buzz/";
|
||||||
let shortenURL = domain + data;
|
let shortenURL = domain + data;
|
||||||
|
|
||||||
const defaultMessage = document.getElementById("default-message");
|
const defaultMessage = document.getElementById("default-message");
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ ini_set('display_errors', 1);
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="checkbox-container">
|
<div class="checkbox-container">
|
||||||
<input type="checkbox" id="agree" class="custom-checkbox" name="user_agree" value="1">
|
<input type="checkbox" id="agree" class="custom-checkbox" name="user_agree" value="1">
|
||||||
<label for="agree">I agree to the <a href="#" class="terms-link">Terms & Conditions</a></label>
|
<label for="agree">I agree to the <a href="https://docs.google.com/document/d/1QcUohit6U3ZmWyOZbggbpUr2KrQ6pwy3X-R4zUGfZBo/edit?usp=sharing" class="terms-link">Terms & Conditions</a></label>
|
||||||
</div>
|
</div>
|
||||||
<?php if (isset($_SESSION['error'])): ?>
|
<?php if (isset($_SESSION['error'])): ?>
|
||||||
<div id="error-message" style="color: red; font-size: 14px; margin-top: 5px;">
|
<div id="error-message" style="color: red; font-size: 14px; margin-top: 5px;">
|
||||||
|
|||||||
39
xeorl.sql
39
xeorl.sql
@@ -3,7 +3,7 @@
|
|||||||
-- https://www.phpmyadmin.net/
|
-- https://www.phpmyadmin.net/
|
||||||
--
|
--
|
||||||
-- Host: localhost
|
-- 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
|
-- Server version: 10.4.28-MariaDB
|
||||||
-- PHP Version: 8.2.4
|
-- PHP Version: 8.2.4
|
||||||
|
|
||||||
@@ -34,23 +34,9 @@ CREATE TABLE `url` (
|
|||||||
`clicks` int(11) NOT NULL,
|
`clicks` int(11) NOT NULL,
|
||||||
`total_links` int(11) DEFAULT 0,
|
`total_links` int(11) DEFAULT 0,
|
||||||
`total_clicks` 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;
|
) 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` (
|
CREATE TABLE `user` (
|
||||||
`id` int(11) NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
|
`google_id` varchar(255) DEFAULT NULL,
|
||||||
`user_email` varchar(255) NOT 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,
|
`user_otp` int(11) DEFAULT NULL,
|
||||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||||
`user_name` varchar(255) NOT NULL,
|
`user_name` varchar(255) NOT NULL,
|
||||||
`user_type` int(1) NOT NULL DEFAULT 3
|
`user_type` int(1) NOT NULL DEFAULT 3
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) 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
|
-- Indexes for dumped tables
|
||||||
--
|
--
|
||||||
@@ -83,14 +63,15 @@ INSERT INTO `user` (`id`, `user_email`, `user_pass`, `user_otp`, `created_at`, `
|
|||||||
--
|
--
|
||||||
ALTER TABLE `url`
|
ALTER TABLE `url`
|
||||||
ADD PRIMARY KEY (`id`),
|
ADD PRIMARY KEY (`id`),
|
||||||
ADD KEY `fk_user_id` (`user_id`);
|
ADD KEY `fk_user_email` (`user_email`);
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Indexes for table `user`
|
-- Indexes for table `user`
|
||||||
--
|
--
|
||||||
ALTER TABLE `user`
|
ALTER TABLE `user`
|
||||||
ADD PRIMARY KEY (`id`),
|
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
|
-- AUTO_INCREMENT for dumped tables
|
||||||
@@ -100,13 +81,13 @@ ALTER TABLE `user`
|
|||||||
-- AUTO_INCREMENT for table `url`
|
-- AUTO_INCREMENT for table `url`
|
||||||
--
|
--
|
||||||
ALTER 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`
|
-- AUTO_INCREMENT for table `user`
|
||||||
--
|
--
|
||||||
ALTER 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
|
-- Constraints for dumped tables
|
||||||
@@ -116,7 +97,7 @@ ALTER TABLE `user`
|
|||||||
-- Constraints for table `url`
|
-- Constraints for table `url`
|
||||||
--
|
--
|
||||||
ALTER 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;
|
COMMIT;
|
||||||
|
|
||||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||||
|
|||||||
Reference in New Issue
Block a user