403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.59
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gpa/homeroom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/homeroom/regisin.php
<?
require_once "../config/confiteacher.inc.php";
?>

<?

require_once "../config/connectdb.php";


?>
<?php
						  $sql_1="select * from  config";
						  $db_query=mysql_db_query($db,$sql_1);
						  $result1=mysql_fetch_array($db_query);
						  $idmember  =$result1['idsc'];
						  $namesc  =$result1['namesc'];
						   $tumbolsc  =$result1['tumbolsc'];
						    $amps =$result1['amps'];
							$dissc  =$result1['dissc'];
							$years  =$result1['years'];
							$termx  =$result1['termx'];
						


						?>

<html>
<head>
<?
$teach=$objResult["teachcode"];
$class=$objResult["regisroom"];
$idt=$objResult["idt"];

?>
<title>-:- ADMIN -:-</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="style.css" rel="stylesheet" type="text/css">

</head>
<script language="javascript">
function chk_all(){
	var x=document.getElementsByTagName("input");
	for(i=0;i<=x.length;i++){
		if(x[i].type=="checkbox"){
			x[i].checked=true;
		}
	}
}
function unchk_all(){
	var x=document.getElementsByTagName("input");
	for(i=0;i<=x.length;i++){
		if(x[i].type=="checkbox"){
			x[i].checked=false;
		}
	}
}


</script>
<body bgcolor="#FFFFFF"  onLoad="javascript:document.getElementById('useradmin').focus();">

 
              <table width="400" border="0" align="left" cellpadding="1" cellspacing="1">
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr class="jobscss"> 
                        <td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                                  <tr bgcolor="#006666"> 
                                    <td width="100" height="24"> <div align="center"><font color="#FFFFFF" size="2">บันทึกเวลาเรียน</font></div></td>
                                    <td width="100"> <div align="center"><font color="#FFFFFF" size="2">ลบนักเรียน</font></div></td>
                                    
									
									<td width="20"><div align="center"><font color="#FFFFFF" size="2">อับโหลด</font></div></td>
									<td width="20"><div align="center"><font color="#FFFFFF" size="2">พิมพ์</font></div></td>
                  
                                  </tr>
                                </table></td>
                            </tr>
                          </table>
                          <?
$page = $_GET['page'];
$num = 1;
$select_type="select * from homeroom where h_years='$years' and h_term='$termx' ";
$query_select=mysql_query($select_type);
$num_rows=mysql_num_rows($query_select);
if($num_rows<1){
echo "<br><br><center><font color=#666666 face=tahoma size=2>ไม่พบข้อมูลทีี่ท่านค้นหาค่ะ</font></center>";
}else{
		$select="select * from homeroom where where h_years='$years' and h_term='$termx'";
		$q_ry = mysql_query($select);
	 	$num_rows=mysql_num_rows($q_ry);
  		$pagesize=10000;
		$rt=$num_rows%$pagesize;
		if($rt!=0)
			{
				$totalpage=floor($num_rows/$pagesize)+1;
			}
		else
			{
				$totalpage=floor($num_rows/$pagesize);
				$toppic_id=1;
			}
		if(empty($page))
			{
				$page=1;
			}
		mysql_free_result($q_ry);
		$goto=($page-1)*$pagesize;
$sql_select_mem="select h_id,h_ids,h_idt,h_years,h_term,Username,room,cllass from homeroom join klw on klw.Username=homeroom.h_ids
where h_idt='$teach' and h_years='$years'  and h_term='$termx' group by h_idt limit $goto,$pagesize";
		$fect=mysql_query($sql_select_mem);
		if(!$fect)
		{
		("ติดต่อฐานข้อมูลไม่ได้".mysql_error());
		exit;
		}

	  $bgcount=0;
	while($rows=mysql_fetch_array($fect))
	{
$idmember =$rows['h_id'];
$code1 =$rows['h_idt'];
$term =$rows['h_term'];
$username =$rows['Username'];
$class=$rows['cllass'];
$room=$rows['room'];
$teachin =$rows['h_idt'];




				 
	?>


	





                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                                  <tr bgcolor="#FFFFFF"> 
                                    <td width="100"><font color="#003366" size="2"><a href='sentgpa.php'>xxx</a>
									
									
									&nbsp;
									
									เทอม.&nbsp;<? echo "$term"; ?>&nbsp;<? echo "$class"; ?>/<? echo "$room"; ?>
									
									
									
									</font></td>
                                   
                                     
									 <td width="100"><font color="#003366" size="2"><a href=reportin.php?id=<? echo "$code1"; ?>&&year=<? echo "$years"; ?>&&term=<? echo "$term"; ?>><? echo "$code1"; ?></a>&nbsp;&nbsp;&nbsp;<? echo "$slipnum_25"; ?>&nbsp;คน</font></td>
									
									<td width="20"><font color="#003366" size="2">
									xxx</font></td>

									
									<td width="20"><font color="#003366" size="2"><font color="#003366" size="2"><a href=print.php?id=<? echo "$code1"; ?>&&dayin=<? echo "$idgrupin"; ?>&&timeins=<? echo "$timeins"; ?>&&teachin=<? echo "$teachin"; ?>><img src="images/print.png" width="20" height="20" ></a></font>
									</td>
                                    
                                  </tr>
                                </table>
								
								
								
								</td>
                            </tr>

							
                          </table>
                          <?
$num = $num+1;

}
echo "";
}
?>
                        </td>
                      </tr>
                      <tr class="jobscss"> 
                        <td height="100">
			<a href=checkt1.php?id=<? echo "$teach"; ?>><img src="images/h1.png" width="100" height="100" ></a>
			<a href=checkt2.php?id=<? echo "$teach"; ?>><img src="images/h2.png" width="100" height="100" ></a>
			<a href=checkt3.php?id=<? echo "$teach"; ?>><img src="images/h3.png" width="100" height="100" ></a>
						</td>
                      </tr>
					   <tr class="jobscss"> 
                        <td height="100">
			<a href=checkt4.php?id=<? echo "$teach"; ?>><img src="images/h4.png" width="100" height="100" ></a>
			<a href=checkt5.php?id=<? echo "$teach"; ?>><img src="images/h5.png" width="100" height="100" ></a>
			<a href=checkt6.php?id=<? echo "$teach"; ?>><img src="images/h6.png" width="100" height="100" ></a>
						</td>
                      </tr>
					   <tr class="jobscss"> 
                        <td height="100">
			<a href=checkt7.php?id=<? echo "$teach"; ?>><img src="images/h7.png" width="100" height="100" ></a>
			<a href=checkt8.php?id=<? echo "$teach"; ?>><img src="images/h8.png" width="100" height="100" ></a>
			<a href=checkt9.php?id=<? echo "$teach"; ?>><img src="images/h9.png" width="100" height="100" ></a>
						</td>
                      </tr>
					   <tr class="jobscss"> 
                        <td height="100">
		<a href=checkt10.php?id=<? echo "$teach"; ?>><img src="images/h10.png" width="100" height="100" ></a>
		<a href=checkt11.php?id=<? echo "$teach"; ?>><img src="images/h11.png" width="100" height="100" ></a>
		<a href=checkt12.php?id=<? echo "$teach"; ?>><img src="images/h12.jpg" width="100" height="100" ></a>
						</td>
                      </tr>
					   

					  
                      <tr> 
                        <td><div align="center"></div></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
</table>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit