403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/(Del)wah-tung.com/html/jp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/(Del)wah-tung.com/html/jp/special.php
<?php
require("configure.php");
$specialId 		= (int)$_GET['specialId']; 
$offset			= $_GET["offset"];
$where			= $_GET["where"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<title>Wah Tung Sponge Factory Limited</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<link rel="stylesheet" type="text/css" href="../css/jqueryslidemenu.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript" src="../js/jqueryslidemenu.js"></script>
<script language="javascript"><!--
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=0,width=720,height=700,screenX=100,screenY=100,top=50,left=50')
}
//--></script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="965" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="128" align="right" valign="top" background="../images/headerjp.jpg" style="background-repeat:no-repeat"><table border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="right" valign="top" style="padding-top:10px;padding-right:10px"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="90">
              <param name="movie" value="../flash/slogan_jp.swf" />
              <param name="quality" value="high" />
              <param name="wmode" value="transparent" />
              <embed src="../flash/slogan_jp.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="90" wmode="transparent"></embed>
          </object></td>
        </tr>
        <tr>
          <td align="right" valign="bottom"><table border="0">
              <tr>
                <td align="right"><a href="../en/index.php"><img src="../images/lang_eng.png" width="56" height="15" border="0" /></a></td>
                <td align="right"><a href="../sc/index.php"><img src="../images/lang_sc.png" width="78" height="15" border="0" /></a></td>
                <td align="right"><a href="../jp/index.php"><img src="../images/lang_jp.png" width="63" height="15" border="0" /></a></td>
              </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
<!-- Menu -->
<?php require("menu.php"); ?>
  <tr>
	<td height="480" valign="top"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="190" align="left" background="../images/bg_inSearchButton.gif"><div class="colLeft">&nbsp;</div></td>
        <td height="60" align="left" class="titletxt"><div class="colMiddle">
		<?	
				  
		  $sql = "SELECT * ";
		  $sql .= "FROM special ";
		  $sql .= "where specialId = $specialId ";
		  $result = mysql_query($sql);
		  $row = mysql_fetch_array($result,MYSQL_ASSOC);
		  if ($specialId == "")
		  { 
			echo "キャンベーン/特集一覧";
			}else{
		    echo $row{'specialcatnamejp'}; 
		  } 
		  ?></div></td>
      </tr>
      <tr>
        <td width="190" height="420" align="left" valign="top" background="../images/bg_conment.gif"><div class="colLeft">
		<div class="customGroup">
		<!-- SubMenu -->
<?
		load(0, 0, 1);

		function load($p, $space, $top)
		{
//			$sql = "SELECT * ";
//			$sql .= "FROM special ";
//			$sql .= "where parentid = $p ";
//			$sql .= "order by sortby";

			$sql = "  select p.specialId, sum(i.specialimageId) as num, p.specialcatnamejp";
			$sql .= " from  special p left join specialimage i on p.specialId = i.specialId";
			$sql .= " where p.parentid = $p ";			
			$sql .= " group by p.specialId, p.specialcatnamejp ";
			$sql .= " order by p.sortby";

			$result1 = mysql_query($sql);
			$n=1;
			
			$count = mysql_num_rows($result1); 
			$num = mysql_num_rows($result1);
			if (($top<>1) && ($num > 0))
			{
				echo "<ul>";
			}
			while ($row = mysql_fetch_array($result1,MYSQL_ASSOC))
			{
					if ($top==1) 
						echo "<div class='customGroup_title'>";
					else
						echo "<li>";
						
				if ($row{'num'} <> '')
 					echo "<a href='special.php?specialId=".$row{'specialId'}."'>". $row{'specialcatnamejp'} . "</a>";			
				else 
					echo $row{'specialcatnamejp'}; 

				if ($top==1) 
					echo "</div>";
				else
					echo "</li>";					
				load($row{'specialId'}, $space+1, 2);
			}
			if (($top<>1) && ($num > 0))
			{
				echo "</ul>";
			}

		}
?>
		</div></div></td>
        <td align="left" valign="top"><div class="colMiddle">
          <table width="735" border="0" cellpadding="0" cellspacing="0">

		<?
									$limit=12; 
									if (!$offset) $offset=0;

									if (strlen($where)==0)
									{
										if (strlen($specialId)<>0)
										{
											$query_where .= "and specialimage.specialId = ". $specialId ." ";
										}
										
									}
									else
									{
										$query_where = $where;
									}
									if (!$where) {
										if (empty($one) || empty($two)) {
										}
										$where=$query_where;
									}

									$sqlx = "select count(*) ";
									$sqlx .= "FROM specialimage inner join special ";
									$sqlx .= "on specialimage.specialId = special.specialId ";
									$sqlx .= "$query_where ";
									$sqlx = str_replace('\\','',$sqlx);
									$result=mysql_query($sqlx);

									list($numrec)=mysql_fetch_row($result);

									$numpage=intval($numrec/$limit);

									if ($numrec%$limit) {
										$numpage++; // add one page if remainder
									}
?>
								<tr><td colspan="4"><? include("pagenav.php"); ?></td></tr>	
		<!--start here-->
									<?
										$sqly = "SELECT * ";
										$sqly .= "FROM specialimage inner join special ";
										$sqly .= "on specialimage.specialId = special.specialId ";
										$sqly .= "$query_where ";
										$sqly .= "order by specialimage.sortbyimage ASC ";
										$sqly .= "limit $offset,$limit";

									$x = 1;
									$y = 1;

										echo "<tr>";
										$result1 = mysql_query($sqly);

										while ($row = mysql_fetch_array($result1,MYSQL_ASSOC))
										{
											$bgcolor="#FFFFFF";
											if ($y == 1)
											{
											}
											elseif ($y == 4)
												echo "<tr>";
											elseif ($y == 7)
												echo "<tr>";
											elseif ($y == 10)
												echo "<tr>";
										?>
											
	<td width="735" valign="top" align="center" class="txt">
	<table width="200" border="0" cellpadding="0" cellspacing="0">
	<? 	if ($row{'image'} <> "")  {  ?>
	  <tr>
		<td width="200" align="center" valign="top">
		<a href="javascript:popupWindow('pop_special.php?specialimageId=<?=$row{'specialimageId'}?>')"><img src="../special/<?=$row{'image'}?>" border='0'  width='200' ></a></td>
	  </tr>
	  <? } ?>
	  <tr>
		<td width="200" height="40" align="center" valign="top">
		<a href="javascript:popupWindow('pop_special.php?specialimageId=<?=$row{'specialimageId'}?>')"><?=$row{'specialnamejp'}?></a></td>
	  </tr>
	</table>	</td>
						<?
							if ($y == 3)
								echo "</tr>";
							elseif ($y == 6)
								echo "</tr>";
							elseif ($y == 9)
								echo "</tr>";
							elseif ($y == 12)
								echo "</tr>";
							$y = $y + 1;
						}
						?>
																							
				<!--end here-->
			</table>	
          </div></td>
      </tr>
    </table></td>
  </tr>
<!-- Footer -->
<?php require("footer.php"); ?>
</table>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit