403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/xampp/htdocs-coblaa/cb_image/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xampp/htdocs-coblaa/cb_image/index.php
<html>

<head>
<title>CB coot, Inspiration and motivation quotes</title>
<link rel="icon" type="image/jpg" href="https://coblaa.com/cb_image/main_icon/coot_icon.png"  />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/index.css?v3" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4728417548940171"
     crossorigin="anonymous"></script><!--connection google ad  -->



</head>

<div style="display:none;">
<?php
$user_ip = getenv('REMOTE_ADDR');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
$city = $geo["geoplugin_city"];
$region = $geo["geoplugin_regionName"];
$country = $geo["geoplugin_countryName"];
/*echo"$user_ip";
echo "City: ".$city."<br>";
echo "Region: ".$region."<br>";
echo "Country: ".$country."<br>";
/*
geoplugin_request
geoplugin_status
geoplugin_credit
geoplugin_city
geoplugin_region
geoplugin_areaCode
geoplugin_dmaCode
geoplugin_countryCode
geoplugin_countryName
geoplugin_continentCode
geoplugin_latitude
geoplugin_longitude
geoplugin_regionCode
geoplugin_regionName
geoplugin_currencyCode
geoplugin_currencySymbol
geoplugin_currencySymbol_UTF8
geoplugin_currencyConverter
*/
?> 
<input id="ipuser" value="<?php echo $user_ip ?>" style="display:none;" />
</div>

<body id="main_body" onload="disp_post_img('all');" >

<?php 
session_start();
//include('db_b.php'); 
include('db.php'); 
//include('function.php');

if(isset($_SESSION['my_id']))
{
$user_id = $_SESSION['my_id'];		

}else{
	
$user_id = $user_ip;	
	
}
$kvt ='CB1';
$kvt2 ='CB2';
?>

<input id="my_id" value="<?php echo $user_id ?>" style="display:none;" />

<div class="main_home_div" > 

<img src="main_icon/coot_icon.png" id="main_log_home" class="main_log_home" />
<h1 id="hi_title" class="hi_title">CB coot</h1>


<img src="main_icon/down btn.png" id="option_btn" onClick="show_option_div();" class="option_btn" />

<div class="home_btn_pc_only" >

<?php if(!isset($_SESSION['my_id'])){ ?>
<a href="signup.php" ><button class="main_upload_btn" >Sign Up</button></a>
<a href="login"><button class="main_upload_btn">Login</button></a>	

<?php }else{ ?>

<a href="logout"><button class="main_upload_btn">Logout</button></a>	
<?php } ?>
<a href="https://coblaa.com/CB_quote_editor"><button class="main_upload_btn">Qoute Editor</button></a>
<a href="index"><button class="main_upload_btn" >Home</button></a>
</div>

<div id="search_input_div" class="search_input_div" >

<button onClick="clear_sea_input_pc()" class="clear_sea_input_btn">x</button>
<button onClick="clear_sea_input_mob()" class="clear_sea_input_btn_mob">x</button>

<input id="search_input" class="search_input" placeholder="Search..." />

<div onClick="sart_search_now();" class="search_go_btn"> <img src="main_icon/ser.png" width="90%" height="90%" /> </div>
</div>


<div class="help_setting_btn_div" >
<div onClick="show_setting_div();" id="setting_btn_div" class="setting_btn_div" >
<img src="main_icon/menu_icon.png" onClick="show_option_div_mob();" class="menu_mob_icon" />
</div>
</div>

<div class="heip_mob_search_icon">
<img src="main_icon/ser.png" id="mob_search_icon" onClick="show_mob_sear_area();" class="mob_search_icon" />
</div>

</div>
<div class="banner_help_div" ></div>

<div id="btn_lebal" class="btn_lebal" >

<a href="?action_status=All"><button id="disp_all" onClick="disp_post_img('all');" class="sub_btn_lebal" >All</button></a>
<a href="?action_status=Latest"><button id="disp_latest" onClick="disp_post_img('latest');" class="sub_btn_lebal" >Latest</button></a>
<a href="?action_status=Motivational"><button id="disp_mot" onClick="disp_post_img('mot');" class="sub_btn_lebal" >Motivational</button></a>
<a href="?action_status=Love"><button id="disp_lve" onClick="disp_post_img('lve');" class="sub_btn_lebal" >Love</button></a>
<a href="?action_status=Biblical"><button id="disp_bib" onClick="disp_post_img('bib');" class="sub_btn_lebal" >Biblical</button></a>
<a href="?action_status=Islamic"><button id="disp_isl" onClick="disp_post_img('isl');" class="sub_btn_lebal" >Islamic</button></a>

</div>

<!--div id="search_input_div_mob" class="search_input_div_mob" style="display:none;" >


<button id="close_search_mob_btn" onClick="clear_sea_input_mob();" class="close_search_mob_btn">x</button>
<input id="search_input2" class="search_input" placeholder="Search..." />

<div onClick="sart_search_now();" class="search_go_btn"> <img src="main_icon/ser.png" width="90%" height="90%" /> </div>
</div-->


<!--div class="home_div" style="display:none;" >

<div class="home_btn_pc_only" >
<img src="main_icon/down btn.png" id="option_btn" onClick="show_option_div();" class="option_btn" />
</div>

<a href="studio" class="upload_btn_pc" ><button idk="upload_btn" class="main_upload_btn" >Studiov</button></a>
<a href="studio" class="upload_btn_mob" ><button idk="upload_btn" class="main_upload_btn" >Studiov</button></a>


<div id="search_input_div" class="search_input_div" stylek="display:none;" >

<button onClick="clear_sea_input_pc()" class="clear_sea_input_btn">x</button>
<button id="close_search_mob_btn" onClick="close_search_area_mob();" class="close_search_mob_btn">x</button>
<input id="search_input" class="search_input" placeholder="Search..." />

<div onClick="sart_search_now();" class="search_go_btn"> <img src="main_icon/ser.png" width="90%" height="90%" /> </div>
</div>

<div class="search_btn_mob_help" stylek="display:none;" >
<img src="main_icon/ser.png" id="show_search_area_mob_btn" onClick="show_search_area_mob()" class="search_btn_mob" />
</div>




<!--div id="disp_search_output" class="search_output" style="display:none;" ></div-k->

</div><!-- end of home_div -->

<div id="main_search_div" class="main_search_div" >
   <div id="disp_search_output" class="sub_search_div"></div>
</div><!--end of main_search_div-->


<div id="option_div" class="option_div" >
<a href="index"><button class="main_upload_btn2" >Home</button></a>
<a href="https://coblaa.com/CB_quote_editor"><button class="main_upload_btn2">Quote Editor</button></a>	
<?php if(isset($_SESSION['my_id']))
{
$user_id = $_SESSION['my_id'];
if($user_id ==$kvt || $user_id ==$kvt2){	
?>
<a href="studio" ><button class="main_upload_btn2" >Studio</button></a>
<?php } } ?>
<?php if(!isset($_SESSION['my_id'])){ ?>

<a href="login"><button class="main_upload_btn2">Login</button></a>	
<a href="signup" ><button class="main_upload_btn2" >Sign Up</button></a>
<?php }else{ ?>
<!--a href="transaction"><button class="main_upload_btn2">Transaction</button></a-->	
<a href="quzi" ><button class="main_upload_btn2" >Quzi</button></a>
<a href="logout"><button class="main_upload_btn2">Logout</button></a>	

<?php } ?>
<a href="Cinema" ><button class="main_upload_btn2" >Cinema</button></a>
<a href="privacy_policy" ><button class="main_upload_btn2" >Privacy</button></a>
</div>
<div id="help_option_div_mob" onClick="close_option_div_mob();" class="help_option_div_mob" ></div>

