1
1
mirror of https://github.com/neosubhamoy/neosubhamoy-portfolio.git synced 2025-12-20 01:09:35 +05:30

(refactor): changed connection.php credentials into .env

This commit is contained in:
2023-12-11 01:08:55 +05:30
parent 88839cd861
commit 6eeba2f01a
8 changed files with 35 additions and 15 deletions

View File

@@ -1,15 +1,15 @@
<?php
require 'vendor/autoload.php';
require '../../connection.php';
$dotenv = Dotenv\Dotenv::createImmutable('../../');
$dotenv->load();
require 'connection.php';
require 'query_functions.php';
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
$dotenv = Dotenv\Dotenv::createImmutable('../../');
$dotenv->load();
function form_input_filter($conn, $data){
$data = trim($data);
$data = stripslashes($data);