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

<? include("template/header.php");?>
<? $_SESSION["page"]= $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']; ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
    	
	  <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading">
            <?
			$title ='Featured products';
			if(isset($_GET[c_id])){
				$res = $db->queryUniqueObject("select * from catalog where c_id = ".$_GET[c_id]);			 
				$title =  $res->c_name;			 
			} 
			if(isset($_GET[c_id2])){
				$res = $db->queryUniqueObject("select * from catalog where c_id = ".$_GET[c_id2]);			 
				$title =  $res->c_name;			 
			} 
			echo $title;
			?>
            </td>
            <td class="pageHeading" align="right">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         
          <tr>
            <td class="new_products">
							<!-- new_products //-->
                            
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox">
  <tr>
    <td><!--  //-->
<? 
$sql = "select * from product";
if(isset($_GET[c_id])){
	$sql .= " where p_under in (select c_id from catalog where c_under =  ".$_GET[c_id].")";
}
if(isset($_GET[c_id2])){
	$sql .= " where p_under  =  ".$_GET[c_id2]."";
}
if($_POST[keywords]!='' && $_POST[keywords]!='Enter keyword'){
	$sql .= " where p_data  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  p_name  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  p_price  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  p_unit  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  f1288868373  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  f1288868477 	  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  f1288868486  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  	p_color  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  p_gem  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  p_style  like  '%".trim($_POST[keywords])."%'";
	$sql .= " or  p_material  like  '%".trim($_POST[keywords])."%' ";
	$sql .= " or  p_pricex  like  '%".trim($_POST[keywords])."%' ";
}
$sql .= " order by p_date ";
if(!isset($_GET[c_id] )&& $_POST[keywords]==''){
	$sql .= " limit 10 ";
}