<h1 class="home_title" >Inspiration and motivation</h1>
<h1 class="home_title2" >quotes in one place</h1>

<!--a href="https://play.google.com/store/apps/details?id=com.craneblue.cbcoot" ><button class="app_download" >Download App</button></a-->

<div class="main_banner_div" >


<!--Banner wheel--></div>

<div class="spin_win" style="display:none;" >

<img onClick="show_spin_area();" src="main_icon/spin.png" id="spin_img"  class="spin_img" />
<span onClick="show_spin_area();" id="spin_show_btn"  class="spin_show_btn" >Spin and win</span>
<span id="spin_now_btn" onClick="document.getElementById('watchAdButton').click();"  class="spin_now_btn" >Spin Now</span>

<img src="main_icon/spin.png" id="spin_img_help" class="spin_img" style='display:none;' />
<span id="spin_help_btn" class="spin_help_btn" >Spin Agin Tomorrow</span>
<span id="reward_out" class="reward_out" ></span>
</div>



<span id="quzi_lebal_output"style="display:none;"></span>
<span id="quzi_comp_output"></span>

  <div id="check_qiz_comp_div" class="qtn_div_comp" style="display:none;" >
  <span class="qtn_comp_title" style="font-size:1.2em;">You have answered this question already</span>
  <button onClick="get_new_qtn();" class="qoute_name_comp" style='color:#000;cursor:pointer;'>New question </button>
  </div>
		
  <!--span class="qtn_comp_title">You have answered all the questions in this set</span>
  <span class="qoute_name_comp">Please check again later for the new question set</span-->


<div id="reward_div" class="reward_div" style="display:none;" >
<span class="reward_lebal" >Daily Reward</span>

<div class="reward_div_shell" >

<div class="sub_reward_div" >
<span class="reward_tip" >Unlocked</span>
<img src="main_icon/reward_img.png" class="reward_icon" />
<div id="nxt_wrd_tym1" class="nxt_wrd_tym" ></div>
<span id="rwd1_cm" ><button onClick="claim_award();" class="cliam_rwd_btn1" >Claim</button></span>
<span id="rwd1_cmd" style="display:none;" ><button id="" class="cliam_rwd_btn2" >Claimed</button></span>
</div>

<div class="sub_reward_div" >
<span id="reward_tip2" class="reward_tip" >Gift</span>
<img src="main_icon/reward_img.png" class="reward_icon" />
<div id="nxt_wrd_tym2" class="nxt_wrd_tym" ></div>
<span id="rwd2_lck" ><button class="cliam_rwd_btn2" style="" >Locked</button></span>
<span id="rwd2_cm" onClickk="get_rwd2();" style="display:none;" ><button id="watchAdButton2" class="cliam_rwd_btn1" >Claim</button></span>
<span id="rwd2_cmd" style="display:none;" ><button id="" class="cliam_rwd_btn2"  >Claimed</button></span>
</div>

<div class="sub_reward_div" >
<span id="reward_tip3" class="reward_tip" >Gift</span>
<img src="main_icon/reward_img.png" class="reward_icon" />
<div id="nxt_wrd_tym3" class="nxt_wrd_tym" ></div>
<span id="rwd3_lck" stylek="display:none;" ><button class="cliam_rwd_btn2" >Locked</button></span>
<span id="rwd3_cm" style="display:none;" ><button id="watchAdButton3" class="cliam_rwd_btn1" >Claim</button></span>
<span id="rwd3_cmd" style="display:none;" ><button id="" class="cliam_rwd_btn2"  >Claimed</button></span>
</div>

</div>

</div>
<div id="erorr_out" style='display:none;'>63</div>
<div id="pig" class="pig_help" ></div>	


<h1 id="status" style='display:none;'></h1>
	
<div id="modal" class="modal"></div>


 <div id="spin_shell_div" class="spin_shell_div">
<button onClick="close_spin_area();" class="close_spin_btn">x</button>

	<span id="spin_temps1" class="spin_temps1" >
	<span id="spin_temps2" >0</span> /
	<span id="spin_temps3" >3</span>
	<span id="temps3" class="out_error1" ></span>
	</span>
    <span id="won_amt" ></span>
    <div class="wrapper"> 
	
      <div class="container2">
        <canvas id="wheel"></canvas>
        <button ID="spin-btn" class="spin-btn" >Spin</button>
        <!--img src="https://cutewallpaper.org/24/yellow-arrow-png/155564497.jpg" alt="spinner arrow" /-->
		<img src="main_icon/arrow_left.png" class="spinner_arrow alt="spinner arrow" />
      </div>
      <div id="final-value">
	  
        <p>Click on SPIN to start</p>
      </div>
	  <button onClick="cliam_spin_reward();" class="spin_cliam_btn">Claim Rewards</button>
    </div>

	<span class="spin_claim_tip" >Make sure you have an account else you lose the rewards</span>
	<!--span class="spin_claim_tip" >For the 1st & 2nd chances you must Claim the rewards else you lose the rewards</span-->
	
	</div>

  <!--h3 id="" class="headline_div" >It's too soon to quit</h3--> 
<div id="main_content_div" class="main_content_div" >

   <div style="display:none;" id="disp_post_image_output" ></div>
   <div style="display:none;" id="loadMore_output" ></div>

<?php 

if(isset($_GET['action_status']))
{
  	$action_status = $_GET['action_status'];
}else{$action_status='All';}

		// $my_id = $_GET['my_id'];
	$new_load_limit = 36;// $_GET['new_load_limit'];
	$displaying_now ="all"; // $_GET['displaying_now'];
	
if(isset($_GET['page']))
{
	$page = $_GET['page'];
	
}else{$page = 1;}	

$new_load_start = ($page - 1)*36;		
?>

 <div class="main_single_post_div" >
 <input id="cur_load_limit" value="<?php echo $new_load_limit ?>" style='display:none;' />
 <input id="cur_disp" value="<?php echo $displaying_now ?>" style='display:none;' />

	<?php

if('All' == $action_status){	
	$get_post_img ="select * from crane_imgtb ORDER BY rand() limit $new_load_start, $new_load_limit";
	?><script>document.getElementById("disp_all").style="background:#F24378;color:#fff;";</Script><?php
}
if('Latest' == $action_status){	
	$get_post_img ="select * from crane_imgtb ORDER BY id DESC limit $new_load_start, $new_load_limit";
	?><script>document.getElementById("disp_latest").style="background:#F24378;color:#fff;";</Script><?php
}

