403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/supply_system/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/supply_system/includes/header.php
<?php
// ตรวจสอบว่า config.php ถูก include แล้วหรือยัง ถ้ายังให้ include
// การ include 'config.php' จะเริ่ม session ให้ด้วย
if (!isset($conn)) {
    include_once __DIR__ . '/../config.php';
}
// ใช้ __DIR__ . '/../' เพื่ออ้างอิง path จากตำแหน่งไฟล์ header.php กลับไปที่ root
?>
<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo isset($page_title) ? htmlspecialchars($page_title) : 'ระบบเบิกพัสดุ สพม.ราชบุรี'; ?></title>

    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Sarabun:wght@400;500;700&display=swap" rel="stylesheet">

    <link rel="stylesheet" href="<?php echo BASE_URL; ?>/assets/css/style.css">

    <style>
        /* Optional: Apply Sarabun font */
        body {
            font-family: 'Sarabun', sans-serif;
            display: flex; /* For sidebar layout */
            min-height: 100vh;
            flex-direction: column; /* Ensure footer stays at bottom */
        }
        /* Sidebar basic style */
        .sidebar {
            min-width: 250px;
            max-width: 250px;
            background: #343a40; /* Dark background */
            color: #fff;
            min-height: 100vh; /* Full height */
            position: fixed; /* Fixed sidebar */
            top: 0;
            left: 0;
            z-index: 100;
        }
        .sidebar .nav-link {
            color: rgba(255, 255, 255, 0.8);
        }
        .sidebar .nav-link.active,
        .sidebar .nav-link:hover {
            color: #fff;
            background-color: #495057;
        }
        .sidebar .sidebar-header {
            padding: 1.5rem;
            text-align: center;
            background: #212529;
        }
         /* Adjust main content area to not overlap with fixed sidebar */
        .content-wrapper {
            margin-left: 250px; /* Same as sidebar width */
            padding: 20px;
            width: calc(100% - 250px); /* Full width minus sidebar */
            flex-grow: 1; /* Make content grow to fill space */
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .sidebar {
                margin-left: -250px; /* Hide sidebar by default */
                transition: all 0.3s;
            }
            .sidebar.active {
                margin-left: 0;
            }
            .content-wrapper {
                margin-left: 0;
                width: 100%;
                padding: 15px;
            }
             /* Optional: Button to toggle sidebar */
            #sidebarCollapse {
                display: block; /* Show toggle button on small screens */
            }
        }
         @media (min-width: 769px) {
             #sidebarCollapse {
                 display: none; /* Hide toggle button on large screens */
             }
         }
    </style>
</head>
<body>
    <div class="d-flex"> <?php
    // ส่วน Sidebar จะถูก include หลังจากนี้ในไฟล์ index.php หรือไฟล์หลักอื่นๆ
    ?>
    <div class="content-wrapper"> <button id="sidebarCollapse" class="btn btn-dark d-md-none mb-3">
            <i class="bi bi-list"></i> เมนู
        </button>

Youez - 2016 - github.com/yon3zu
LinuXploit