$res = $db->query($sql);
$i=0;
while($line=mysql_fetch_array($res )){$i++;
?>
<? if($i%2!=0){ ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents">
  <tr>
<? } ?>
<td align="left" class="smallText" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="354" style="background-image:url(images/f/ramka_new.jpg);height:169px;background-repeat:no-repeat;">												
												<tr><td colspan="2"><img src="images/spacer.gif"  alt="" width="1" height="10" border="0px" style="display:block" /></td></tr>
												<tr><td colspan="2" valign="top" align="left" style="padding:0px 0px 0px 20px;"><!--<a class="NameProd1" href="product.php?p_id=<? echo $line[p_id];?>"><? echo $line[p_name];?></a>--></td></tr> 
												<tr>
													<td valign="top" align="center" style="width:144px;padding:10px 0px 0px 3px;">
<? 
	list($width, $height, $type, $attr) = @getimagesize("upload/".$line[p_img]);
?>   
<table  cellpadding="0" cellspacing="0" >
  <tr>
    <td width="114" height="86" valign="middle" align="center" valign="middle">   
    
    <center>
    <a class="NameProd1" href="product.php?p_id=<? echo $line[p_id];?>"><? echo $line[p_name];?></a>
    <table   border="0" cellpadding="0" cellspacing="0">
	<tr height="12">
		<td width="11" height="12">
			<img src="images/table_brillance_01.jpg" width="11" height="12" alt=""></td>
		<td height="12" background="images/table_brillance_02.jpg">
			 </td>
		<td width="13" height="12">
			<img src="images/table_brillance_03.jpg" width="13" height="12" alt=""></td>
	</tr>
	<tr>
		<td width="11" background="images/table_brillance_04.jpg">
			 </td>
		<td bgcolor="#322a28">
        <a href="product.php?p_id=<? echo $line[p_id];?>"><img src="upload/<? echo $line[p_img];?>" border="0"   <? if($width>$height){?> width="90" <? }else{?> height="86" <? } ?>></a>
			</td>
		<td width="13" background="images/table_brillance_06.jpg">
			 </td>
	</tr>
	<tr height="12">
		<td width="11" height="12">
			<img src="images/table_brillance_07.jpg" width="11" height="12" alt=""></td>
		<td height="12" background="images/table_brillance_08.jpg">
			</td>
		<td width="13" height="12">
			<img src="images/table_brillance_09.jpg" width="13" height="12" alt=""></td>
	</tr>
</table>

    <!--<table border="0"     cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td width="14"  background="images/body/top-left.png"></td>
    <td background="images/body/top-mid.png" height="14"></td>
    <td width="14" background="images/body/top-right.png"></td>   
  </tr>
  <tr>   
 	<td width="14"  background="images/body/mid-left.png">&nbsp;</td>
    <td bgcolor="#FFFFFF"><a href="product.php?p_id=<? echo $line[p_id];?>"><img src="upload/<? echo $line[p_img];?>" border="0"   <? if($width>$height){?> width="90" <? }else{?> height="86" <? } ?>></a></td>
    <td width="14" background="images/body/mid-right.png">&nbsp;</td>  
  </tr>
  <tr>
    <td width="14"  background="images/body/bottom-left.png"></td>
    <td background="images/body/bottom-mid.png" height="14"></td>
    <td width="14" background="images/body/bottom-right.png"></td>   
  </tr>
</table>-->
</center>



	</td>
  </tr>
</table>														
													</td>
													<!--<td  valign="top" align="left" style="width:177px;">-->
                                                    	<td  valign="top" align="left"  >
                                                        <form action="product.php" method="post"  >
														<table cellpadding="0" cellspacing="0" border="0" >												
															<tr>
                                                            <td valign="top" align="left" style="width:190px;padding:0px 0px 0px 0px;"><div class="Date" style="line-height:14px;padding:0px 0px 0px 0px; overflow:hidden; height:56px; color:#000 ">
<!--Sit amonsectetuer adipi scing elitauris  Sit amonsectetuer adipi scing elitauris Sit-->
<? echo nl2br($line[p_data]);?><br>

</div> 
</td>
</tr>
															<tr><td><img src="images/spacer.gif"  alt="" width="1" height="10" border="0px" style="display:block" /></td></tr>	
															<tr><td valign="top" align="left" style="">
																<table cellpadding="0" cellspacing="0" border="0">
																	<tr>
																		<td style=""  valign="middle" align="left"><img src="images/f/price_left.gif"  alt="" /></td>
																		<td valign="top" align="left" style="padding:5px 0px 0px 0px;background-image:url(images/f/price_mdl.gif); background-repeat:repeat-x"><span class="Price" style="line-height:13px;padding:0px 0px 0px 0px;">฿<? echo  number_format($line[p_price]);?></span></td>
																		<td style=""  valign="middle" align="left"><img src="images/f/price_right.gif"  alt="" /></td>		
																	</tr> 
																</table>
															</td></tr>
															<tr><td><img src="images/spacer.gif"  alt="" width="1" height="2" border="0px" style="display:block" /></td></tr>	
															<tr><td  valign="top" align="left" style="padding:0px 0px 0px 14px;"  >

<a href="product.php?p_id=<? echo $line[p_id];?>"><img src="images/more.gif" border="0" alt="" width="69" height="23"></a>
      
                                              
<!--<a href="#"  onClick="form.submit();return false;" ><img src="images/f/add.gif" border="0" alt="Add to Cart" title=" Add to Cart " width="106" height="23"></a> -->
  <input type="hidden" name="cart_u_id" value="<?  echo $_SESSION[u_id];?>">
<input name="cart_p_id" type="hidden" value="<? echo $line[p_id];?>">
<input type="image"  src="images/f/add.gif"  onChange="submit();" />

</td></tr>									
															
														</table>
                                                        </form>
													</td>
												</tr> 												
										</table>					
	</td>
<? if($i%2!=0){ ?>
<td align="center" valign="top" ><img src="images/spacer.gif" border="0" alt="" style="margin-left:6px; "></td>
<? } ?>
<!--  <td align="left" class="smallText" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="354" style="background-image:url(images/f/ramka_new.jpg);height:169px;background-repeat:no-repeat;">												
												<tr><td colspan="2"><img src="images/spacer.gif"  alt="" width="1" height="10" border="0px" style="display:block" /></td></tr>
												<tr><td colspan="2" valign="top" align="left" style="padding:0px 0px 0px 20px;"><a class="NameProd1" href="">Lorem ipsum</a></td></tr> 
												<tr>
													<td valign="top" align="center" style="width:144px;padding:10px 0px 0px 3px;">
														<a href=""><img src="images/p/p3.gif" border="0" alt="Lorem ipsum" title=" Lorem ipsum " width="114" height="86"></a>
															
													</td>
													<td  valign="top" align="left" style="width:177px;">
														<table cellpadding="0" cellspacing="0" border="0" >												
															<tr><td valign="top" align="left" style="width:140px;padding:0px 0px 0px 0px;"><span class="Date" style="line-height:14px;padding:0px 0px 0px 0px;">Sit amonsectetuer adipi scing elitauris  Sit amonsectetuer adipi scing elitauris Sit</span></td></tr>
															<tr><td><img src="images/spacer.gif"  alt="" width="1" height="17" border="0px" style="display:block" /></td></tr>	
															<tr><td valign="top" align="left" style="">
																<table cellpadding="0" cellspacing="0" border="0">
																	<tr>
																		<td style=""  valign="middle" align="left"><img src="images/f/price_left.gif"  alt="" /></td>
																		<td valign="top" align="left" style="padding:5px 0px 0px 0px;background-image:url(images/f/price_mdl.gif); background-repeat:repeat-x"><span class="Price" style="line-height:13px;padding:0px 0px 0px 0px;">$75.00</span></td>
																		<td style=""  valign="middle" align="left"><img src="images/f/price_right.gif"  alt="" /></td>		
																	</tr> 
																</table>
															</td></tr>
															<tr><td><img src="images/spacer.gif"  alt="" width="1" height="17" border="0px" style="display:block" /></td></tr>	
															<tr><td  valign="top" align="left" style="padding:0px 0px 0px 4px;"><a href=""><img src="images/f/add.gif" border="0" alt="Add to Cart" title=" Add to Cart " width="106" height="23"></a></td></tr>									
															
														</table>
													</td>
												</tr> 												
											</table>					
	</td>-->
<? if($i%2==0){?>
  </tr> 
  <tr>
    <td align="left" colspan="4" valign="top" height="1" ><img src="images/pixel_trans.gif" border="0" alt="" style="height:13px;"></td>
  </tr>
</table>
<? } ?>
<? } ?>
<!--  //-->
</td>
  </tr>
</table>

<!-- new_products_eof //-->
							
						
				
          </tr>
        </table></td>
      </tr>
    </table>
<? include("template/footer.php");?>

T1KUS90T
  root-grov@210.1.60.28:~$