if('Motivational' == $action_status){	
	
	$get_post_img ="select * from crane_imgtb WHERE category='Motivational' ORDER BY id DESC limit $new_load_start, $new_load_limit";
	?><script>document.getElementById("disp_mot").style="background:#F24378;color:#fff;";</Script><?php
}
if('Love' == $action_status){
	
	$get_post_img ="select * from crane_imgtb WHERE category='Love' ORDER BY id DESC limit $new_load_start, $new_load_limit";
	?><script>document.getElementById("disp_lve").style="background:#F24378;color:#fff;";</Script><?php
} 
if('Biblical' == $action_status){	
	
	$get_post_img ="select * from crane_imgtb WHERE category='Biblical' ORDER BY id DESC limit $new_load_start, $new_load_limit";
	?><script>document.getElementById("disp_bib").style="background:#F24378;color:#fff;";</Script><?php
}
if('Islamic' == $action_status){	
	
	$get_post_img ="select * from crane_imgtb WHERE category='Islamic' ORDER BY id DESC limit $new_load_start, $new_load_limit";
	?><script>document.getElementById("disp_isl").style="background:#F24378;color:#fff;";</Script><?php
}
	$run_get_post_img = mysqli_query($con,$get_post_img);
    while($row_get_post_img = mysqli_fetch_array($run_get_post_img))
{
	$post_text = $row_get_post_img['post_text'];
	$post_img = $row_get_post_img['image_url'];
	$studio_id = $row_get_post_img['studio_id'];
	$post_img_id = $row_get_post_img['id'];
	$post_name = $row_get_post_img['post_name'];
	$vid_thumbnail = $row_get_post_img['vid_thumbnail'];
	$post_text_style1 = $row_get_post_img['tmp_css'];
	$text_font1 = $row_get_post_img['font_css'];
	
	//$text_post_leng = strlen($post_text);
	$text_post_leng = substr($post_text,0,250);

	$file_type = explode('.',$post_img);
    $file_type = end($file_type);

	 $studio_user ="select * from studio_usertb where id='$studio_id' ";
	 $run_studio = mysqli_query($con,$studio_user);
	 while($row_studio = mysqli_fetch_array($run_studio))
	 {
		$my_id_studio = $row_studio['id'];
		$channel_name = $row_studio['channel_name'];
		$image_url = $row_studio['image_url'];
		$channel_description = $row_studio['description'];

if($post_text !==""){ $post_img ='kvtq'; ?>	 	 
<div id="post_image_div" class="post_image_div" >

	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">
	<div id="single_image_div" class="single_image_div"  >	
	<div class="post_text" id="<?php echo $post_text;?>" onClickk="zoom_main_post(this.id);" >
	<?php echo $text_post_leng; ?>
	</div>
    </div></a>
 	 
 <div id="img_post_header" class="img_post_header" >
	 <div class="userprofile" >
	 <?php
   
   if($image_url == 'avatar2.jpg' ){
?>
	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">

	   <!--img src="avatar_image/avatar2.jpg" class="user_profile_img"  /-->
	    <img src="main_icon/down_count.jpg" class="user_profile_img"  />

	   </a>
	 <?php }else{	?>
	 	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">
     <img src="main_icon/down_count.jpg" class="user_profile_img"  />
	  <!--img src="avatar_image/ <?php  echo $image_url	?>" class="user_profile_img"  /-->
	  </a>
	 <?php  }

	$get_like_img ="select * from liketb where post_id ='$post_img_id' And user_ip='$user_ip' ";
	$run_like_img = mysqli_query($con,$get_like_img);
	$check_like_img = mysqli_num_rows($run_like_img);

	$get_like_count ="select * from liketb where post_id ='$post_img_id' ";
	$run_like_count = mysqli_query($con,$get_like_count);
	$check_like_count = mysqli_num_rows($run_like_count);
	
	?>
	 <div style="float:right;width:37%;margin-right:2%;backgroundk:pink;">	
	<?php if($check_like_img >0){ ?> 
     <span id="unlk<?php echo $post_img_id;?>" ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>	   
    <span id="lk<?php echo $post_img_id;?>" style="display:none;" ><img src="main_icon/heart_b4_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>	   
 
	<?php  }else{	?>
		<span id="lk<?php echo $post_img_id;?>" ><img src="main_icon/heart_b4_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>  
	    <span id="unlk<?php echo $post_img_id;?>" style="display:none;"  ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>	 
	
	<?php } ?>
	
	<span id='like_output3<?php echo $post_img_id; ?>' style='float:right;max-width:30%;height:25px;line-height:30px;backgroundk:blue;font-size:0.8em;margin-top:8px;margin-right:3px;text-align:right;color:#349300;font-weight:bold;'>
	<?php if($check_like_count >0){ echo $check_like_count; } ?></span>
	</div>  	   
		   
	<div style="float:right;width:30%;margin-right:10px;backgroundk:white;">
	<a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>"><img src="main_icon/coment.png" width="35px" height="35px" style="float:right;margin-leftk:30%;margin-top:10px;" /></a>
	     	<span class="com_lebal_count" >
	
		<?php
	$disp_comment = "select * from commenttb where post_id='$post_img_id' ";
	$run_disp_comment = mysqli_query($con,$disp_comment);
	$check_comment = mysqli_num_rows($run_disp_comment);
	if($check_comment >0){
	echo $check_comment;
	}

	?>
	
	
	</span> 
	   </div>
	   </div> 
	   
	  <div class="user_name" ><?php echo $channel_name;?></div> 
	   <div class="channel_description" style="color:#505252;" ><?php echo $post_name;?></div>
	 </div>
</div>

 <?php }elseif($file_type=='mp4'){ ?>
	 
<div class="post_image_div" >	
	 
 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">	
 <div class="single_image_div" >
	    <!--video  class="post_image" >
		  <source src="post_image/<?php echo $post_img; ?>" type="video/mp4"> 
           <source src="post_image/<?php echo $post_img; ?>" type="video/ogg">
          Your browser does not support the video tag.
		</video-->
	<img src="main_icon/play_btn.png" class="play_btn_icon" id="<?php echo $post_img;?>" onClickk="zoom_main_post(this.id);" />
	<img src="thumb_image/<?php echo $vid_thumbnail; ?>" id="<?php echo $post_img;?>" onClickk="zoom_main_post(this.id);" class="post_image"  />
	</div>
	</a>
	 
	 <div id="img_post_header" class="img_post_header" >
	 <div class="userprofile" >
	 <?php
   
   if($image_url == 'avatar2.jpg' ){
?>
	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">
     <img src="main_icon/down_count.jpg" class="user_profile_img"  />
	 <!--img src="avatar_image/avatar2.jpg" class="user_profile_img"  /-->
	   </a>
	 <?php }else{	?>
	 	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">
     <img src="main_icon/down_count.jpg" class="user_profile_img"  />
	  <!--img src="avatar_image/ <?php  echo $image_url	?>" class="user_profile_img"  /-->
	  </a>
	 <?php  }	?>
	  
	<?php
	$get_like_img ="select * from liketb where post_id ='$post_img_id' And user_ip='$user_ip' ";
	$run_like_img = mysqli_query($con,$get_like_img);
	$check_like_img = mysqli_num_rows($run_like_img);
	$get_like_count ="select * from liketb where post_id ='$post_img_id' ";
	$run_like_count = mysqli_query($con,$get_like_count);
	$check_like_count = mysqli_num_rows($run_like_count);
	?>
	 <div style="float:right;width:37%;margin-right:2%;backgroundk:pink;">	
	<?php if($check_like_img >0){ ?> 
     <span id="unlk<?php echo $post_img_id;?>" ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>	   
    <span id="lk<?php echo $post_img_id;?>" style="display:none;" ><img src="main_icon/heart_b4_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>	   
 
	<?php  }else{	?>
		<span id="lk<?php echo $post_img_id;?>" ><img src="main_icon/heart_b4_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>  
	    <span id="unlk<?php echo $post_img_id;?>" style="display:none;"  ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>	 
	
	<?php } ?>
	
	<span id='like_output3<?php echo $post_img_id; ?>' style='float:right;max-width:30%;height:25px;line-height:30px;backgroundk:blue;font-size:0.8em;margin-top:8px;margin-right:3px;text-align:right;color:#349300;font-weight:bold;'>
	<?php if($check_like_count >0){ echo $check_like_count; } ?></span>
	</div>  	   
		   
	<div style="float:right;width:30%;margin-right:10px;backgroundk:green;">
	<a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>"><img src="main_icon/coment.png" width="35px" height="35px" style="float:right;margin-leftk:30%;margin-top:10px;" /></a>
	     	<span class="com_lebal_count" >
	
		<?php
	$disp_comment = "select * from commenttb where post_id='$post_img_id' ";
	$run_disp_comment = mysqli_query($con,$disp_comment);
	$check_comment = mysqli_num_rows($run_disp_comment);
	if($check_comment >0){
	echo $check_comment;
	}

	?>
	
	
	</span> 
  </div>
  </div> 
	  <div class="user_name" ><?php echo $channel_name;?></div> 
	  <div class="channel_description" style="color:#505252;" ><?php echo $post_name;?></div>
	 </div>
</div>
	  
	 <?php }else{ ?>
	 
<div id="div<?php echo $post_img_id;?>" class="post_image_div" >
  <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">	
  <div id="img_div<?php echo $post_img_id;?>" class="single_image_div" >
  <img src="post_image/<?php echo $post_img; ?>" id="<?php echo $post_img;?>" onClickk="zoom_main_post(this.id);" ondblclickk="close_zoom_main_post(this.id);" class="post_image" />
 
 </div></a>

 <div id="img_post_header<?php echo $post_img_id;?>" class="img_post_header" >
	 <div class="userprofile" >
	 <?php
   
   if($image_url == 'avatar2.jpg' ){
?>
	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">
   <img src="main_icon/down_count.jpg" class="user_profile_img"  />
	   <!--img src="avatar_image/avatar2.jpg" class="user_profile_img"  /-->
	   </a>
	 <?php }else{	?>
	 	 <a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>">
   <img src="main_icon/down_count.jpg" class="user_profile_img"  />
	  <!--img src="avatar_image/ <?php  echo $image_url	?>" class="user_profile_img"  /-->
	  </a>
	 <?php  }	?>
	  
	<?php
	$get_like_img ="select * from liketb where post_id ='$post_img_id' And user_ip='$user_ip' ";
	$run_like_img = mysqli_query($con,$get_like_img);
	$check_like_img = mysqli_num_rows($run_like_img);

	$get_like_count ="select * from liketb where post_id ='$post_img_id' ";
	$run_like_count = mysqli_query($con,$get_like_count);
	$check_like_count = mysqli_num_rows($run_like_count);

	
	?>
	 <div style="float:right;width:37%;margin-right:2%;backgroundk:pink;">	
	<?php if($check_like_img >0){ ?> 
    <span id="unlk<?php echo $post_img_id;?>" ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>	   
    <span id="lk<?php echo $post_img_id;?>" style="display:none;" ><img src="main_icon/heart_b4_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>	   
 
 <!--unlike_icon_span-->
	<!--span id='like_output2<?php echo $post_img_id; ?>' style='float:right;width:30%;height:25px;line-height:30px;backgroundk:blue;font-size:0.8em;margin-top:8px;margin-right:3px;text-align:right;color:#349300;font-weight:bold;display:none;'>Unliked</span-->  
	<?php  }else{	?>
		<span id="lk<?php echo $post_img_id;?>" ><img src="main_icon/heart_b4_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>  
	    <span id="unlk<?php echo $post_img_id;?>" style="display:none;"  ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>	 
	
	<!--like_icon_span-->
	
	<!--span id="like_icon_span2" ><img src="main_icon/lk2.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="like_post(this.id);" style="float:right;margin-top:5px;" /></span>
	<span id="unlike_icon_span2" stylek="display:none;" ><img src="main_icon/heart_like.png" width="35px" height="35px" id="<?php echo $post_img_id;?>" onClick="unlike_post(this.id);" style="float:right;margin-top:5px;" /></span>
	<div id="like_output<?php echo $post_img_id; ?>" style='float:right;width:30%;height:25px;line-height:30px;backgroundk:blue;font-size:0.8em;margin-top:8px;margin-right:3px;text-align:right;color:#349300;font-weight:bold;display:none;'>Like</div-->  	
	<?php } ?>
	
	<span id='like_output3<?php echo $post_img_id; ?>' style='float:right;max-width:30%;height:25px;line-height:30px;backgroundk:blue;font-size:0.8em;margin-top:8px;margin-right:3px;text-align:right;color:#349300;font-weight:bold;'>
	<?php if($check_like_count >0){ echo $check_like_count; } ?></span>
	</div>  	   
		   
	<div style="float:right;width:30%;margin-right:10px;backgroundk:yellow;">

	<a href="profile?sel=<?php echo $post_img;?>&pro=<?php echo $my_id_studio;?>&imi=<?php echo $post_img_id;?>&npost=<?php echo $post_name;?>" ><img src="main_icon/coment.png" width="35px" height="35px" style="float:right;margin-leftk:30%;margin-top:10px;" /></a>
  	<span class="com_lebal_count" >
	
	<?php
	$disp_comment = "select * from commenttb where post_id='$post_img_id' ";
	$run_disp_comment = mysqli_query($con,$disp_comment);
	$check_comment = mysqli_num_rows($run_disp_comment);
	if($check_comment >0){
	echo $check_comment;
	}

	?>
	
	</span> 
	   </div>
	   </div> 
	   
	  <div class="user_name" ><?php echo $channel_name;?></div> 
	   <div class="channel_description" style="color:#505252;" ><?php echo $post_name;?></div>
	 </div>
</div>
	  
	  <?php }	?>

	<?php 
} 
}
?>
</div>

</div><!--end of main_content_div-->

<div id="post_zoom_div" ondblclick="close_zoom_main_post()" class="post_zoom_div" >
<span onClick="close_zoom_main_post()" class="close_post_zoom_div_btn">x</span>
<div class="post_zoom_img_div">
 <img id="post_zoom_img" src="post_image/spin.png" class="post_zoom_img" />
 
 <video id="post_zoom_vid" class="post_zoom_img" style="display:none;"  >
 <source type="video/mp4"> 
 <source type="video/ogg">
 Your browser does not support the video tag.
 </video>
 
 <div id="post_zoom_text" class="post_zoom_img" style="display:none;" ></div>
 
 </div>
</div>

		<?php
		$get_total_data ="select * from crane_imgtb ";
		$run_total_data = mysqli_query($con,$get_total_data);
		$check_page = mysqli_num_rows($run_total_data);
		$pages = ceil($check_page / $new_load_limit);

       ?>
	 <?php if($page >1){ ?>
	  
		<a href="?page=<?php echo ($page-1); ?>">
		 <div class="btn_arrow_left">
  <img src="main_icon/bk_btn.jpg" class="prev_icon" /><span class="prev_lebal">Prev</span>
</div></a>
 <?php } ?>
 <?php
	 for($i=1;$i<=$pages;$i++){ ?>   
	<!--a href="?page=<?php //echo $i; ?>"><span class="" ><?php //echo $i; ?></span></a-->   
	 <?php  } ?>

 <?php if($i>$pages){ ?>		
 <a href="?page=<?php echo $page+1; ?>"><div class="btn_arrow_right">
<span class="left_lebal" >Next</span><img src="main_icon/rt_btn.png" class="next_icon" />
</div></a>
<?php } ?>

 <span id="show_ans" ></span>

 <span id="like_out" ></span>
