| Server IP : 172.67.216.113 / 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;
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
/*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);*/
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
$og_image = 'https://www.simded.com/seamsi/'.$DestinationFile;
$og_image2 = 'https://www.simded.com/seamsi/'.$DestinationFile;
$og_image3 = 'http://www.simded.com/seamsi/'.$DestinationFile;
/*$og_image = 'https://www.simded.com/redbag/seamsi/'.$bg_2;
$og_image2 = 'https://www.simded.com/redbag/seamsi/'.$bg_2;
$og_image3 = 'http://www.simded.com/redbag/seamsi/'.$bg_2;*/
?>
<!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');?>
<meta property="og:image" content="<?php echo $og_image3?>">
<meta property="og:image:secure_url" content="<?php echo $og_image?>">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="599">
<meta property="og:image:height" content="360">
<?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:no-repeat;
background-color:#FFF;
margin-top:20px;
background-size: cover;
max-height: 700px;
}
.BG_seamsi_pp{max-width:599px;margin-top:10rem;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;}
.seamsi_text{font-weight:bold;padding:30px 30px;font-size:24px;}
.title_seamsi{font-size:36px;font-weight:bold;}
@media (max-width: 768px)
{
.BG_seamsi_pp{max-width:599px;margin-top:10rem;padding:30px 20px;background-position:top center;
background-repeat:repeat-y;height:auto;}
.seamsi_text{padding:10px 10px;}
.title_seamsi{font-size:26px;font-weight:bold;}
}
.Bgfooter{ margin-top:-35px;}
</style>
<?php
function thainumDigit($num){
return str_replace(array( '0' , '1' , '2' , '3' , '4' , '5' , '6' ,'7' , '8' , '9' ),
array( "o" , "๑" , "๒" , "๓" , "๔" , "๕" , "๖" , "๗" , "๘" , "๙" ),
$num);
};
?>
<div class="BG_seamsi" >
<div class="container">
<div class="row pt-5 justify-content-center" align="center">
<div class="BG_seamsi_pp rounded-sim py-3 " style="">
<div style="border:0px solid #F00;">
<?php
$text_se = 'เซียมซีใบที่ ' . $row2['number'];
if($row['id']==16)
{
$text_se = $row2['detail'];
}
?>
<div class="title_seamsi" style="padding-top:20px;" align="center"><?php echo $text_se;?></div>
<?php
if($row['id'] <> 16)
{
?>
<div class="text-danger-sim title_seamsi" align="center">
<?php
$tx_name = explode(" วัด",$row['name']);
echo $tx_name[0];
if($tx_name[1]){
echo "<br>".'วัด'.$tx_name[1];
}
?>
</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>
</div>
</div>
</div>
</div>
<?php
if(strlen($row2['detail'])>2000){$hfix = 'height: 25rem;';}
elseif(strlen($row2['detail'])>1500){$hfix = 'height:19rem;';}
else {$hfix = 'height:18rem;'; }
?>
<div class="" style="<?php echo $hfix; ?>"> </div>
<div class="container">
<?php
function sofa_get_uri(){
$host = $_SERVER['SERVER_NAME'];
$self = $_SERVER['REQUEST_URI'];
$query = !empty($_SERVER['QUERY_URI']) ? $_SERVER['QUERY_STRING'] : null;
$ref = !empty($query) ? "http://$host$self?$query" : "http://$host$self";
return $ref;
}
$link = sofa_get_uri();
?>
<div class="row" align="center" style="border:0px solid #F00;max-width:600px;margin:0 auto;">
<div class="col-12 text-primary fw-bold text-spacing-md fs-3">
แชร์
</div>
<div class="d-flex justify-content-center pt-3 " >
<div class="line-it-button " data-lang="th" data-type="share-c" data-env="REAL"
data-url="<?php echo $link; ?>"
data-color="default"
data-size="large"
data-count="false"
data-ver="3" style="display: none;">
</div>
<a class="ps-3"
onClick="javascript:share_to_fb();"
style="cursor: pointer;color:#FFF;"
title="แบ่งปันให้เพื่อน">
<img src="../images/logo-facebook.png" width="45" height="45" class="img-fluid" />
</a>
<!-- Your share button code
<div class="fb-share-button"
data-href="https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>"
data-layout="button_count">
</div>
-->
<!--data-url="https://developers.line.biz/en/docs/line-social-plugins/install-guide/using-line-share-buttons/"--->
</div>
<script src="https://www.line-website.com/social-plugins/js/thirdparty/loader.min.js" async="async" defer="defer"></script>
<!--
<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 mt-3">
<a type="button" href="../seamsi/predict.php?name=<?php echo $_GET['name'] ?>" class="btn btn-success-sim w-100 fw-bold text-spacing-md fs-4">
เสี่ยงเซียมซีใหม่
</a>
</div>
<div class="col-md-6 mt-3">
<button type="button" onclick="location.href='../seamsi/'" class="btn btn-danger-sim w-100 fw-bold text-spacing-md fs-4" >เลือกใหม่</button>
</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()
{
//alert(encodeURIComponent('https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>'));
window.open('https://www.facebook.com/sharer.php?u='+encodeURIComponent('https://www.simded.com/seamsi/reading.php?name=<?php echo $_GET['name']?>&num=<?php echo $_GET['num']?>'),'addthis_popup','toolbar=0,status=0,width=626,height=436');
// window.open('https://www.facebook.com/sharer.php?u=http://www.simded.com/seamsi/reading.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>
<div class="pb-3">
<?php
include('../themes/contact_btn2.php');
?>
</div>
<?php
include('../themes/footer.php');
include('../include/footer_js.php');
?>