| Server IP : 104.21.37.246 / Your IP : 172.71.28.146 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/cp648411/www/simded.com/seamsi/ |
Upload File : |
<?php
include('../include/class.php');
include('../include/sql_injection_get.php');
$list = array('table'=>'seamsi','where'=>'name_en = "'.$_GET['name'].'" AND status = "1"');
$view = $view_db->view($list);
$row = $view_db->q($view);
$bg_1 ='bg_1.jpg';
if( $row['bg_image'] <> '')
{$bg_1 = $row['bg_image'];
$bg_2 = $row['bg_image'];
}
$bg_pp ='bg_pp.jpg';
if( $row['bg_pp'] <> '')
{$bg_pp = $row['bg_pp']; }
$list2 = array('table'=>'seamsi_detail','where'=>'id = "'.$_GET['num'].'" order by RAND() LIMIT 1 ');
$view2 = $view_db->view($list2);
$row2 = $view_db->q($view2);
$og_title = 'เสี่ยงเซียมซี ' . $row['name'];
if($row2['image'] <> '')
{
$bg_2 = $row2['image'];
}
$text_description = $row2['detail'];
$text_og_description = $util_class->sub_str_2($text_description,'200');
$img_t = $row['image'];
$og_description = $text_og_description;
include("mark.inc.php"); //นำเข้าไฟล์ฟังก์ชั่น
$SourceFile = '../redbag/seamsi/'.$bg_pp; //รูปที่ต้องการใส่วอเตอร์มาร์ค
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
$WaterMarkText = 'เซียมซีใบที่ '.$row2['number']; //ข้อความที่จะใส่
$WaterMarkText2 = $util_class->sub_str_2($text_description,'500'); //ข้อความที่จะใส่
$WaterMarkText2 = strip_tags($WaterMarkText2);
$WaterMarkTextn = $row['name'];
watermarkImage ($SourceFile, $WaterMarkText , $WaterMarkTextn , $WaterMarkText2, $DestinationFile);
/*$og_image = 'https://www.simded.com/redbag/seamsi/'.$bg_2;
$og_image2 = 'https://www.simded.com/redbag/seamsi/'.$bg_2;*/
$og_image = 'https://www.simded.com/seamsi/'.$DestinationFile;
$og_image2 = 'https://www.simded.com/seamsi/'.$DestinationFile;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php include('../include/meta.php');?>
<?php include('../include/cssfile.php');?>
<?php include('../loginfacebook/config_fb.php');?>
</head>
<body>
<?php
include('../themes/menu.php');
?>
<style>
.BG_seamsi{ background-image:url(../redbag/seamsi/<?php echo $bg_1;?>);background-position:top center;background-repeat:repeat-x;background-color:#FFF;margin-top:20px;}
.BG_seamsi_pp{max-width:599px;margin-top:50px;padding:30px 20px;background-position:top center;background-image:url(../redbag/seamsi/<?php echo $bg_pp;?>);
background-repeat:no-repeat;min-height:771px;background-repeat:repeat-y;border:0px solid #F00;padding-bottom:100px;}
@media (max-width: 768px)
{
.BG_seamsi_pp{max-width:599px;margin-top:50px;padding:30px 20px;background-position:top center;
background-repeat:repeat-y;height:auto;}
}
.seamsi_text{font-weight:bold;padding:30px 30px;font-size:24px;}
.Bgfooter{ margin-top:-35px;}
</style>
<div class="container">
<div class="row">
<div class="col-md-12">
<div style="margin-top:0px;">
<div class="row">
<div class="col-md-3"><div class="HeadText" style="text-align:left;width:100%;margin-bottom:10px;" > เสี่ยงเซียมซี </div></div>
<div class="col-md-9 hidden-xs hidden-sm " style="font-size:16px;color:#F00;margin-top:15px;text-align:right;">ทำนายฟรี >
<a href="../seamsi/" style="color:#F00;">เสี่ยงทายเซียมซี </a> >
<a href="../seamsi/predict.php?name=<?php echo $_GET['name']; ?>" style="color:#F00;"><?php echo $row['name'] ?> </a> >
ใบเซียมซี
</div>
</div>
</div>
<div class="row">
<div class="col-md-12" align="center" style="font-size:40px;font-weight:bold;"> <?php echo $row['name']; ?> </div>
</div>
</div>
</div><!--/row-->
</div><!--/.container-->
<div class="BG_seamsi" >
<div class="container" style="max-width:1000px;">
<div class="" align="center">
<div class="BG_seamsi_pp" style="">
<div style="border:0px solid #F00;">
<?php
$text_se = 'เซียมซีใบที่' . $row2['number'];
if($row['id']==16)
{
$text_se = $row2['detail'];
}
?>
<div style="font-size:36px;font-weight:bold;padding-top:20px;" align="center"><?php echo $text_se;?></div>
<?php
if($row['id'] <> 16)
{
?>
<div style="color:#F00;font-size:14px;" align="center"><?php echo $row['name']; ?></div>
<?php
}
?>
<div class="seamsi_text" align="center">
<?php
if($row['id'] <> 16)
{
?>
<?php echo $row2['detail'];?>
<?php
}
?>
<?php
if($row2['image']<> '')
{
?>
<img src="../redbag/seamsi/<?php echo $row2['image'];?>" class="img-responsive">
<?php
}
?>
</div>
<!--<div style="font-size:34px;color:#F00;">
เลขมงคล <?php //echo $row2['number'];?>
</div>-->
<div class="div_com">
<div class="col-md-12" style="margin-top:20px;margin-bottom:20px;">
<a
onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../images/btn_face.png" width="198" height="53" />
</a>
</div>
</div>
</div>
</div>
</div>
<div class="row" align="center" style="border:0px solid #F00;max-width:600px;margin:0 auto;">
<div class="col-md-12 div_mobile" style="margin-top:20px;">
<div data-href="https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>" data-layout="button_count" data-size="large" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>&src=sdkpreparse"><img src="../images/btn_face.png" width="198" height="53" /></a></div>
</div>
<div class="col-md-6" style="margin-top:20px;">
<a type="button" href="../seamsi/predict.php?name=<?php echo $_GET['name'] ?>" class="btn btn-danger"
style="width:198px;font-size:20px;height:53px;background: linear-gradient(to bottom, rgba(235,28,36,1) 0%,rgba(158,11,15,1) 95%);border-radius:16px;padding-top:10px;">เสี่ยงเซียมซีใหม่</a></div>
<div class="col-md-6" style="margin-top:20px;">
<button type="button" onclick="location.href='../seamsi/'" class="btn btn-link" style="width:198px;font-size:20px;height:53px;background: linear-gradient(to bottom, rgba(53,175,71,1) 0%,rgba(2,98,15,1) 95%);border-radius:16px;color:#FFF;border:1px solid #5cc26a;text-decoration:none;">เลือกใหม่</button>
</div>
</div>
<div style="border:#00F solid 0px;margin-top:40px;">
<?php include('../themes/google_ad.php');?>
</div>
</div>
</div>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script>
var this_main_number = 0;
function share_to_fb()
{
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent('http://www.simded.com/seamsi/reading_test.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>'),'addthis_popup','toolbar=0,status=0,width=626,height=436');
}
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/th_TH/sdk.js#xfbml=1&version=v2.12&appId=1936378513267243&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php
include('../themes/contact_btn2.php');
include('../themes/footer.php');
include('../include/footer_js.php');
?>