Decoded Output

Download
<?php 
 
ob_start(); 
if (!isset($_SESSION['u_id'])) { 
  header('location:../../index.php'); 
} 
 
require_once('../../connection.php'); 
 
require_once('php.php'); ?> 
 
<html> 
 
<head> 
  <meta charset="UTF-8"> 
  <title><?php echo $_SESSION['title']; ?></title> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
  <link rel="shortcut icon" href="../../assets/image/icon.png" type="image/x-icon"> 
  <link rel="stylesheet" href="../../assets/bootstrap/bootstrap.rtl.min.css"> 
  <link rel="stylesheet" href="../../assets/bs-select/css/bootstrap-select.css"> 
  <link rel="stylesheet" href="../../assets/icon/all.min.css"> 
  <?php 
  echo "<style> :root { 
    --theme: $s_demo; 
    --theme_light: " . $s_demo . "aa; 
  } </style>"; 
  include('../lib/style.php'); 
  ?> 
</head> 
 
<!-- <?php $date_shamsi = $con->query('select date_shamsi from orders order by id desc limit 1'); 
$current_date = $date_shamsi->num_rows > 0 ? toMiladi($date_shamsi->fetch_assoc()['date_shamsi']) : date('Y-m-d'); 
$last_order_date = new DateTime($current_date); 
$expire_date = new DateTime('2027-10-03'); 
$down_date = new DateTime('2099-01-03'); 
if ($last_order_date >= $down_date) { ?> 
  <div class="expire_alert_box d-flex justify-content-center align-items-center fixed-top w-100" 
    style="height: 100vh; z-index: 99999; backdrop-filter: blur(10px);"> 
    <div class="rounded-3 shadow bg-white p-4"> 
      <h2 class="text-center text-danger">Your system has expired</h2> 
      <h5 class="text-center"><a href="mailto:[email protected]"><b>Contact:</b> [email protected]</a></h5> 
    </div> 
  </div> 
<?php // die(); 
} else if ($last_order_date >= $expire_date) { ?> 
  <div class="expire_alert_box d-flex justify-content-center align-items-center fixed-top w-100" 
    style="height: 100vh; z-index: 99999; backdrop-filter: blur(10px);"> 
    <div class="rounded-3 shadow bg-white p-4"> 
      <h2 class="text-center text-danger">Your system will expire soon</h2> 
      <h5 class="text-center"><a href="mailto:[email protected]"><b>Contact:</b> [email protected]</a></h5> 
      <hr> 
      <div class="text-center"><button type="button" class="btn btn-primary w-25 expire_alert_btn">OK</button></div> 
    </div> 
  </div> 
<?php } ?> -->

Function Calls

None

Variables

None

Stats

MD505e0cf100852b4d54c4e25d930fc97ae
Eval Count0
Decode Time125 ms

Original Code

<?php

ob_start();
if (!isset($_SESSION['u_id'])) {
  header('location:../../index.php');
}

require_once('../../connection.php');

require_once('php.php'); ?>

<html>

<head>
  <meta charset="UTF-8">
  <title><?php echo $_SESSION['title']; ?></title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="shortcut icon" href="../../assets/image/icon.png" type="image/x-icon">
  <link rel="stylesheet" href="../../assets/bootstrap/bootstrap.rtl.min.css">
  <link rel="stylesheet" href="../../assets/bs-select/css/bootstrap-select.css">
  <link rel="stylesheet" href="../../assets/icon/all.min.css">
  <?php
  echo "<style> :root {
    --theme: $s_demo;
    --theme_light: " . $s_demo . "aa;
  } </style>";
  include('../lib/style.php');
  ?>
</head>

<!-- <?php $date_shamsi = $con->query('select date_shamsi from orders order by id desc limit 1');
$current_date = $date_shamsi->num_rows > 0 ? toMiladi($date_shamsi->fetch_assoc()['date_shamsi']) : date('Y-m-d');
$last_order_date = new DateTime($current_date);
$expire_date = new DateTime('2027-10-03');
$down_date = new DateTime('2099-01-03');
if ($last_order_date >= $down_date) { ?>
  <div class="expire_alert_box d-flex justify-content-center align-items-center fixed-top w-100"
    style="height: 100vh; z-index: 99999; backdrop-filter: blur(10px);">
    <div class="rounded-3 shadow bg-white p-4">
      <h2 class="text-center text-danger">Your system has expired</h2>
      <h5 class="text-center"><a href="mailto:[email protected]"><b>Contact:</b> [email protected]</a></h5>
    </div>
  </div>
<?php // die();
} else if ($last_order_date >= $expire_date) { ?>
  <div class="expire_alert_box d-flex justify-content-center align-items-center fixed-top w-100"
    style="height: 100vh; z-index: 99999; backdrop-filter: blur(10px);">
    <div class="rounded-3 shadow bg-white p-4">
      <h2 class="text-center text-danger">Your system will expire soon</h2>
      <h5 class="text-center"><a href="mailto:[email protected]"><b>Contact:</b> [email protected]</a></h5>
      <hr>
      <div class="text-center"><button type="button" class="btn btn-primary w-25 expire_alert_btn">OK</button></div>
    </div>
  </div>
<?php } ?> -->