diff --git a/feedback.php b/feedback.php index 23fbab93..549c869b 100644 --- a/feedback.php +++ b/feedback.php @@ -1,13 +1,13 @@ 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 diff --git a/page-list-expense.php b/page-list-expense.php index 9e294f07..9e971c3c 100644 --- a/page-list-expense.php +++ b/page-list-expense.php @@ -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 diff --git a/page-list-inventory.php b/page-list-inventory.php index ce76562e..b104e0f1 100644 --- a/page-list-inventory.php +++ b/page-list-inventory.php @@ -16,9 +16,9 @@ echo "Session started.
"; // 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 diff --git a/page-list-product.php b/page-list-product.php index cf9de318..35c5cb6d 100644 --- a/page-list-product.php +++ b/page-list-product.php @@ -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"])) { diff --git a/page-list-sale.php b/page-list-sale.php index 9fbc39ba..9c138d4e 100644 --- a/page-list-sale.php +++ b/page-list-sale.php @@ -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"])) { diff --git a/page-list-staffs.php b/page-list-staffs.php index 1d332be4..e8cf1f85 100644 --- a/page-list-staffs.php +++ b/page-list-staffs.php @@ -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 { diff --git a/page-list-suppliers.php b/page-list-suppliers.php index ff619e77..e974e08c 100644 --- a/page-list-suppliers.php +++ b/page-list-suppliers.php @@ -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 diff --git a/pages-invoice.php b/pages-invoice.php index 522bf7ff..aeb5c80f 100644 --- a/pages-invoice.php +++ b/pages-invoice.php @@ -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) {