<script>
/*
function zoom_main_post(zmp)
{  
    zoomed_img = zmp;
	extension = zoomed_img.split('.').pop();
	
	document.getElementById("post_zoom_div").style="display:block;";
	
if(extension =='png' || extension =='jpg' || extension =='jpeg'){ 

	document.getElementById('post_zoom_img').src='post_image/'+zoomed_img;
	document.getElementById('post_zoom_img').style="display:block;";
	document.getElementById('post_zoom_vid').style="display:none;";
	document.getElementById('post_zoom_text').style="display:none;";
	
}else if(extension =='mp4'){
	
	document.getElementById('post_zoom_vid').src='post_image/'+zoomed_img;
    document.getElementById('post_zoom_vid').play();
	document.getElementById('post_zoom_vid').style="display:block;";
	document.getElementById('post_zoom_img').style="display:none;";
	document.getElementById('post_zoom_text').style="display:none;";
	
}else{ 

	document.getElementById('post_zoom_text').innerHTML=zoomed_img;
	document.getElementById('post_zoom_text').style="padding:4px;color:#fff;display:block;";
	document.getElementById('post_zoom_vid').style="display:none;";
	document.getElementById('post_zoom_img').style="display:none;";
}

}
function close_zoom_main_post()
{
	document.getElementById("post_zoom_div").style="display:none;";	
	document.getElementById('post_zoom_vid').pause();
}*/

disp_quzi_lebal();
function disp_quzi_lebal()
{ 
	my_id = document.getElementById('my_id').value;
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?my_id="+my_id+"&&status=disp_quzi_lebal",false);
	xmlhpttp.send(null);

	document.getElementById('quzi_lebal_output').innerHTML =xmlhpttp.responseText;

	document.getElementById("qtn_div").style="display:none;";
	document.getElementById("check_qiz_comp_div").style="display:none;";
    document.getElementById("qtn_div_lebal").style="display:block;";
	
	document.getElementById("qtn_ans_btn").style="display:block;";
display_reward();
}
function show_quzi_qtn()
{

    my_id = document.getElementById('my_id').value;
	qtn_id = document.getElementById('qtn_id').value;
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?my_id="+my_id+"&&qtn_id="+qtn_id+"&&status=check_comp_qiz",false);
	xmlhpttp.send(null);
	document.getElementById('quzi_comp_output').innerHTML =xmlhpttp.responseText;
    check_qiz_comp_out = document.getElementById('check_qiz_comp').value;
	
	if(check_qiz_comp_out == 3){
		document.getElementById("qtn_div_lebal").style="display:none;";
		document.getElementById("check_qiz_comp_div").style="display:block;";

	}else{
	document.getElementById("qtn_div").style="display:block;";
    document.getElementById("qtn_div_lebal").style="display:none;";
    document.getElementById("check_qiz_comp_div").style="display:none;";	

	}

	
}
function get_new_qtn()
{
disp_quzi_lebal();	
}

var clear_be4_disp=5;
function compare_ans(ca)
{ 
 
	indi ='indi'+ca;
	chosen_ans =ca;
	//document.getElementById('chosen_ans_input').value=ca;
	document.getElementById(indi).style="display:block;";
    document.getElementById(clear_be4_disp).style="display:none;";	
	clear_be4_disp = indi;

	
}

function quzi_answer()
{
	my_id = document.getElementById('my_id').value;
	qtn_id = document.getElementById('qtn_id').value;
	correct_ans=document.getElementById('corr_ans').value;
	selected_ans = chosen_ans;
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?my_id="+my_id+"&&qtn_id="+qtn_id+"&&selected_ans="+selected_ans+"&&correct_ans="+correct_ans+"&&status=save_answer",false);
	xmlhpttp.send(null);
	//document.getElementById('quzi_lebal_output').innerHTML =xmlhpttp.responseText;
//	disp_quzi_lebal(); 
}

function show_cor_answer()
{ 
	taken_ans = chosen_ans;
	correct_ans=document.getElementById('corr_ans').value;
	my_id = document.getElementById('my_id').value;

	//taken_ans=document.getElementById('chosen_ans_input').value;
	//indi ='indi'+taken_ans;
	
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?taken_ans="+taken_ans+"&&correct_ans="+correct_ans+"&&my_id="+my_id+"&&status=show_cor_answer",false);
	xmlhpttp.send(null);
	document.getElementById('show_ans').innerHTML =xmlhpttp.responseText;
    ans_status = document.getElementById('chosen_ans_status').value; 

	if( ans_status == 1 ){
	//alert(qtn_id);
	//alert(correct_ans);
	document.getElementById("next_qtn_btn").style="display:block;";
	document.getElementById("qtn_ans_btn").style="display:none;";
	document.getElementById(taken_ans).style="display:block;background:green;";
    save_rwd_status();
	quzi_answer();
	
	}else{ 

	document.getElementById("next_qtn_btn").style="display:block;";
	document.getElementById("qtn_ans_btn").style="display:none;";
	document.getElementById(taken_ans).style="display:block;background:red;";
	save_rwd_status();
	quzi_answer();
	}
}

 var help_close =0;
function show_option_div()
{
	if(help_close ==0){
		
	document.getElementById("option_div").style="display:block;";
	document.getElementById("option_btn").style="background:#C60872;";
	help_close =1;
	}else{
	document.getElementById("option_div").style="display:none;";
	document.getElementById("option_btn").style="background:#ededed;";		
	help_close =0;	
	}
	
}

function show_option_div_mob()
{
	if(help_close ==0){ //alert(33);
		
	document.getElementById("option_div").style="display:block;";
	document.getElementById("option_btn").style="background:#C60872;";
	document.getElementById("help_option_div_mob").style="display:block;";
	document.getElementById("help_option_div_mob").style="display:block;";
	document.getElementById("main_body").style="overflow:hidden;";
	
	
	help_close =1;
	}else{ //alert(55);
	document.getElementById("option_div").style="display:none;";
	document.getElementById("option_btn").style="background:#ededed;";
    document.getElementById("help_option_div_mob").style="display:none;";
    document.getElementById("main_body").style="overflow:overflow:auto;";	
	help_close =0;	
	}	
}


function close_option_div_mob()
{
	document.getElementById("option_div").style="display:none;";
	document.getElementById("option_btn").style="background:#ededed;";	
	document.getElementById("help_option_div_mob").style="display:none;";
    document.getElementById("main_body").style="overflow:overflow:auto;";	
	
	help_close =0;		
}

