Path : /var/www/html/smart_kpp2_bk17 มีค 69/time/
File Upload :
Current File : /var/www/html/smart_kpp2_bk17 มีค 69/time/qrcode-old.php

<!DOCTYPE html>
<html lang="en">
<head>
  <title>QR-CODE</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<center><?php
require_once ("Connections/smartconn.php");  
$URL2 =(get_magic_quotes_gpc()) ? $_GET ['URL']  : addslashes($_GET['URL']);
$date =(get_magic_quotes_gpc()) ? $_GET ['date']  : addslashes($_GET['date']);
$URL2 = "$URL2"."?date=$date";
$thai_w=array("อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์");
  $thai_n=array("มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม");
  $w=$thai_w[date("w")];
  $d=date("d");
  $n=$thai_n[date("n") -1];
  $y=date("Y") +543;
  $t=date("เวลา H นาฬิกา i นาที s วินาที");
  $t2=date("เวลา H. i น.");
  $date_thai = "$d $n $y";
  
  //$date_today = date("Y-m-d"); //วันปัจจุบัน คศ. 2020-03-15
  $date_today = $date;
  $day=date('w', strtotime("$date_today")); //เช็ควัน 0-6 วันอาทิตย์ - วันเสาร์
?>
<br><h1>QR-CODE</h1> <h2>วันที่ <?php echo $date_today?> <br><?php echo $system_name;?></h3> 
<img lass="img-thumbnail" src="https://chart.googleapis.com/chart?chs=500x500&cht=qr&chl=<?php echo $URL2; ?>&choe=UTF-8"/>
<br><?php echo $footer?>
</center>
</body>
</html>