mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 00:02:57 +05:30
v4.1.3
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) ✨
|
||||
[](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>
|
||||
|
||||
|
||||
BIN
htdocs/.DS_Store
vendored
BIN
htdocs/.DS_Store
vendored
Binary file not shown.
38
htdocs/account.php
Normal file
38
htdocs/account.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['user_id'])) {
|
||||
header("Location: login.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title>Dashboard</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Xeorl - The All-In-One, Fully Free to Use Advanced Link Shortener and Management Tool - Equipped with Multi-layered URL encryption, URL metadata remover, Mass shrinker, Quick link and Many more! - Powered by @xodivorce...">
|
||||
<link rel="icon" type="image/png" href="./assets/images/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="./assets/images/favicon.svg" />
|
||||
<link rel="shortcut icon" href="./assets/images/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="./assets/images/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="Xeorl">
|
||||
<link rel="manifest" href="./assets/images/site.webmanifest" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/css/_home.css">
|
||||
<link rel="stylesheet" href="assets/css/_dashboard.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php include "assets/_header.php"; ?>
|
||||
<main>
|
||||
<h2>Welcome, <?php echo $_SESSION['user_name']; ?>!</h2>
|
||||
<p>Email: <?php echo $_SESSION['user_email']; ?></p>
|
||||
<a href="logout.php">Logout</a>
|
||||
</main>
|
||||
<?php include "assets/_footer.php"; ?>
|
||||
</body>
|
||||
</html>
|
||||
BIN
htdocs/assets/.DS_Store
vendored
BIN
htdocs/assets/.DS_Store
vendored
Binary file not shown.
@@ -1,3 +1,9 @@
|
||||
<?php
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
session_start();
|
||||
}
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="assets/css/_header.css">
|
||||
<header class="header">
|
||||
<div class="header-container" style="user-select: none;">
|
||||
@@ -16,9 +22,17 @@
|
||||
<ul>
|
||||
<li><a href="index.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'index.php' ? 'active disabled' : ''; ?>">Home</a></li>
|
||||
<li><a href="monetization.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'monetization.php' ? 'active disabled' : ''; ?>">Monetization</a></li>
|
||||
<li><a href="login.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'login.php' ? 'active disabled' : ''; ?>">Get-Started</a></li>
|
||||
|
||||
<?php if (isset($_SESSION['user_id'])): ?>
|
||||
<!-- Show Account if user is logged in -->
|
||||
<li><a href="account.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'account.php' ? 'active disabled' : ''; ?>">Account</a></li>
|
||||
<?php else: ?>
|
||||
<!-- Show Get-Started if user is not logged in -->
|
||||
<li><a href="login.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'login.php' ? 'active disabled' : ''; ?>">Get-Started</a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<li><a href="contact.php" class="<?php echo basename($_SERVER['PHP_SELF']) == 'contact.php' ? 'active disabled' : ''; ?>">Contact</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
12
htdocs/assets/css/_account.css
Normal file
12
htdocs/assets/css/_account.css
Normal file
@@ -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;
|
||||
}
|
||||
12
htdocs/assets/css/_monetization.css
Normal file
12
htdocs/assets/css/_monetization.css
Normal file
@@ -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;
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
@@ -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.";
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['user_id'])) {
|
||||
header("Location: login.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Dashboard</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Welcome, <?php echo $_SESSION['user_name']; ?>!</h2>
|
||||
<p>Email: <?php echo $_SESSION['user_email']; ?></p>
|
||||
<a href="logout.php">Logout</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -37,34 +37,6 @@ require 'core/get_statistics.php'; // Include the statistics file
|
||||
<div class="shortened-links">
|
||||
<h2>Your shortened links :</h2>
|
||||
<ul id="links-list">
|
||||
<?php
|
||||
$sql2 = mysqli_query($conn, "SELECT * FROM url ORDER BY id DESC");
|
||||
if (mysqli_num_rows($sql2) > 0) {
|
||||
while ($row = mysqli_fetch_assoc($sql2)) {
|
||||
$short_url = $domain . $row['shorten_url'];
|
||||
echo '<li>';
|
||||
echo '<div class="link-icon"><img src="assets/images/url.png" class="url-img"></div>';
|
||||
echo '<div class="link-info">';
|
||||
echo '<span class="short-link">' . $short_url . '</span>';
|
||||
echo '<span class="long-link">' . $row['full_url'] . '</span>';
|
||||
echo '</div>';
|
||||
echo '<button class="copy-btn"><img src="assets/images/copy.png"></button>';
|
||||
echo '<button class="delete-btn"><img src="assets/images/delete.png"></button>';
|
||||
echo '</li>';
|
||||
}
|
||||
} else {
|
||||
// No shortened links found
|
||||
echo '<li>';
|
||||
echo '<div class="link-icon"><img src="assets/images/url.png" class="url-img"></div>';
|
||||
echo '<div class="link-info">';
|
||||
echo '<span class="short-link">xeorl.buzz/*****</span>';
|
||||
echo '<span class="long-link">You don\'t have any shortened links</span>';
|
||||
echo '</div>';
|
||||
echo '<button class="copy-btn"><img src="assets/images/copy.png"></button>';
|
||||
echo '<button class="delete-btn"><img src="assets/images/delete.png"></button>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
38
htdocs/monetization.php
Normal file
38
htdocs/monetization.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['user_id'])) {
|
||||
header("Location: login.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta charset="UTF-8">
|
||||
<title>Dashboard</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Xeorl - The All-In-One, Fully Free to Use Advanced Link Shortener and Management Tool - Equipped with Multi-layered URL encryption, URL metadata remover, Mass shrinker, Quick link and Many more! - Powered by @xodivorce...">
|
||||
<link rel="icon" type="image/png" href="./assets/images/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="./assets/images/favicon.svg" />
|
||||
<link rel="shortcut icon" href="./assets/images/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="./assets/images/apple-touch-icon.png" />
|
||||
<meta name="apple-mobile-web-app-title" content="Xeorl">
|
||||
<link rel="manifest" href="./assets/images/site.webmanifest" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="assets/css/_home.css">
|
||||
<link rel="stylesheet" href="assets/css/_monetization.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php include "assets/_header.php"; ?>
|
||||
<main>
|
||||
<h2>Welcome, <?php echo $_SESSION['user_name']; ?>!</h2>
|
||||
<p>Email: <?php echo $_SESSION['user_email']; ?></p>
|
||||
<a href="logout.php">Logout</a>
|
||||
</main>
|
||||
<?php include "assets/_footer.php"; ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user