function show_mob_sear_area()
{ 
	document.getElementById('main_log_home').style.display="none";
	document.getElementById('hi_title').style.display="none";
	document.getElementById('setting_btn_div').style.display="none";
	document.getElementById('mob_search_icon').style.display="none";
	
	document.getElementById('search_input_div').style.display="block";
	document.getElementById('search_input_div').style="display:block;display:flex;justify-content:space-evenly;align-items:center;";
	document.getElementById('search_input').focus();
	
}

function clear_sea_input_mob()
{
document.getElementById('search_input').value="";


	document.getElementById('main_log_home').style.display="block";
	document.getElementById('hi_title').style.display="block";
	document.getElementById('setting_btn_div').style.display="block";
	document.getElementById('mob_search_icon').style.display="block";
	
	document.getElementById('search_input_div').style.display="none";
	
}

function clear_sea_input_pc()
{
document.getElementById('search_input').value="";

	
}


/*
function show_more_data()
{	
	cur_load_limit=document.getElementById('cur_load_limit').value;
	cur_disp=document.getElementById('cur_disp').value;
	new_load_limit = Number(cur_load_limit)+32;
	//disp_post_img(new_load_limit);
	//alert(new_load_limit);
	
	new_load_limit = new_load_limit;//dpi;
	displaying_now = cur_disp;
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?new_load_limit="+new_load_limit+"&&displaying_now="+displaying_now+"&&status=disp_post_img",false);
	xmlhpttp.send(null);
	document.getElementById('disp_post_image_output').innerHTML =xmlhpttp.responseText;
	
	
}*/ 
/*
function disp_post_img(dpi)
{
	//document.getElementById('disp_all').addEventListener("click", function(){
		displaying_now = dpi;
		
		if(displaying_now=='all'){
			document.getElementById('disp_all').style="background:#F24378;";
			document.getElementById('disp_mot').style="background:#F870FF;";
			document.getElementById('disp_bib').style="background:#F870FF;";
			document.getElementById('disp_isl').style="background:#F870FF;";
			
			}
		if(
		displaying_now=='mot'){
			document.getElementById('disp_mot').style="background:#F24378;";
			document.getElementById('disp_all').style="background:#F870FF;";
			document.getElementById('disp_bib').style="background:#F870FF;";
			document.getElementById('disp_isl').style="background:#F870FF;";
		
		}
		if(displaying_now=='bib'){
			document.getElementById('disp_bib').style="background:#F24378;";
			document.getElementById('disp_mot').style="background:#F870FF;";
			document.getElementById('disp_all').style="background:#F870FF;";
			document.getElementById('disp_isl').style="background:#F870FF;";
			}
		if(displaying_now=='isl'){
			document.getElementById('disp_isl').style="background:#F24378;";
			document.getElementById('disp_mot').style="background:#F870FF;";
			document.getElementById('disp_all').style="background:#F870FF;";
			document.getElementById('disp_bib').style="background:#F870FF;";
			
			}
		
	//});
	//
	//alert(displaying_now);
	
	new_load_limit = 32;//dpi;
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?new_load_limit="+new_load_limit+"&&displaying_now="+displaying_now+"&&status=disp_post_img",false);
	xmlhpttp.send(null);
    document.getElementById('disp_post_image_output').innerHTML =xmlhpttp.responseText;

	

} */


/*/sart_search_nowk(); 
function sart_search_nowk()
{ 
	coming_search = document.getElementById('search_input').value;	
	//window.open("search.php?sech="+coming_search,"_self");
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?coming_search="+coming_search+"&&status=disp_search_subk",false);
	xmlhpttp.send(null);
	document.getElementById('disp_search_output').innerHTML =xmlhpttp.responseText;
	//document.getElementById('main_content_div').style.display="none"
	document.getElementById('main_search_div').style.display="block";
	
alert(256);
}*/

function sart_search_now()
{ 
	coming_search1 = document.getElementById('search_input').value;
   // coming_search2 = document.getElementById('search_input2').value;
    
	if(coming_search1 !==""){coming_search = coming_search1;}
	else if(coming_search2 !==""){coming_search = coming_search2;}
	
	window.open("search.php?sech="+coming_search,"_self");
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?coming_search="+coming_search+"&&status=disp_search_sub",false);
	xmlhpttp.send(null);
	document.getElementById('disp_search_output').innerHTML =xmlhpttp.responseText;
	document.getElementById('main_content_div').style.display="none"
	document.getElementById('main_search_div').style.display="block";
	
//alert(255);
}


function like_post(lp)
{
	postid = lp;
	like_out = "like_output"+postid;
	like_out4 = "like_output3"+postid;
	my_id = document.getElementById('my_id').value;
    cur_like_count = document.getElementById(like_out4).innerHTML;
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?my_id="+my_id+"&&postid="+postid+"&&status=insert_post_like",false);
	xmlhpttp.send(null);
	//document.getElementById(like_out).innerHTML =xmlhpttp.responseText;
	///document.getElementById('like_icon_span2').style="display:none;";
	///document.getElementById('unlike_icon_span2').style.display="block";

	document.getElementById(like_out4).innerHTML = Number(cur_like_count) + 1;
	disp_unlike_btn(postid);
}
function unlike_post(up)
{
	postid = up;
	like_out2 = "like_output2"+postid;
	like_out3 = "like_output3"+postid;
	my_id = document.getElementById('my_id').value;
	cur_like_count = document.getElementById(like_out3).innerHTML;
	
	xmlhpttp = new XMLHttpRequest();
	xmlhpttp.open("GET","auto_page.php?my_id="+my_id+"&&postid="+postid+"&&status=delete_post_like",false);
	xmlhpttp.send(null);
	//document.getElementById(like_out).innerHTML =xmlhpttp.responseText;
	///document.getElementById('unlike_icon_span').style="display:none;";
	///document.getElementById('like_icon_span').style.display="block";
	//alert(2);
	document.getElementById(like_out3).innerHTML = Number(cur_like_count) - 1;
	disp_like_btn(postid);
}


function disp_like_btn(dlb)
{
	unlk_btn = 'unlk'+dlb;
	lk_btn = 'lk'+dlb;
   document.getElementById(unlk_btn).style.display="none";
   document.getElementById(lk_btn).style.display="block";
}
function disp_unlike_btn(dub)
{
	unlk_btn = 'unlk'+dub;
	lk_btn = 'lk'+dub;
   document.getElementById(unlk_btn).style.display="block";
   document.getElementById(lk_btn).style.display="none";
}



function claim_award(){
document.getElementById('quzi_lebal_output').style.display="block";
document.getElementById('reward_div').style.display="none";

}



</script>
   <!-- Chart JS -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
    <!-- Chart JS Plugin for displaying text over chart -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-datalabels/2.1.0/chartjs-plugin-datalabels.min.js"></script>
    <!-- Script -->
<script src="spin_script.js"></script>



<script> 

