| Server IP : 172.67.216.113 / Your IP : 104.23.243.33 [ 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');
?>
<!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('../include72/cssfile.php');?>
<?php //include('../loginfacebook/config_fb.php');?>
</head>
<body>
<?php include('../themesv2/menu.php');?>
<div class="bg-3-cover pb-3">
<?php include('../themesv2/menu2.php');?>
<?php include('../themesv2/seamsi_predict.php'); ?>
<?php include('../themesv2/contact_btn2.php'); ?>
</div>
<?php
include('../themesv2/footer.php');
include('../include/footer_js.php');
?>
<?php
$list2 = array('table'=>'seamsi_detail','where'=>'seamsi_id = "'.$row['id'].'" order by RAND() LIMIT 1 ');
$view2 = $view_db->view($list2);
$row2 = $view_db->q($view2);
$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']; }
$SourceFile = '../redbag/seamsi/'.$bg_pp; //รูปที่ต้องการใส่วอเตอร์มาร์ค
$DestinationFile = 'number/'.$row['name_en'].'_'.$row2['id'].'.jpg'; //ไฟล์รูปภาพที่จะจัดเก็บ
if( file_exists($SourceFile.$DestinationFile) )
{
}
else
{
$text_description = strip_tags($row2['detail']);
include("mark.inc.php"); //นำเข้าไฟล์ฟังก์ชั่น
$WaterMarkText = 'เซียมซีใบที่ '.$row2['number']; //ข้อความที่จะใส่
$text_description = strip_tags($text_description);
$WaterMarkText2 = $util_class->sub_str_2($text_description,'400'); //ข้อความที่จะใส่
$WaterMarkTextn = $row['name'];
watermarkImage ($SourceFile, $WaterMarkText , $WaterMarkTextn , $WaterMarkText2, $DestinationFile);
}
?>
<script>
$(window).load(function() {
$('#loading_seamsi').on('click touchstart', function() {
document.getElementById("Dloading").style.display = "inline";
document.getElementById("shake_gif").style.display = "inline";
document.getElementById("shake").style.display = "none";
setTimeout(function(){ window.location.href = "reading.php?name=<?php echo $_GET['name'];?>&num=<?php echo $row2['id']?>"; }, 3000);
});
});
document.getElementById("DIV_seamsi").addEventListener("mouseover", mouseover_shake);
document.getElementById("DIV_seamsi").addEventListener("mouseout", mouseout_shake);
function mouseover_shake()
{
document.getElementById("shake_gif").style.display = "inline";
document.getElementById("shake").style.display = "none";
}
function mouseout_shake()
{
document.getElementById("shake_gif").style.display = "none";
document.getElementById("shake").style.display = "inline";
}
function loading_seamsi()
{
}
</script>