This commit is contained in:
2025-02-01 21:20:23 +05:30
parent a5a54ccbdc
commit e6d7030e7d
5 changed files with 20 additions and 7 deletions

View File

@@ -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.0-yellow.svg?style=flat)](https://github.com/xeorl/xeorl-portfolio/)
[![version](https://img.shields.io/badge/version-v4.1.1-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/)
<br></br>

View File

@@ -4,4 +4,11 @@ DOMAIN = "Your Domain Name Here"
DB_HOST = "Your Database Host Name Her"
DB_USER = "Your Database Username Here"
DB_PASS = "Your Database Password Here"
DB_NAME = "Your Database Name Here"
DB_NAME = "Your Database Name Here"
SMTP_HOST = "Your SMTP Host Name Here"
SMTP_USER = "Your SMTP Username Here"
SMTP_PASS = "Your SMTP Password Here"
SMTP_PORT= "Your SMTP Port Here"
CLIENT_ID = "Your Google Client ID Here"
CLIENT_SECRET = "Your Google Client Secret Here"
REDIRECT_URI = "Your Google Redirect URI Here"

View File

@@ -46,4 +46,4 @@ if (isset($_POST['login_btn'])) {
exit();
}
}
?>
?>

View File

@@ -3,13 +3,18 @@ session_start();
// Load Composer's autoloader
require_once __DIR__ . '/vendor/autoload.php'; // Correct path for vendor directory in core
require_once 'config.php';
// Initialize dotenv and load environment variables
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../'); // Adjusted to point to htdocs/.env
$dotenv->load();
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Google OAuth Configuration
$clientID = '1087400250877-qmns5ehmke31cd19p2cfm8111oovlnf8.apps.googleusercontent.com';
$clientSecret = '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';
$redirectUri = 'http://localhost/Php-Projects/xeorl/htdocs/core/redirect_google.php';
// Database configuration
$clientID = $_ENV['CLIENT_ID'];
$clientSecret = $_ENV['CLIENT_SECRET'];
$redirectUri = $_ENV['REDIRECT_URI'];
$client = new Google_Client();
$client->setClientId($clientID);

View File

@@ -1,6 +1,7 @@
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>