/*

function get_rwd1(){

     window.googletag = window.googletag || { cmd: [] };

      let rewardedSlot;
      let rewardPayload;

      googletag.cmd.push(() => {
       // rewardedSlot = googletag.defineOutOfPageSlot(//"/22639388115/rewarded_web_example","/23019847102/sar_reward_ad",
		  
	rewardedSlot = googletag.defineOutOfPageSlot('/23019847102/sar_reward_ad', googletag.enums.OutOfPageFormat.REWARDED,)
   // googletag.pubads().enableSingleRequest();
    //googletag.enableServices();
		  
       // googletag.enums.OutOfPageFormat.REWARDED,
       // );

        // Slot returns null if the page or device does not support rewarded ads.
        if (rewardedSlot) {
          rewardedSlot.addService(googletag.pubads());

          googletag.pubads().addEventListener("rewardedSlotReady", (event) => {
            updateStatus("Rewarded ad slot is ready1.");

            document.getElementById("watchAdButton").onclick = () => {
              event.makeRewardedVisible();
              displayModal();
              updateStatus("Rewarded ad is activez.");
			  document.getElementById('modal').style.display="block";
			  document.getElementById('spin_shell_div').style.display="block";
			  
            };

            displayModal("reward", "Watch an ad to receive a special reward?");
          });

          googletag.pubads().addEventListener("rewardedSlotClosed", dismissRewardedAd);

          googletag.pubads().addEventListener("rewardedSlotGranted", (event) => {
            rewardPayload = event.payload;
				
			document.getElementById('modal').style.display="none";
            updateStatus("Reward granted.");
			save_rwd_status();
			display_reward();
			document.getElementById('spin-btn').click();
			show_spin_area();


          });

          googletag.pubads().addEventListener("slotRenderEnded", (event) => {
            if (event.slot === rewardedSlot && event.isEmpty) {
              updateStatus("No ad returned for rewarded ad slotk.");
            }
          });

          googletag.enableServices();
          googletag.display(rewardedSlot);
        } else {
          updateStatus("Rewarded ads are not supported on this page.");
        }
      });
}  
//////////////////////////////////////////////////////////////////////////////////////////////////
      function dismissRewardedAd() { 
//display_spin_position();
        if (rewardPayload) { 
          // User was granted a reward and closed the ad.
          displayModal(
            "grant",
            `You have been rewarded ${rewardPayload.amount} ${rewardPayload.type}!`,
          ); 

          rewardPayload = null;
		  
        } else {
          // User closed the ad without getting a reward.
          displayModal();
        }
        updateStatus("Rewarded ad has been closed.");

        if (rewardedSlot) {
          googletag.destroySlots([rewardedSlot]);
		  document.getElementById('modal').style.display="none";
        }
      }
      function displayModal(type = "", message = "") {
        const modal = document.getElementById("modal");
        modal.removeAttribute("data-type");

        if (type) {
          document.getElementById("modalMessage").textContent = message;
          modal.setAttribute("data-type", type);
        }
      }
      function updateStatus(message) {
        document.getElementById("status").textContent = message;
      }
	  
	/* //////////////////////////////////////////////above reward1/////////////////////////////////////////////////////////////////////////  
function get_rwd2(){ 
  
        //window.googletag = window.googletag || { cmd: [] };

      let rewardedSlot2;
      let rewardPayload2;

      googletag.cmd.push(() => {
        rewardedSlot2 = googletag.defineOutOfPageSlot(
          "/22639388115/rewarded_web_example",
		 //"/23019847102/kvt_reward_da",
          googletag.enums.OutOfPageFormat.REWARDED,
        );

        // Slot returns null if the page or device does not support rewarded ads.
        if (rewardedSlot2) {
          rewardedSlot2.addService(googletag.pubads());

          googletag.pubads().addEventListener("rewardedSlotReady", (event) => {
            updateStatus("Rewarded ad slot is ready.");

            document.getElementById("watchAdButton2").onclick = () => {
              event.makeRewardedVisible();
              displayModal();
              updateStatus("Rewarded ad is active.");
			  document.getElementById('modal').style.display="block"; 
            };

            displayModal("reward", "Watch an ad to receive a special reward?");
          });
          googletag.pubads().addEventListener("rewardedSlotClosed", dismissRewardedAd);

          googletag.pubads().addEventListener("rewardedSlotGranted", (event) => {
            rewardPayload2 = event.payload;
							
			document.getElementById('modal').style.display="none";
            updateStatus("Reward granted.");
			update_rwd_status2();
			display_reward();
          });

          googletag.pubads().addEventListener("slotRenderEnded", (event) => {
            if (event.slot === rewardedSlot2 && event.isEmpty) {
              updateStatus("No ad returned for rewarded ad slot.");
            }
          });

          googletag.enableServices();
          googletag.display(rewardedSlot2);
        } else {
          updateStatus("Rewarded ads are not supported on this page.");
        }
      });  
}	  

///////////////////////////////////////////////above reward1/////////////////////////////////////////////////////////////////////////  
function get_rwd3(){
  
      //  window.googletag = window.googletag || { cmd: [] };
      let rewardedSlot3;
      let rewardPayload3;

      googletag.cmd.push(() => {
        rewardedSlot3 = googletag.defineOutOfPageSlot(
          "/22639388115/rewarded_web_example",
		 //"/23019847102/kvt_reward_da",
          googletag.enums.OutOfPageFormat.REWARDED,
        );

        // Slot returns null if the page or device does not support rewarded ads.
        if (rewardedSlot3) {
          rewardedSlot3.addService(googletag.pubads());

          googletag.pubads().addEventListener("rewardedSlotReady", (event) => {
            updateStatus("Rewarded ad slot is ready.");

            document.getElementById("watchAdButton3").onclick = () => {
              event.makeRewardedVisible();
              displayModal();
              updateStatus("Rewarded ad is active.");
			  document.getElementById('modal').style.display="block";			  
            };

            displayModal("reward", "Watch an ad to receive a special reward?");
          });

          googletag.pubads().addEventListener("rewardedSlotClosed", dismissRewardedAd);

          googletag.pubads().addEventListener("rewardedSlotGranted", (event) => {
            rewardPayload3 = event.payload;
							
			document.getElementById('modal').style.display="none";
            updateStatus("Reward granted.");
			update_rwd_status3();
			display_reward();
          });

          googletag.pubads().addEventListener("slotRenderEnded", (event) => {
            if (event.slot === rewardedSlot3 && event.isEmpty) {
              updateStatus("No ad returned for rewarded ad slot.");
            }
          });

          googletag.enableServices();
          googletag.display(rewardedSlot3);
        } else {
          updateStatus("Rewarded ads are not supported on this page.");
        }
      }); 
}	 */ 
////////////////////////////////////////////////////////////////////////////////////////////////disp_quzi_lebal/ save_rwd_status show_cor_answer
display_reward();
function display_reward()
{	
	ipuser = document.getElementById('ipuser').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&status=display_reward",false);
	xmlhttp.send(null);
	document.getElementById("erorr_out").innerHTML =xmlhttp.responseText;
	
	reward1 = document.getElementById('reward1').value;
	reward2 = document.getElementById('reward2').value;
	reward3 = document.getElementById('reward3').value;
		if(reward1=='None'){ 
	document.getElementById('nxt_wrd_tym1').innerHTML="Ready";
	get_rwd1();
	}
	if(reward1=='On'){ 
	document.getElementById('rwd1_cm').style.display="block";
	document.getElementById('rwd1_cmd').style.display="none";
	document.getElementById('nxt_wrd_tym1').innerHTML="Ready";
	get_rwd1();
	}
	if(reward1=='Done'){ 
	document.getElementById('rwd1_cm').style.display="none";
	document.getElementById('rwd1_cmd').style.display="block";
	document.getElementById('nxt_wrd_tym1').innerHTML="";
	}
	if(reward2=='' || reward2=='None'){ 
	document.getElementById('rwd2_lck').style.display="block";
	document.getElementById('rwd2_cm').style.display="none";
	document.getElementById('rwd2_cmd').style.display="none";
	document.getElementById('reward_tip2').innerHTML="Gift";
	}
	if(reward2=='On'){ 
	var today = new Date();
    var cur_hour = today.getHours();
	online_time = document.getElementById('waiting_tym').value;
	if(cur_hour == online_time){
	document.getElementById('rwd2_lck').style.display="none";
	document.getElementById('rwd2_cm').style.display="block";
	document.getElementById('rwd2_cmd').style.display="none";
	document.getElementById('reward_tip2').innerHTML="Unlocked";
	document.getElementById('nxt_wrd_tym2').innerHTML="Ready";
	get_rwd2();
	}else{document.getElementById('nxt_wrd_tym2').innerHTML="Come in 3hr";}
	}
		if(reward2=='Done'){ 
	document.getElementById('rwd2_lck').style.display="none";
	document.getElementById('rwd2_cm').style.display="none";
	document.getElementById('rwd2_cmd').style.display="block";
	document.getElementById('reward_tip2').innerHTML="Unlocked";
	document.getElementById('nxt_wrd_tym2').innerHTML="";
	}
		if(reward3==''){ 
	document.getElementById('rwd3_lck').style.display="block";
	document.getElementById('rwd3_cm').style.display="none";
	document.getElementById('rwd3_cmd').style.display="none";
	document.getElementById('reward_tip3').innerHTML="Gift";
	}
		if(reward3=='On'){ 
	var today = new Date();
    var cur_hour = today.getHours();
	online_time = document.getElementById('waiting_tym').value;

	if(cur_hour == online_time){	
	document.getElementById('rwd3_lck').style.display="none";
	document.getElementById('rwd3_cm').style.display="block";
	document.getElementById('rwd3_cmd').style.display="none";
	document.getElementById('reward_tip3').innerHTML="Unlocked";
	document.getElementById('nxt_wrd_tym3').innerHTML="Ready";
	get_rwd3();
	}else{document.getElementById('nxt_wrd_tym3').innerHTML="Come in 3hr";}
	}
		if(reward3=='Done'){ 
	document.getElementById('rwd3_lck').style.display="none";
	document.getElementById('rwd3_cm').style.display="none";
	document.getElementById('rwd3_cmd').style.display="block";
	document.getElementById('reward_tip3').innerHTML="Unlocked";
	document.getElementById('nxt_wrd_tym3').innerHTML="";
	}
	
document.getElementById('quzi_lebal_output').style.display="none";
document.getElementById('reward_div').style.display="block";

}  
 
