mirror of
https://github.com/xodivorce/xeorl.git
synced 2025-12-19 00:02:57 +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) ✨
|
||||
[](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>
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -46,4 +46,4 @@ if (isset($_POST['login_btn'])) {
|
||||
exit();
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
@@ -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);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
Reference in New Issue
Block a user