From 501d623e74e286da8db3270013367c8226befc68 Mon Sep 17 00:00:00 2001 From: Suvodip Date: Tue, 24 Dec 2024 18:52:08 +0530 Subject: [PATCH] s1 --- .hta_404.php | 15 ++++++++------- .hta_header.php | 26 ++++++++++++++++++++------ assets/anthro.svg | 1 + assets/ba.svg | 2 ++ assets/bengali.png | Bin 0 -> 2335 bytes assets/botany.png | Bin 0 -> 1786 bytes assets/chemistry.png | Bin 0 -> 2901 bytes assets/def.svg | 1 + assets/economics.png | Bin 0 -> 2378 bytes assets/eng.svg | 1 + assets/english.png | Bin 0 -> 2093 bytes assets/geography.svg | 1 + assets/history.png | Bin 0 -> 2383 bytes assets/journ.svg | 1 + assets/mathematics.png | Bin 0 -> 1637 bytes assets/philosophy.png | Bin 0 -> 1836 bytes assets/phys.svg | 1 + assets/physics.png | Bin 0 -> 3067 bytes assets/polsc.png | Bin 0 -> 1359 bytes assets/sanskrit.png | Bin 0 -> 2316 bytes assets/zoology.png | Bin 0 -> 2197 bytes faculty/_home.php | 1 + faculty/index.php | 2 ++ 23 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 assets/anthro.svg create mode 100644 assets/ba.svg create mode 100644 assets/bengali.png create mode 100644 assets/botany.png create mode 100644 assets/chemistry.png create mode 100644 assets/def.svg create mode 100644 assets/economics.png create mode 100644 assets/eng.svg create mode 100644 assets/english.png create mode 100644 assets/geography.svg create mode 100644 assets/history.png create mode 100644 assets/journ.svg create mode 100644 assets/mathematics.png create mode 100644 assets/philosophy.png create mode 100644 assets/phys.svg create mode 100644 assets/physics.png create mode 100644 assets/polsc.png create mode 100644 assets/sanskrit.png create mode 100644 assets/zoology.png diff --git a/.hta_404.php b/.hta_404.php index cfcf037..c453172 100644 --- a/.hta_404.php +++ b/.hta_404.php @@ -9,7 +9,9 @@ if ($urlParts[1] === 'notice') { $slug = $urlParts[2]; - } else { + } elseif($urlParts[1] === 'departments'){ + $slug = $urlParts[2]; + } else{ $slug = $urlParts[1]; } @@ -21,13 +23,12 @@ $totalPageContent = $headerContent . $pageContent . $footerContent; $filePath = __DIR__ . '/' . $fileName; - // if (file_put_contents($filePath, $totalPageContent)) { - // // echo "

Page saved successfully at $filePath.

"; - // } else { - // // echo "

Failed to save the page.

"; - // } + if (file_put_contents($filePath, $totalPageContent)) { + // echo "

Page saved successfully at $filePath.

"; + } else { + // echo "

Failed to save the page.

"; + } } - try { $conn = new PDO("mysql:host=$mariaServer;dbname=$mariaDb", $mariaUser, $mariaPass); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); diff --git a/.hta_header.php b/.hta_header.php index a4d8635..1c052bc 100644 --- a/.hta_header.php +++ b/.hta_header.php @@ -289,15 +289,29 @@ + + +
  • Departments »
  • - +
  • Commerce
  • - +
  • Exam Related Grievances
  • - + -->