? 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/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/article.php

<? include("template/header.php");?>
<?
 $sql =  "select * from article ";
 $page = $_GET[page];
  if(!isset($_GET[page])){
	  $page = 1;
  }
 $st = 0;
	   if(isset($_GET[page])){
		 $st =  ($_GET[page]-1)*5;
		}
	   $res = $db->query($sql);
	   $total =  mysql_num_rows($res);
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
      
	   	  <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading">&#3610;&#3607;&#3588;&#3623;&#3634;&#3617;&#3607;&#3637;&#3656;&#3609;&#3656;&#3634;&#3626;&#3609;&#3651;&#3592;</td>
            <td align="right"   style="color:#fff; padding-right:20px;"  >
            <ul>
              <li style="display:inline; font-size:12px">Page</li> 
            <? for($i=1;$i<=ceil($total/5);$i++){ ?>
           <a href="article.php?page=<? echo $i;?>" <? if($page==$i){?> style="color:#d5c165;" <? } ?>> <li style="display:inline;font-size:12px""><? echo $i;?></li> </a>
            <? } ?>                        
            </ul> 
            </td>

          </tr>
        </table></td>
      </tr>    
      <tr>
        <td>
        <table border="0" width="100%" cellspacing="0" cellpadding="0">         
          <tr>
            <td class="otherpages">
				<table border="0" width="100%" cellspacing="0" cellpadding="0">
      
	  <tr>
        <td >
        
     <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
     <style>
	 .x:hover{
		 color:#d5c165;
	 }
	 </style>
       <table width="100%" border="1" style=" border-collapse:collapse; color:#FFF; font-size:12px;" class="productListing"    >
        <tr  >
    <td valign="middle">
     <ul style="list-style:upper-roman;   "  start="<? echo $st+1;?>">
       <?
	   $sql =  "select * from article ";	
	    
	   $sql .= "order by ar_id desc limit $st,5";	
	  //echo $sql;
	   $res = $db->query($sql);
	   $i=0;
	   while($line = mysql_fetch_array($res)){
	   ?>
 
   
    <li  style="padding:1px" value="<? echo $st+1+$i;?>" > 
<? 
	list($width, $height, $type, $attr) = @getimagesize("upload/".$line[ar_img]);
?>  
<div style="  width:90; padding:0" align="center">
 <a href="read.php?ar_id=<? echo $line[ar_id];?>"><img src="upload/<? echo $line[ar_img];?>"  <? if($width>$height){?> width="80" <? }else{?> height="80" <? } ?> border="1" style="border-width:5px; border-style:solid; border-color:#FFF" ></a>
 </div>
 <a  class="x" href="read.php?ar_id=<? echo $line[ar_id];?>" style="vertical-align:middle" ><strong><? echo $line[ar_title];?></strong>&nbsp;&nbsp;&nbsp;
<br>
<span style="font-size:10px;  color:#d5c165;">(read more...)</span></a> 
<span style="font-size:10px;  color:#d5c165;"><? echo date("d M,Y",strtotime($line[ar_date]));?></span> 
    
<div style="font-size:10px;font:100%; overflow:hidden; height:50px; padding:10px"><? echo  strip_tags( $line[ar_data]);?></div> 

<fb:like href="http://www.hcauto.com/read.php?ar_id=<? echo $line[ar_id];?>" layout="button_count" style="vertical-align:middle;padding:10px"></fb:like> <br>

  
    <br>

    </li>
  
 <? $i++;} ?>
  </ul>
   </td>
   
  </tr>
  
		</table>


        
        </td>
      </tr>
	  
      <tr>
        <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
			</td>
          </tr>
        </table></td>

      </tr>
    </table>
<? include("template/footer.php");?>

T1KUS90T
  root-grov@210.1.60.28:~$