function save_rwd_status()
{	
	var today = new Date();
    var cur_hour = today.getHours();
	if(cur_hour < 22){next_rwd_tym = cur_hour+3;}
	if(cur_hour ==22){next_rwd_tym = 1}
	if(cur_hour ==23){next_rwd_tym = 2}
	if(cur_hour ==24){next_rwd_tym = 3}
	
	my_id = document.getElementById('my_id').value;
	ipuser = document.getElementById('ipuser').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&my_id="+my_id+"&&next_rwd_tym="+next_rwd_tym+"&&status=save_rwd_status",false);
	xmlhttp.send(null);
	//document.getElementById("erorr_out").innerHTML =xmlhttp.responseText; 
	//display_reward();
} 
function update_rwd_status2()
{
	var today = new Date();
    var cur_hour = today.getHours();
   // var cur_min = today.getMinutes();
    //var cur_sec = today.getSeconds();
	if(cur_hour < 22){next_rwd_tym = cur_hour+3;}
	if(cur_hour ==22){next_rwd_tym = 1}
	if(cur_hour ==23){next_rwd_tym = 2}
	if(cur_hour ==24){next_rwd_tym = 3}
	
	my_id = document.getElementById('my_id').value;
	ipuser = document.getElementById('ipuser').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&my_id="+my_id+"&&next_rwd_tym="+next_rwd_tym+"&&status=update_rwd_status2",false);
	xmlhttp.send(null);
	//document.getElementById("erorr_out").innerHTML =xmlhttp.responseText; 
} 

function update_rwd_status3()
{
	my_id = document.getElementById('my_id').value;
	ipuser = document.getElementById('ipuser').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&my_id="+my_id+"&&status=update_rwd_status3",false);
	xmlhttp.send(null);
	//document.getElementById("erorr_out").innerHTML =xmlhttp.responseText; 
}


function show_spin_area()
{ 
	//document.getElementById('spin_shell_div').style.display="block";
	document.getElementById('spin_show_btn').style.display="none";
	document.getElementById('spin_now_btn').style.display="block";
	get_rwd1(); 

}
function close_spin_area()
{
	document.getElementById('spin_shell_div').style.display="none";
}	



display_spin_position();
function display_spin_position()
{	
	ipuser = document.getElementById('ipuser').value;
	my_id = document.getElementById('my_id').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&my_id="+my_id+"&&status=display_spin_position",false);
	xmlhttp.send(null);
	document.getElementById("pig").innerHTML =xmlhttp.responseText;
	cur_spin_tmp = document.getElementById('spin_tmp_done').value;
	document.getElementById('spin_temps2').innerHTML =cur_spin_tmp;

}

function cliam_spin_reward()
{ 
	close_spin_area();
	document.getElementById('reward_out').style.display="block";
	document.getElementById('reward_out').innerHTML="Rewards received";
	
	ipuser = document.getElementById('ipuser').value;
	my_id = document.getElementById('my_id').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&my_id="+my_id+"&&status=insert_spin_trans",false);
	xmlhttp.send(null);
	document.getElementById("pig").innerHTML =xmlhttp.responseText;
	display_spin_chances();
	document.getElementById('spin_now_btn').style.display="none";
	
}


display_spin_chances();
function display_spin_chances()
{	
	ipuser = document.getElementById('ipuser').value;
	my_id = document.getElementById('my_id').value;
	xmlhttp = new XMLHttpRequest();
	xmlhttp.open("GET","auto_page.php?ipuser="+ipuser+"&&my_id="+my_id+"&&status=display_spin_chances",false);
	xmlhttp.send(null);
	document.getElementById("pig").innerHTML =xmlhttp.responseText;
	spin_tmp_status = document.getElementById('spin_tmp_status').value;
	
	cur_spin_tmp = document.getElementById('spin_tmp_done').value;
	document.getElementById('spin_tmp_status').innerHTML =cur_spin_tmp;
	document.getElementById('reward_out').style.display="block";

	if(spin_tmp_status ==1){
		
	document.getElementById('spin_img_help').style.display="block";
	document.getElementById('spin_help_btn').style.display="block";
		document.getElementById('spin_show_btn').style.display="none";
	document.getElementById('spin_img').style.display="none";
	
	}else{
		
	document.getElementById('spin_img_help').style.display="none";
	document.getElementById('spin_help_btn').style.display="none";
		document.getElementById('spin_show_btn').style.display="block";
	document.getElementById('spin_img').style.display="block";
	}

}






</script>


</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit