<?php

include 'assets/includes/config.php';
include 'assets/includes/db.php';
echo '<header id="page-topbar">' . "\r\n" . '    <div class="navbar-header">' . "\r\n" . '        <div class="d-flex">' . "\r\n" . '            ' . "\r\n" . '            <div class="navbar-brand-box">' . "\r\n" . '                <a href="index.php" class="logo logo-dark">' . "\r\n" . '                    <span class="logo-sm">' . "\r\n" . '                        <img src="';
echo $USER_PROFILE_PANEL_EDITS ? $panel_data['logo_dark_sm'] : $USER_PROFILE_PANEL_LOGO_DARK_SMALL;
echo '" alt="" height="22">' . "\r\n" . '                    </span>' . "\r\n" . '                    <span class="logo-lg">' . "\r\n" . '                        <img src="';
echo $USER_PROFILE_PANEL_EDITS ? $panel_data['logo_dark'] : $USER_PROFILE_PANEL_LOGO_DARK;
echo '" alt="" height="20"> ';
echo '' . $_VERSION;
echo '                    </span>' . "\r\n" . '                </a>' . "\r\n\r\n" . '                <a href="index.php" class="logo logo-light">' . "\r\n" . '                    <span class="logo-sm">' . "\r\n" . '                        <img src="';
echo $USER_PROFILE_PANEL_EDITS ? $panel_data['logo_light_sm'] : $USER_PROFILE_PANEL_LOGO_LIGHT_SMALL;
echo '" alt="" height="22">' . "\r\n" . '                    </span>' . "\r\n" . '                    <span class="logo-lg">' . "\r\n" . '                        <img src="';
echo $USER_PROFILE_PANEL_EDITS ? $panel_data['logo_light'] : $USER_PROFILE_PANEL_LOGO_LIGHT;
echo '" alt="" height="20"> ';
echo '' . $_VERSION;
echo '                    </span>' . "\r\n" . '                </a>' . "\r\n\r\n" . '            </div>' . "\r\n\r\n" . '            <button type="button" class="btn btn-sm px-3 font-size-24 header-item waves-effect" id="vertical-menu-btn">' . "\r\n" . '                <i class="ri-menu-2-line align-middle"></i>' . "\r\n" . '            </button>' . "\r\n\r\n" . '            ' . "\r\n" . '        </div>' . "\r\n\r\n" . '        <div class="d-flex">' . "\r\n\r\n" . '            <div class="dropdown d-none d-lg-inline-block ml-1">' . "\r\n" . '                <button type="button" class="btn header-item noti-icon waves-effect" data-toggle="dropdown"' . "\r\n" . '                    aria-haspopup="true" aria-expanded="false">' . "\r\n" . '                    <i class="ri-apps-2-line"></i>' . "\r\n" . '                </button>' . "\r\n" . '                <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">' . "\r\n" . '                    <div class="px-lg-2">' . "\r\n" . '                        <div class="row no-gutters">' . "\r\n" . '                            <div class="col">' . "\r\n" . '                                <a class="dropdown-icon-item" href="https://appsnscripts.com/index.php">' . "\r\n" . '                                    <img src="assets/images/brands/ans.png" alt="MasterAPP">' . "\r\n" . '                                    <span>Apps n Scripts</span>' . "\r\n" . '                                </a>' . "\r\n" . '                            </div>' . "\r\n" . '                            <div class="col">' . "\r\n" . '                                <a class="dropdown-icon-item" href="https://imgbb.com/">' . "\r\n" . '                                    <img src="assets/images/brands/imgur.png" alt="imgur">' . "\r\n" . '                                    <span>Imgur</span>' . "\r\n" . '                                </a>' . "\r\n" . '                            </div>' . "\r\n" . '                            <div class="col">' . "\r\n" . '                                <a class="dropdown-icon-item" href="https://github.com/">' . "\r\n" . '                                    <img src="assets/images/brands/github.png" alt="github">' . "\r\n" . '                                    <span>Github</span>' . "\r\n" . '                                </a>' . "\r\n" . '                            </div>' . "\r\n" . '                        </div>' . "\r\n" . '                    </div>' . "\r\n" . '                </div>' . "\r\n" . '            </div>' . "\r\n\r\n" . '            <div class="dropdown d-none d-lg-inline-block ml-1">' . "\r\n" . '                <button type="button" class="btn header-item noti-icon waves-effect" data-toggle="fullscreen">' . "\r\n" . '                    <i class="ri-fullscreen-line"></i>' . "\r\n" . '                </button>' . "\r\n" . '            </div>' . "\r\n\r\n" . '            <div class="dropdown d-inline-block user-dropdown">' . "\r\n" . '                <button type="button" class="btn header-item waves-effect" id="page-header-user-dropdown"' . "\r\n" . '                    data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">' . "\r\n" . '                    <img class="rounded-circle header-profile-user" src="';
echo $profile_data['avatar_url'];
echo '"' . "\r\n" . '                        alt="Header Avatar">' . "\r\n" . '                    <span class="d-none d-xl-inline-block ml-1">';
echo $profile_data['profile_name'];
echo '</span>' . "\r\n" . '                    <i class="mdi mdi-chevron-down d-none d-xl-inline-block"></i>' . "\r\n" . '                </button>' . "\r\n" . '                <div class="dropdown-menu dropdown-menu-right">' . "\r\n" . '                    ' . "\r\n" . '                    <a class="dropdown-item" href="profile_edit.php"><i class="ri-user-line align-middle mr-1"></i>' . "\r\n" . '                        Profile</a>' . "\r\n" . '                    <a class="dropdown-item" href="snoop_logs.php"><i class="ri-spy-line align-middle mr-1"></i> Snoop' . "\r\n" . '                        Logs</a>' . "\r\n" . '                    <div class="dropdown-divider"></div>' . "\r\n" . '                    <a class="dropdown-item text-danger" href="logout.php"><i' . "\r\n" . '                            class="ri-shut-down-line align-middle mr-1 text-danger"></i> Logout</a>' . "\r\n" . '                </div>' . "\r\n" . '            </div>' . "\r\n\r\n" . '        </div>' . "\r\n" . '    </div>' . "\r\n" . '</header>';

?>