dotenv implementation

This commit is contained in:
twotalesanimation
2025-05-23 11:50:53 +02:00
parent ac357402ca
commit a103c5e272
24 changed files with 1102 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
<?php
require_once("env.php");
require_once("session.php");
require_once("connection.php");
require_once("functions.php");
@@ -14,7 +15,7 @@ if (!$conn) {
$client = new Google_Client();
$client->setClientId('948441222188-8qhboq2urr8o9n35mc70s5h2nhd52v0m.apps.googleusercontent.com');
$client->setClientSecret('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');
$client->setRedirectUri('https://4wdcsa.co.za/google_validate_login.php');
$client->setRedirectUri($_ENV['HOST'] . '/google_validate_login.php');
$client->addScope("email");
$client->addScope("profile");