HEX
Server: Apache/2.4.37 (CentOS Stream) OpenSSL/1.1.1k
System: Linux ysnet.com.tw 4.18.0-553.5.1.el8.x86_64 #1 SMP Tue May 21 05:46:01 UTC 2024 x86_64
User: test (521)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/chick.php
<?php
session_start();

if (!isset($_GET['nfc_scanned']) || $_GET['nfc_scanned'] !== 'true') {
    echo "無效的訪問,請通過 NFC 掃描標籤訪問。";
    exit();
}

// Step 3: 生成當前的日期時間並格式化成 `tagtime`
$tagtime = date('Y/m/d'); // 格式化日期為 YYYY/MM/DD
$encrypted_tagtime = base64_encode($tagtime); // 將日期進行 base64 加密
// Step 4: 重定向到 FileMaker WebDirect,並附加 `tagtime` 參數
$target_url = "https://192.168.88.10/fmi/webd/YSNET_MIS?script=chicknfc&param=$encrypted_tagtime";
header("Location: $target_url");
exit();
?>