📁 File Manager
Editing:
/home/wedigitalindia/public_html/kirmson.com/admin/header.php
<?php // error_reporting(E_ALL); // ini_set('display_errors', 1); ob_start(); session_start(); include("inc/config.php"); include("inc/functions.php"); include("inc/CSRF_Protect.php"); $csrf = new CSRF_Protect(); $error_message = ''; $success_message = ''; $error_message1 = ''; $success_message1 = ''; // Check if the user is logged in or not if (!isset($_SESSION['user'])) { header('location: login.php'); exit; } ?> <?php $statement = $pdo->prepare("SELECT * FROM tbl_settings WHERE id=1"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { $logo = $row['logo']; $favicon = $row['favicon']; $footer_about = $row['footer_about']; $footer_copyright = $row['footer_copyright']; $contact_address = $row['contact_address']; $contact_email = $row['contact_email']; $contact_phone = $row['contact_phone']; $contact_map_iframe = $row['contact_map_iframe']; $receive_email = $row['receive_email']; $receive_email_subject = $row['receive_email_subject']; $receive_email_thank_you_message = $row['receive_email_thank_you_message']; $forget_password_message = $row['forget_password_message']; $total_featured_product_home = $row['total_featured_product_home']; $total_latest_product_home = $row['total_latest_product_home']; $total_popular_product_home = $row['total_popular_product_home']; $meta_title_home = $row['meta_title_home']; $meta_keyword_home = $row['meta_keyword_home']; $meta_description_home = $row['meta_description_home']; $banner_login = $row['banner_login']; $banner_registration = $row['banner_registration']; $banner_forget_password = $row['banner_forget_password']; $banner_reset_password = $row['banner_reset_password']; $banner_search = $row['banner_search']; $banner_cart = $row['banner_cart']; $banner_checkout = $row['banner_checkout']; $banner_product_category = $row['banner_product_category']; $featured_product_title = $row['featured_product_title']; $featured_product_subtitle = $row['featured_product_subtitle']; $latest_product_title = $row['latest_product_title']; $latest_product_subtitle = $row['latest_product_subtitle']; $popular_product_title = $row['popular_product_title']; $popular_product_subtitle = $row['popular_product_subtitle']; $newsletter_text = $row['newsletter_text']; $paypal_email = $row['paypal_email']; $bank_detail = $row['bank_detail']; $before_head = $row['before_head']; $after_body = $row['after_body']; $before_body = $row['before_body']; $home_service_on_off = $row['home_service_on_off']; $home_welcome_on_off = $row['home_welcome_on_off']; $home_featured_product_on_off = $row['home_featured_product_on_off']; $home_latest_product_on_off = $row['home_latest_product_on_off']; $home_popular_product_on_off = $row['home_popular_product_on_off']; $newsletter_on_off = $row['newsletter_on_off']; } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Krimson Admin Panel</title> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/ionicons.min.css"> <link rel="stylesheet" href="css/datepicker3.css"> <link rel="stylesheet" href="css/all.css"> <link rel="stylesheet" href="css/select2.min.css"> <link rel="stylesheet" href="css/dataTables.bootstrap.css"> <link rel="stylesheet" href="css/jquery.fancybox.css"> <link rel="stylesheet" href="css/AdminLTE.min.css"> <link rel="stylesheet" href="css/_all-skins.min.css"> <link rel="stylesheet" href="css/on-off-switch.css" /> <link rel="stylesheet" href="css/summernote.css"> <link rel="stylesheet" href="style.css"> </head> <body class="hold-transition fixed skin-blue sidebar-mini"> <div class="wrapper"> <header class="main-header"> <a href="index.php" class="logo"> <img class="logo-lg w-100 h-100" src="../assets/logo.webp" style="width: 100%;"></span> </a> <nav class="navbar navbar-static-top"> <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="sr-only">Toggle navigation</span> </a> <span style="float:left;line-height:50px;color:#fff;padding-left:15px;font-size:18px;">Admin Panel</span> <!-- Top Bar ... User Inforamtion .. Login/Log out Area --> <div class="navbar-custom-menu"> <ul class="nav navbar-nav"> <li class="dropdown user user-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <img src="../assets/images/user-profile/<?php echo $_SESSION['user']['photo']; ?>" class="user-image" alt="User Image"> <span class="hidden-xs"><?php echo $_SESSION['user']['full_name']; ?></span> </a> <ul class="dropdown-menu"> <li class="user-footer"> <div> <a href="profile-edit.php" class="btn btn-default btn-flat">Edit Profile</a> </div> <div> <a href="logout.php" class="btn btn-default btn-flat">Log out</a> </div> </li> </ul> </li> </ul> </div> </nav> </header> <?php $cur_page = substr($_SERVER["SCRIPT_NAME"], strrpos($_SERVER["SCRIPT_NAME"], "/") + 1); ?> <!-- Side Bar to Manage Shop Activities --> <aside class="main-sidebar"> <section class="sidebar"> <ul class="sidebar-menu"> <li class="treeview <?php if ($cur_page == 'index.php') { echo 'active'; } ?>"> <a href="index.php"> <i class="fa fa-dashboard"></i> <span>Dashboard</span> </a> </li> <!-- <li class="treeview <?php if (($cur_page == 'settings.php')) { echo 'active'; } ?>">--> <!-- <a href="settings.php">--> <!-- <i class="fa fa-sliders"></i> <span>Website Settings</span>--> <!-- </a>--> <!--</li>--> <!-- <li class="treeview <?php if (($cur_page == 'country.php') || ($cur_page == 'country-add.php') || ($cur_page == 'country-edit.php') || ($cur_page == 'shipping-cost.php') || ($cur_page == 'shipping-cost-edit.php') || ($cur_page == 'top-category.php') || ($cur_page == 'top-category-add.php') || ($cur_page == 'top-category-edit.php') || ($cur_page == 'product.php') || ($cur_page == 'product-add.php') || ($cur_page == 'product-edit.php') || ($cur_page == 'end-category.php') || ($cur_page == 'end-category-add.php') || ($cur_page == 'end-category-edit.php') || ($cur_page == 'low-category.php') || ($cur_page == 'low-category-add.php') || ($cur_page == 'low-category-edit.php')) { echo 'active'; } ?>">--> <!-- <a href="#">--> <!-- <i class="fa fa-cogs"></i>--> <!-- <span>Product Management</span>--> <!-- <span class="pull-right-container">--> <!-- <i class="fa fa-angle-left pull-right"></i>--> <!--</span>--> <!-- </a>--> <!-- <ul class="treeview-menu">--> <!-- <li><a href="top-category.php"><i class="fa fa-circle-o"></i> Top Level Category</a></li>--> <!-- <li >--> <!-- <a href="product.php">--> <!-- <i class="fa fa-shopping-bag"></i> <span>Product Management</span>--> <!-- </a>--> <!-- </li>--> <!--<li><a href="mid-category.php"><i class="fa fa-circle-o"></i> Mid Level Category</a></li>--> <!-- <li><a href="low-category.php"><i class="fa fa-circle-o"></i> Low Level Category</a></li> --> <!-- </ul>--> <!-- </li>--> <!-- <li class="treeview <?php if (($cur_page == 'choose-us.php') || ($cur_page == 'content.php') || ($cur_page == 'choose-us-edit.php') || ($cur_page == 'content-add.php') || ($cur_page == 'choose-us-add.php') || ($cur_page == 'content-edit.php') || ($cur_page == 'mission.php') || ($cur_page == 'mission-edit.php') || ($cur_page == 'mission-add.php')) { echo 'active'; } ?>">--> <!-- <a href="#">--> <!-- <i class="fa fa-cogs"></i>--> <!-- <span>About Us</span>--> <!-- <span class="pull-right-container">--> <!-- <i class="fa fa-angle-left pull-right"></i>--> <!--</span>--> <!-- </a>--> <!-- <ul class="treeview-menu">--> <!-- <li><a href="content.php"><i class="fa fa-circle-o"></i> Content</a></li>--> <!-- <li><a href="choose-us.php"><i class="fa fa-circle-o"></i> Why Choose Us</a></li>--> <!-- <li><a href="mission.php"><i class="fa fa-circle-o"></i>Mission</a></li> --> <!-- </ul>--> <!-- </li>--> <!--<li class="treeview <?php if (($cur_page == 'product.php') || ($cur_page == 'product-add.php') || ($cur_page == 'product-edit.php')) { echo 'active'; } ?>">--> <!-- <a href="product.php">--> <!-- <i class="fa fa-shopping-bag"></i> <span>Product Management</span>--> <!-- </a>--> <!--</li>--> <li class="treeview <?php if (($cur_page == 'service.php') || ($cur_page == 'service-add.php') || ($cur_page == 'service-edit.php')) { echo 'active'; } ?>"> <a href="service.php"> <i class="fa fa-shopping-bag"></i> <span>Manage Solution</span> </a> </li> <!-- <li class="treeview <?php if (($cur_page == 'order.php')) { echo 'active'; } ?>"> <a href="order.php"> <i class="fa fa-sticky-note"></i> <span>Order Management</span> </a> </li> --> <!-- <li class="treeview <?php if (($cur_page == 'slider.php')) { echo 'active'; } ?>"> <a href="slider.php"> <i class="fa fa-picture-o"></i> <span>Manage Sliders</span> </a> </li> --> <li class="treeview <?php if (($cur_page == 'page.php')) { echo 'active'; } ?>"> <a href="banners.php"> <i class="fa fa-tasks"></i> <span>Manage Banners</span> </a> </li> <li class="treeview <?php if (($cur_page == 'location.php')) { echo 'active'; } ?>"> <a href="location.php"> <i class="fa fa-tasks"></i> <span>Manage Location</span> </a> </li> <li class="treeview <?php if (($cur_page == 'gallery.php')) { echo 'active'; } ?>"> <a href="gallery.php"> <i class="fa fa-tasks"></i> <span>Manage Gallery</span> </a> </li> <!-- <li class="treeview <?php if (($cur_page == 'certificate.php')) { echo 'active'; } ?>">--> <!-- <a href="certificate.php">--> <!-- <i class="fa fa-tasks"></i> <span>certificate</span>--> <!-- </a>--> <!--</li>--> <li class="treeview <?php if (($cur_page == 'blog.php')) { echo 'active'; } ?>"> <a href="blog.php"> <i class="fa fa-picture-o"></i> <span>Manage Blogs</span> </a> <!-- <li class="treeview <?php if (($cur_page == 'faq.php')) { echo 'active'; } ?>">--> <!-- <a href="faq.php">--> <!-- <i class="fa fa-question-circle"></i> <span>FAQ</span>--> <!-- </a>--> <!--</li>--> <!-- <li class="treeview <?php if (($cur_page == 'customer.php') || ($cur_page == 'customer-add.php') || ($cur_page == 'customer-edit.php')) { echo 'active'; } ?>"> <a href="customer.php"> <i class="fa fa-user-plus"></i> <span>Registered Customer</span> </a> </li> <li class="treeview <?php if (($cur_page == 'customer-review.php')) { echo 'active'; } ?>"> <a href="customer-review.php"> <i class="fa fa-user"></i> <span>Customer Review</span> </a> </li> --> <li class="treeview <?php if (($cur_page == 'meta_tag.php')) { echo 'active'; } ?>"> <a href="meta_tag.php"> <i class="fa fa-tasks"></i> <span>Manage Meta</span> </a> </li> <!-- <li class="treeview <?php if (($cur_page == 'career.php')) { echo 'active'; } ?>">--> <!-- <a href="career.php">--> <!-- <i class="fa fa-tasks"></i> <span>Career</span>--> <!-- </a>--> <!--</li>--> <!-- <li class="treeview <?php if (($cur_page == 'career_applications.php')) { echo 'active'; } ?>">--> <!-- <a href="career_applications.php">--> <!-- <i class="fa fa-tasks"></i> <span>Career Applications</span>--> <!-- </a>--> <!--</li>--> <li class="treeview <?php if (($cur_page == 'social-media.php')) { echo 'active'; } ?>"> <a href="social-media.php"> <i class="fa fa-globe"></i> <span>Social Media</span> </a> </li> <li class="treeview <?php if (($cur_page == 'logout.php')) { echo 'active'; } ?>"> <a href="logout.php"> <i class="fa fa-globe"></i> <span>Logout</span> </a> </li> <!--<li class="treeview <?php if (($cur_page == 'subscriber.php') || ($cur_page == 'subscriber.php')) { echo 'active'; } ?>">--> <!-- <a href="subscriber.php">--> <!-- <i class="fa fa-hand-o-right"></i> <span>Subscriber</span>--> <!-- </a>--> </li> </ul> </section> </aside> <div class="content-wrapper">
Save
Cancel