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/editsavex.php
<?
	session_start();
	if($_SESSION['idt'] == "")
	{
		echo "Please Login!";
		exit();
	}

	if($_SESSION['Status'] != "USER")
	{
		echo "This page for User 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);
	$regis=$objResult["regisroom"];
   
   $signup3 = date("j/n/").(date("Y")+543) ;
?>

<?

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

$sql_update= "update member set idstudent = '$_POST[idstudent]',prefix = '$_POST[prefix]',surname = '$_POST[surname]',name = '$_POST[name]',distric = '$_POST[distric]',pin = '$_POST[pin]',sex = '$_POST[sex]',statuss = '1',room = '$_POST[room]',idtest = '$_POST[idtest]',schoolout = '$_POST[schoolout]',gpa = '$_POST[gpa]',gpam = '$_POST[gpam]'
,gpasi = '$_POST[gpasi]',gpae = '$_POST[gpae]',room2 = '$_POST[room2]' ,signup2 = '$signup3',pan = '$_POST[pan]' where id = '$_POST[idmember]'";
mysql_query($sql_update);

echo "รอสักครู .";
	echo "<script>window.alert(\"บันทึกข้อมูลเรียบแล้วครับ\");history.go (-2);</script>";
?>
<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">
<meta http-equiv="refresh">
</head>

<body bgcolor="#5A697E"  onLoad="javascript:document.getElementById('useradmin').focus();">
<table width="75%" 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"> <?=$objResult["teachcode"];?> <?=$objResult["name"];?> <?=$objResult["lastname"];?>
              <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="773" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="198"><a href="add.php"><font color="#FF0000" size="2">เพิ่มข้อมูลสมาชิก</font></a></td>
                  <td width="575"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                     <form method="post" action="search.php"> <tr> 
                        <td><div align="center"><font color="#666666" size="2">ค้นหา 
                            : 
                            <input type=text name=txtsearch size=20 class=input>
                            <input name="searchtype" type="radio" value="name" checked>
                            ชื่อ 
                            <input name="searchtype" type="radio" value="email">
                            Email 
                            <input type="radio" name="searchtype" value="phone">
                            โทรศัพท์ 
                            <input name="Submit" type="submit" class="submitad" value="ค้นหา">
                            </font> </div></td>
                      </tr></form>
                    </table></td>
                </tr>
              </table>
              <table width="76%" border="0" align="center" cellpadding="1" cellspacing="1">
                <tr> 
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><div align="center"> </div>
                    <table width="62%" border="0" align="center" cellpadding="0" cellspacing="0" class="myborderlocal">
                      <tr> 
                        <td bgcolor="#DEE0B4"> <div align="center"><br>
                            <font color="#0000CC" size="2"><u></u></font><br>
                            <br>
                            <font size="2">ระบบได้ทำการแก้ไขเรียบร้อยแล้ว<br>
                            <font color="#666666">กรุณารอสักครู่... </font></font><br>
                            <br>
                            <br>
                            <br>
                          </div></td>
                      </tr>
                    </table>
                    <br>
                  </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