? 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/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html/menu-left.php

<?
if($_POST['email'] <> ""){
	if (!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$/i", trim($_POST['email']))) {
		echo '<script type="text/javascript">alert("อีเมล์ไม่ถูกต้อง");</script>' ;
	}else{
		$result=$db->Query("insert into advertise (name_advertise,link_advertise) values ('{$_POST['email']}','".date("D d / M / Y H:i:s")."')");
		if($result){
			$error="ลงทะเบียนรับข่าวโปรโมชั่น สำเร็จ";
			echo "<SCRIPT>alert(\"$error\"); </SCRIPT>\n";
		}
	}
}
?>
<div class="col-md-3 col-sm-3 col-xs-12 col-left">
	<?
	$rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 1 and bannerRanking= 1");
	$arr=mysql_fetch_array($rs);
	if($arr['bannerID'] <> ""){
		?>
		<div style=" font-size: 22px;
    font-weight: bold;
    background-color: #01b5f0;
    color: #fff;
    text-align: center;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 5px 0;">
			<? echo $arr['bannerName']; ?>
		</div>
		<div class="info-banner">

			<a href="<? echo $arr['bannerLink']; ?>">
				<img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>" width="100%"></a>
		</div>
			<?
		}
		$rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 1 and bannerRanking= 0");
		$arr=mysql_fetch_array($rs);
		if($arr['bannerID'] <> ""){
			?>
			<div class="news">
					<div class="title">60 ปี ไทย-เกาหลี</div>

			<a href="<? echo $arr['bannerLink']; ?>">
				<img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>" width="100%"></a>
			</div>
			<?
		}
		?>

		<div class="news">
				<div class="title">แฮปปี้โคเรียนิวส์</div>
				<?
				$rs=$db->Query("SELECT * FROM contents WHERE CatID = 133 AND ContentPublic = 1 ORDER BY ContentID DESC ");
				$arr=mysql_fetch_array($rs);
				$data=$db->getRow('contents_photo',"WHERE ContentID  ='{$arr['ContentID']}' ORDER BY id_p DESC ");
				?>
				<div class="pic"><a href="travel-detail.php?id=<?=$arr['ContentID'];?>">
				<?
				preg_match_all('/<img[^>]+src=[\'"]([^\'"]+)[\'"][^>]*>/i', $arr['ContentDetail'], $image);
				if( $image[1][0])
					$thumbnail=$image[1][0];
				else {
					$datame=$db->getRow('contents_photo',"WHERE ContentID  ='{$arr['ContentID']}' ORDER BY id_p ASC ");
					$thumbnail="../backend/images/ContentPhoto/".$datame['picture'];
				}
				?>
				<img src="<?=$thumbnail;?>" class="img-responsive" alt="<?=$arr['ContentName'];?>"></a></div>
				<div class="text"><a href="travel-detail.php?id=<?=$arr['ContentID'];?>"><span><?=$arr['ContentName'];?></span> <?=$arr['ContentTitle'];?></a></div>

		</div>

			<?
			$rs=$db->Query("SELECT * FROM banner WHERE bannerInfo = 2 ORDER BY bannerRanking DESC ");
			$arr=mysql_fetch_array($rs);
			if($arr['bannerID'] <> ""){
				?>
				<div style="margin-top:20px;">
					<a target="_blank" href="<? echo $arr['bannerLink']; ?>"><img src="backend/images/banner/<? echo $arr['bannerPictureName']; ?>" class="img-responsive" alt="<? echo $arr['bannerName']; ?>"></a>
				</div>
				<?
			}
			?>
			<div style="margin-top:20px;"><img src="img/lineat.png" style="img-responsive" width="100%" /></div>
	<div style="margin-top:20px;">
				<div class="fb-page" data-href="https://www.facebook.com/happytokorea/" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/happytokorea/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/happytokorea/">Happy Korea by K.T.C.C</a></blockquote></div>
			</div>
			<div class="e-newsletter">
				<form method="post" id="form1">
					<div>ลงทะเบียนรับข่าวโปรโมชั่น <button type="submit" class="btn btn-default btn-md" style="font-size: 18px; border: 2px solid #fff; background-color: #e1e1e1;border-radius:10px;">submit</button></div>
					<div style="margin-top: 10px;">
						<div class="form-group">
							<input type="text" name="email" id="email" placeholder="e-mail" class="form-control"  style="background-color: #0e9dd9; color:#fff; font-weight: normal;border-radius:10px; text-align: center;"/>
						</div>
					</div>
				</form>
			</div>

			<div class="curency">
				<div class="title">อัตราแลกเปลี่ยนเงิน</div>
				<div style="margin-top:10px;">ประจำวันที่: <? echo date("m-d-y");?></div>
				<table border="1" cellpadding="5" style="border-collapse:collapse;width:100%; margin-top:10px;">
					<thead>
						<tr>
							<th style=" background-color:#2994c6;color:#fff; text-align:center; padding:3px 0;">สกุลเงิน/บาท</th>
							<th style=" background-color:#2994c6;color:#fff; text-align:center; padding:3px 0;">อัตราแลกเปลี่ยนเฉลี่ย</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td align="center" class="currency">KRW</td>
							<td align="center" class="rate"><? echo convertCurrency(1, "KRW", "THB");?></td>
						</tr>
						<tr>
							<td align="center" class="currency">JPY</td>
							<td align="center" class="rate"><? echo convertCurrency(1, "JPY", "THB");?></td>
						</tr>
						<tr>
							<td align="center" class="currency">USD</td>
							<td align="center" class="rate"><? echo convertCurrency(1, "USD", "THB");?></td>
						</tr>
					</tbody>
				</table>

				<?
				function convertCurrency($amount, $from, $to){
					$url  = "https://www.google.com/finance/converter?a=$amount&from=$from&to=$to";
					$data = file_get_contents($url);
					preg_match("/<span class=bld>(.*)<\/span>/",$data, $converted);
					$converted = preg_replace("/[^0-9.]/", "", $converted[1]);
					return round($converted, 3);
				}
				?>
			</div>


			<div class="westher" style="overflow:hidden;">
				<div class="title">สภาพอากาศ</div>
				<p class="currentday"></p>
				<div class="current">

					<p class="climate_bg"></p>
					<p class="location"></p>
				</div>

				<div class="current_temp">
					<p style="padding-top:10px;padding-bottom:10px;">
						<img class="tempicon" src="images/degree.svg"><span class="temperature"></span></p>

						<p style="padding-top:10px;padding-bottom:10px;">
							<img class="dropicon" src="images/Droplet.svg"><span class="humidity"></span></p>
							<p style="padding-top:10px;padding-bottom:10px;">
								<img class="windicon" src="images/Wind.svg"><span class="windspeed"></span>
							</div>
							<div class="temp_forcast"></div>
						</div>

						<!--<div class="credit">
						<img src="img/banner-credit.jpg" class="img-responsive" alt="">
					</div>-->
					<!--<div style="margin-top:20px;">
						<div class="title" style="color:#000; text-align:center; font-size:28px; font-weight:bold;">VISITOR</div>

						<div style="text-align:center;">
						<div align="center"><a href="http://www.amazingcounters.com">
						<img border="0" src="http://cc.amazingcounters.com/counter.php?i=3208014&c=9624355" alt="AmazingCounters.com"></a>
						</div>
					</div>
					</div>-->

				</div>

T1KUS90T
  root-grov@210.1.60.28:~$