| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myoffice/2563/modules_backup/tkk1/ |
Upload File : |
<?php
$comment1 = $_POST['COMMENT1'];
$message = $comment1;
if($comment1<>"" || $posted<> "") {
sendlinemesg();
header('Content-Type: text/html; charset=utf-8');
$res = notify_message($message);
echo "<center>ส่งข้อความเรียบร้อยแล้ว</center>";
} else {
echo "<center>Error: กรุณากรอกข้อมูลให้ครบถ้วน</center>";
}
function sendlinemesg() {
define('LINE_API',"https://notify-api.line.me/api/notify");
define('LINE_TOKEN','HDfY77eCvokSaMAi8pi1ZGy8WiNDmDOShQJaWdF9qoJ');
function notify_message($message){
$queryData = array('message' => $message);
$queryData = http_build_query($queryData,'','&');
$headerOptions = array(
'http'=>array(
'method'=>'POST',
'header'=> "Content-Type: application/x-www-form-urlencoded\r\n"
."Authorization: Bearer ".LINE_TOKEN."\r\n"
."Content-Length: ".strlen($queryData)."\r\n",
'content' => $queryData
)
);
$context = stream_context_create($headerOptions);
$result = file_get_contents(LINE_API,FALSE,$context);
$res = json_decode($result);
return $res;
}
}
?>
<meta http-equiv="refresh" content="0 ;url=?name=tkk1&op=tkk1_read&category=<?=$arr[user][id];?>">