Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
PhemcodeJay committed Nov 3, 2024
1 parent 5418a2e commit 4e7c8d4
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions feedback.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

require 'C:\\xampp\\htdocs\\project\\vendor\\autoload.php'; // Include the Composer autoloader
include('config.php'); // Includes database connection
require __DIR__ . 'vendor/autoload.php';

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
use PHPMailer\PHPMailer\SMTP;

// Include the database connection settings
include('config.php');


// Initialize variables
$name = $email = $subject = $message = '';
Expand Down
6 changes: 3 additions & 3 deletions page-list-customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
'sid_length' => 48,
]);

include('config.php'); // Database connection
require 'vendor/autoload.php';
require('fpdf/fpdf.php');
include('config.php'); // Includes database connection
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');

try {
// Check if user is logged in
Expand Down
4 changes: 2 additions & 2 deletions page-list-expense.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
]);

include('config.php'); // Includes database connection
require 'vendor/autoload.php';
require 'fpdf/fpdf.php';
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');

try {
// Check if username is set in session
Expand Down
6 changes: 3 additions & 3 deletions page-list-inventory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
echo "Session started.<br>";

// Include database connection
include('config.php');
require 'vendor/autoload.php';
require('fpdf/fpdf.php');
include('config.php'); // Includes database connection
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');


// Check if username is set in session
Expand Down
4 changes: 2 additions & 2 deletions page-list-product.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
]);

include('config.php'); // Includes database connection
require 'vendor/autoload.php';
require('fpdf/fpdf.php');
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');

// Check if username is set in session
if (!isset($_SESSION["username"])) {
Expand Down
4 changes: 2 additions & 2 deletions page-list-sale.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
]);

include('config.php'); // Includes database connection
require 'vendor/autoload.php';
require 'fpdf/fpdf.php';
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');

// Check if username is set in session
if (!isset($_SESSION["username"])) {
Expand Down
4 changes: 2 additions & 2 deletions page-list-staffs.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
]);

include('config.php'); // Includes database connection
require 'vendor/autoload.php';
require('fpdf/fpdf.php');
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');


try {
Expand Down
4 changes: 2 additions & 2 deletions page-list-suppliers.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
]);

include('config.php'); // Includes database connection
require 'vendor/autoload.php';
require('fpdf/fpdf.php');
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . ('fpdf/fpdf.php');


// Check if username is set in session
Expand Down
6 changes: 3 additions & 3 deletions pages-invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
error_reporting(E_ALL);
ini_set('display_errors', 1);

require 'config.php'; // Include database connection script
require 'vendor/autoload.php';
require 'fpdf/fpdf.php';
include 'config.php'; // Include database connection script
require __DIR__ . 'vendor/autoload.php';
require __DIR__ . 'fpdf/fpdf.php';

// Check if the user is logged in
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true) {
Expand Down

0 comments on commit 4e7c8d4

Please sign in to comment.