403Webshell
Server IP : 43.241.58.20  /  Your IP : 216.73.216.25
Web Server : Apache/2
System : Linux ns1-1556229.dragonhispeed.com 3.16.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64
User : ratsitne ( 1130)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ratsitne/domains/tessabalpatiu.go.th/public_html/request/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ratsitne/domains/tessabalpatiu.go.th/public_html/request/inc/main.inc.php
<?php

function thai_datetime($timestamp)
{
  static $thaiMonthAbbrs = array(
    'ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.',
    'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.',
  );

  if (!is_numeric($timestamp)) {
    $timestamp = strtotime($timestamp);
  }

  $info = getdate($timestamp);
  return sprintf(
    '%d %s %d %02d:%02d',
    $info['mday'],
    $thaiMonthAbbrs[$info['mon'] - 1], 
    substr($info['year'] + 543, -2),
    $info['hours'],
    $info['minutes']
  );
}
function thai_time($timestamp, $daysBeforeFullDate = 3)
{
  if (!is_numeric($timestamp)) {
    $timestamp = strtotime($timestamp);
  }
    $diff = time() - $timestamp;
    if (!$diff) {
        return 'ไม่กี่วินาทีที่แล้ว';
    }
    if ($diff < 60) {
        return $diff . ' วินาทีที่แล้ว';
    }
    if ($diff < 3600) {
        return (int)($diff / 60) . ' นาทีที่แล้ว';
    }
    if ($diff < 86400) {
        return (int)($diff / 3600) . ' ชั่วโมงที่แล้ว';
    }
    if ($diff < 86400 * $daysBeforeFullDate) {
        return (int)($diff / 86400) . ' วันที่แล้ว';
    }
  return thai_datetime($timestamp);
}
if (isset($mysqli)) {
  @$mysqli->close();
}
$HIGHLIGHT_ID = isset($_GET['highlight_id'])
  ? $_GET['highlight_id']
  : null;
if (!isset($TITLE)) {
  $TITLE = 'กระดานถามตอบ';
}

$PARENT_FILENAME = pathinfo($_SERVER['SCRIPT_FILENAME'], PATHINFO_BASENAME);
?>
<!DOCTYPE html>
<html>
  <head>
    <title><?php
    echo htmlspecialchars($TITLE, ENT_QUOTES, 'UTF-8');
    ?></title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" href="inc/logo.ico">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="css/workshop-webboard.css">
    <link href='https://fonts.googleapis.com/css?family=Kanit:400,300&subset=thai,latin' rel='stylesheet' type='text/css'>
    <style>
		body {
		  font-family: 'Kanit', sans-serif;
		}
		h1 {
		  font-family: 'Kanit', sans-serif;
		}
    </style>
  </head>
  <body>
    <div class="container">
      <div class="navbar navbar-default1" role="navigation">
        <div class="container-fluid">
          <ul class="nav navbar-nav">
            <li class="<?php
            if ($PARENT_FILENAME === 'index.php') {
              echo 'active';
            }
            ?>">
              <a href="index.php">
                <span class="glyphicon glyphicon-pencil"></span>
                ขอรับบริการออนไลน์
              </a>
            </li>
            <?php
            if ($PARENT_FILENAME === 'view.php'):
            ?>
            <li class="active">
              <a href="#">
                <span class="glyphicon glyphicon-eye-open"></span>
                <?php
                echo htmlspecialchars($TITLE, ENT_QUOTES, 'UTF-8');
                ?>
              </a>
            </li>
            <?php
            endif;
            ?>
          </ul>
        </div>
      </div>
      <?php
      if (isset($FATAL_ERROR)):
      ?>
      <div class="alert alert-danger">
        <?php
        echo htmlspecialchars($FATAL_ERROR, ENT_QUOTES, 'UTF-8');
        ?>
      </div>
      <?php
      elseif (isset($PAGE_TEMPLATE)):
        require $PAGE_TEMPLATE;
      endif;
      ?>
    </div>
    <?php
    if (isset($_SERVER['REQUEST_TIME_FLOAT'])):
    ?>
    <div class="text-center">
      <span class="label label-info">Time: <?php
      echo number_format(microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'], 4);
      ?>s</span>
    </div>
    <?php
    endif;
    ?>
  </body>
</html>
<?php
exit;

Youez - 2016 - github.com/yon3zu
LinuXploit