mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 16:23:01 +05:30
v4.1.1
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>
|
||||||
|
|
||||||
|
|||||||
@@ -5,3 +5,10 @@ DB_HOST = "Your Database Host Name Her"
|
|||||||
DB_USER = "Your Database Username Here"
|
DB_USER = "Your Database Username Here"
|
||||||
DB_PASS = "Your Database Password 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"
|
||||||
|
|||||||
@@ -3,13 +3,18 @@ session_start();
|
|||||||
// Load Composer's autoloader
|
// Load Composer's autoloader
|
||||||
require_once __DIR__ . '/vendor/autoload.php'; // Correct path for vendor directory in core
|
require_once __DIR__ . '/vendor/autoload.php'; // Correct path for vendor directory in core
|
||||||
require_once 'config.php';
|
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);
|
error_reporting(E_ALL);
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
|
|
||||||
// Google OAuth Configuration
|
// Database configuration
|
||||||
$clientID = '1087400250877-qmns5ehmke31cd19p2cfm8111oovlnf8.apps.googleusercontent.com';
|
$clientID = $_ENV['CLIENT_ID'];
|
||||||
$clientSecret = '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';
|
$clientSecret = $_ENV['CLIENT_SECRET'];
|
||||||
$redirectUri = 'http://localhost/Php-Projects/xeorl/htdocs/core/redirect_google.php';
|
$redirectUri = $_ENV['REDIRECT_URI'];
|
||||||
|
|
||||||
$client = new Google_Client();
|
$client = new Google_Client();
|
||||||
$client->setClientId($clientID);
|
$client->setClientId($clientID);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
session_start();
|
session_start();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
|||||||
Reference in New Issue
Block a user