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/social/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

<?php
include('db.php');
session_start();

?>

<head>
<link rel="icon" type="image/png" href="http://craneblue.com/main_icon/crane log.png" />
<title>videos posts craneblue social</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/index.css" />
<meta name="google-site-verification" content="OtqNRrwy4juAQilbIB3LnDY3HZVSfFfABJktah8MHO4" />

</head>


<body id="main_body" >

<?php

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

}else{$my_id = 'user';}

?>

<input type="text" id="my_id" value="<?php echo"$my_id";?>" style="display:none;" />
<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"];
$country = $geo["geoplugin_countryName"];
//echo" mmm $user_ip";

?>
</div>
<input type="text" id="user_ip" value="<?php echo"$user_ip";?>" style="display:none;" />
<input type="text" id="user_city" value="<?php echo"$city";?>" style="display:none;" />
<input type="text" id="user_country" value="<?php echo"$country";?>" style="display:none;" />

<div class="home_header_area" >

<div class="home_main_title" >Craneblue</div>



<!--a href="upload_kvt.php" ><button >Upload</button></a-->
<div id="menu_area_pc_btn" onClick="show_menu_area_pc();"  class="menu_area_pc_btn">

<img idk="main_menu_icon_mob" src="main_icons/down btn.png" class="pc_menu_img" />


</div>


<!--div class="menu_area_helping_div">

<img onClick="show_menu_area();" id="main_menu_icon_mob" src="main_icons/menu_icon.png" class="main_menu_icon_mob" />
<img onClick="close_menu_area();" id="cancel_menu_icon" src="main_icons/cancel_menu_icon.png" class="cancel_menu_icon" />

</div-->



<div id="home_pc_div" class="home_pc_div" >
<div class="home_pc_div_tile">Controls</div>

<!--div idk="home_mob_div" class="home_pc_div"-->

<a href="" ><button class="home_btn_pc" >Home</button></a>
<!--a href="player.php" ><button class="home_btn_pc" >Player</button></a-->
<button onClick="show_post_area();" class="home_btn_pc" >Posts</button>
<?php if(isset($_SESSION['id'])){ ?>
<button onClick="show_post_input_div();" class="home_btn_pc" >New Post</button>
<?php }else{ ?>
<a href="login" ><button onClick="show_post_input_div();" class="home_btn_pc" >New Post</button></a>
<?php } ?>

<!--a href="members.php"><button onClickk="show_members_area();" class="home_btn_pc" >Members</button></a-->
<!--a href="upload_kvt.php" ><button class="home_btn_pc" >New Member</button></a-->

<a href="studio.php" ><button onClickk="show_post_area();" class="home_btn_pc" >Studio</button></a>

<!--a href="studio2.php" ><button onClickk="show_post_area();" class="home_btn_pc" >Tv Studio</button></a-->

<?php

if(isset($_SESSION['id']))
{
		$my_id = $_SESSION['id'];
		//$user_email = $_SESSION['email'];
		//$user_name= $_SESSION['name'];
//echo"$my_id";
?>
<a href="logout.php" ><button class="home_btn_pc" >Logout</button></a>

<?php }else{ ?>
<a href="login.php" ><button class="home_btn_pc" >Login</button></a>
<?php } ?>

<!--/div-->


</div>




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

<div class="home_header_postion"></div>


<!--div class="home_mob_div_helping"  >

<div id="home_mob_div" class="home_mob_div">

<div class="home_pc_div_tile">Controls</div>

<!--div idk="home_mob_div" class="home_pc_div"-k->

<a href="" ><button class="home_btn_pc" >Home</button></a>
<button onClick="show_post_area();" class="home_btn_pc" >Posts</button>

<?php if(isset($_SESSION['id'])){ ?>
<button onClick="show_post_input_div();" class="home_btn_pc" >New Post</button>
<?php }else{ ?>
<a href="login" ><button onClick="show_post_input_div();" class="home_btn_pc" >New Post</button></a>
<?php } ?>
<!--a href="members.php"><button onClickk="show_members_area();" class="home_btn_pc" >Members</button></a-->
<!--a href="upload_kvt.php" ><button class="home_btn_pc" >New Member</button></a-k->

<a href="studio.php" ><button onClickk="show_post_area();" class="home_btn_pc" >Studio</button></a>

<?php

if(isset($_SESSION['id']))
{
		$my_id = $_SESSION['id'];
		//$user_email = $_SESSION['email'];
		//$user_name= $_SESSION['name'];
//echo"$my_id";
?>
<a href="logout.php" ><button class="home_btn_pc" >Logout</button></a>

<?php }else{ ?>
<a href="login.php" ><button class="home_btn_pc" >Login</button></a>
<?php } ?>



<!--a href="" ><button class="home_btn_mob" >Home</button></a>
<button onClick="show_post_area();" class="home_btn_mob" >Posts</button>
<!--a href="upload_kvt.php" ><button class="home_btn_mob" >New Member</button></a->
<a href="members.php"><button onClickk="show_members_area();" class="home_btn_mob" >Members</button></a>

<?php

if(isset($_SESSION['id']))
{
		$my_id = $_SESSION['id'];
		//$user_email = $_SESSION['email'];
		//$user_name= $_SESSION['name'];
//echo"$my_id";
?>
<a href="logout.php" ><button class="home_btn_mob" >Logout</button></a>

<?php }else{ ?>
<a href="login.php" ><button class="home_btn_mob" >Login</button></a>
<?php } ?>

<button onClick="close_menu_area();" class="home_btn_mob" >Close</button-k->
</div>

</div-->

<script>



</script>



<div class="tips_header_div" >

<!--div class="tips_header_sub_div" >At Craneblue We Are Our Own Brother’s Keeper.</div>
<div>You Will Encourage Others.</div>
<div>You Will Be Encouraged.</div> 
<div>Together We Can.</div-->
<!--Today's Movie-->
Today's Movie
</div>


<div class="tips_header_div_tv" >



<div class="main_user_tv" >

<!--div id="" class="main_user_tv_top_text" >SnTv</div-->

<div id="user_tv_video_curr_duration_output" classk="main_user_tv" ></div>

<div id="user_tv_display_active_video_output" classk2="main_user_tv" ></div>

<div class="main_user_tv_top_text" >CB</div>

<div id="main_user_tv_output" class="main_user_tv_output"  ></div>


<div id="tv_button_div" class="tv_button_div" >

<!--button id="main_user_tv_on_btn2" class="play_pause_tv_btn" onClick="playing_main_user_tv_on_btn1();" >on</button-->
<!--button id="main_user_tv_on_btn1" class="play_pause_tv_btn" onClick="playing_main_user_tv_on_btn1();"  style="display:block;" >l-></button-->

<div id="play_paused_video_btn" class="play_pause_tv_btn" style="display:none;" ><img src="main_icons/play2.png" width="100%" class="player_play_btn" /></div>

<div id="pause_tv__btn" class="play_pause_tv_btn" style="display:none;" ><img src="main_icons/pause2.png" width="100%" class="player_pause_btn" /></div>

<div id="live_tv_btn" class="live_tv_btn" onClick="reload_main_player();" style="displayk:none;color:red;background:#fff;" >Live</div>

<div id="go_main_tv_full_screen" class="full_screen_btn" onClick="main_tv_full_screen();"  >[ ]<!--img src="main_icons/exit.png" width="70%" class="player_pause_btn" /--></div>



<!--div id="main_user_tv_output2" class="main_user_tv_output"  ></div>main_user_tv_off_btn
<!--div id="main_user_tv_bottom_text" stylek="float:left;width:100%;background:blue;color:#fff;positionk:fixed;" ></div-->


</div>


<script>

const playing_online_viedo = document.createElement('VIDEO');

main_user_tv_player();
function main_user_tv_player()
{
	   pause_tv = document.getElementById('pause_tv__btn');
	   pause_tv.addEventListener('click',pause_main_user_tv,false);
	   main_control_show = document.getElementById('main_user_tv_output');
	   //main_control_show.addEventListener('click',control_main_show,false); 
	   
	   play_paused_vid_btn = document.getElementById('play_paused_video_btn');
	   play_paused_vid_btn.addEventListener('click',play_paused_video,false);	   
	   
	   xmlhttp = new XMLHttpRequest();
	   xmlhttp.open("GET","auto_page_tv.php?status=get_video_curr_duration",false);
       xmlhttp.send(null);
	   document.getElementById('user_tv_video_curr_duration_output').innerHTML =xmlhttp.responseText;
	   
	   video_active_duration = document.getElementById('video_active_duration').value;	

	   xmlhttp = new XMLHttpRequest();
	   xmlhttp.open("GET","auto_page_tv.php?status=main_tv_active_video_url",false);
       xmlhttp.send(null);
	   document.getElementById('user_tv_display_active_video_output').innerHTML =xmlhttp.responseText;
	   
	   now_playing_video_url = document.getElementById('online_active_video').value;

	   document.getElementById('main_user_tv_output').innerHTML="";
	   //const playing_online_viedo = document.createElement('VIDEO');

    playing_online_viedo.style="width:100%;height:100%;max-heightk:100%;";
	playing_online_viedo.setAttribute("src","playing_video/"+now_playing_video_url);
	//playing_online_viedo.autoplay =true;
	playing_online_viedo.controls = false;
	playing_online_viedo.currentTime = video_active_duration;

playing_online_viedo.addEventListener('dblclick',show_controls_onfullscreen,false);
playing_online_viedo.addEventListener('click',pause_video_onfullscreen,false);




    document.getElementById('main_user_tv_output').style.display="block";
	mag = document.getElementById('main_user_tv_output').appendChild(playing_online_viedo);
	
	
	
	   // playing_online_viedo.play();
	   playing_online_viedo.addEventListener('timeupdate', function(){
	   curr_dur = playing_online_viedo.currentTime;
	   vid_online_duration_mupercentage = Math.floor(curr_dur / playing_online_viedo.duration * 100);

		
	if(vid_online_duration_mupercentage == 100 ){
		main_user_tv_player();
		//playing_main_user_tv_on_btn1();  
	}	
 document.getElementById('main_user_tv_output').style.display="block";


});
	
	
		 // document.getElementById('main_user_tv_on_btn1').style.display="none";
	  document.getElementById('play_paused_video_btn').style.display="block";
	 // document.getElementById('pause_tv__btn').style.display="block";
	      document.getElementById('go_main_tv_full_screen').style.display="block";
	
	
	
	   
function pause_main_user_tv()
{
	//clearInterval(reflesh_player);
	playing_online_viedo.pause(); 
//document.getElementById('live_tv_btn').style.display="block";
//document.getElementById('main_user_tv_on_btn1').style.display="none";
document.getElementById('pause_tv__btn').style.display="none";
document.getElementById('play_paused_video_btn').style.display="block";

}

   function play_paused_video()
   {

	  // 
	   playing_online_viedo.play();
	  // document.getElementById('main_user_tv_on_btn1').style.display="none";
	   document.getElementById('play_paused_video_btn').style.display="none";	
	   document.getElementById('live_tv_btn').style.display="block";	
	   document.getElementById('pause_tv__btn').style.display="block";	
	   
   }


function show_controls_onfullscreen()
{
	
closeFullscreen();
//playing_online_viedo.style="touch-action: none;";
}

function pause_video_onfullscreen()
{ 

		if(playing_online_viedo.paused == true){play_paused_video();}else{pause_main_user_tv();}




}

 
katende = playing_online_viedo;

}

function reload_main_player()
{
	main_user_tv_player();
	katende.play();
	document.getElementById('play_paused_video_btn').style.display="none";	
	document.getElementById('live_tv_btn').style.display="block";	
	document.getElementById('pause_tv__btn').style.display="block";	

}

	function main_tv_full_screen(){

  if (katende.mozRequestFullScreen) { /* Firefox */
    katende.mozRequestFullScreen();
	}else if (katende.requestFullscreen) {/* chrome */
    katende.requestFullscreen();
  }
  else if (katende.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
    katende.webkitRequestFullscreen();
  } else if (katende.msRequestFullscreen) { /* IE/Edge*/
    katende.msRequestFullscreen();
  }
						
}

var document=katende;

	function closeFullscreen() {
		if ( document.mozCancelFullScreen){
			document.mozCancelFullScreen();

  } if (katende.exitFullscreen) {
    katende.exitFullscreen();
  } 
  else if (katende.mozCancelFullScreen) {
            katende.mozCancelFullScreen();
  }
  
  else if (katende.webkitExitFullscreen) { /* Safari */
    katende.webkitExitFullscreen();
  } else if (katende.msExitFullscreen) { /* IE11 */
    katende.msExitFullscreen();
  }else{
	  
	  
	  if (katende.mozRequestFullScreen) { /* Firefox */
    katende.mozRequestFullScreen();
	}else if (katende.requestFullscreen) {/* chrome */
    katende.requestFullscreen();
  }
  else if (katende.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
    katende.webkitRequestFullscreen();
  } else if (katende.msRequestFullscreen) { /* IE/Edge*/
    katende.msRequestFullscreen();
  }
	  
	  }
}
	




function insert_tv_view()
{
	   my_id = document.getElementById('my_id').value;
       user_ip = document.getElementById('user_ip').value;
       user_city = document.getElementById('user_city').value;
       user_country = document.getElementById('user_country').value; 
	   
	   xmlhttp = new XMLHttpRequest();
       xmlhttp.open("GET","auto_page_tv.php?my_id="+my_id+"&user_ip="+user_ip+"&user_city="+user_city+"&user_country="+user_country+"&status=insert_tv_view",false);
       xmlhttp.send(null);
	   //document.getElementById('user_tv_display_active_video_output').innerHTML =xmlhttp.responseText;
	
}



</script>

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




</div>




<!--div  onmousedown="close_menu_area();" class="main_banner_div" style="displayk:none;">

<div class="single_banner_div">

<?php

$get_banner ="select * from tsw_bannertb";
$run_get_banner = mysqli_query($con,$get_banner);
while($row_get_banner = mysqli_fetch_array($run_get_banner))
{
	$main_title = $row_get_banner['main_title'];
	$main_banner = $row_get_banner['banner_url'];

?>
<img src="main_banner_images/<?php echo"$main_banner"; ?>" width="100%" height="100%" style="display:block;margin-left:auto;margin-right:auto;"/>
<?php } ?>

</div>
<!--div class="single_banner_div"></div-k->


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




<!--div id="member_container"  onClick="close_menu_area();" class="member_container">

<div class="members_title" >Craneblue</div>



<?php
$get_member = "select * from tsw_member ORDER BY RAND()";
$run_get_memeber = mysqli_query($con,$get_member);
while($row_get_member = mysqli_fetch_array($run_get_memeber))
{
	$members_name = $row_get_member['name'];
	$members_duty = $row_get_member['program'];
	$members_image = $row_get_member['image_url'];

?>
<div class="single_member_div">
<img src="members_img/<?php echo"$members_image"; ?>" width="80%" height="320" style="display:block;margin-left:auto;margin-right:auto;"/>

<div class="single_name_div">Name:<?php echo" "; echo"$members_name"; ?></div>
<div class="single_name_div">Program:<?php echo" "; echo"$members_duty"; ?></div>
</div>
<?php } ?>



<!--div class="single_member_div"></div>
<div class="single_member_div"></div>
<div class="single_member_div"></div-k->

</div-->




<div id="texarea_shell_div" class="texarea_shell_div">


</div>

<div id="texarea_shell_div2" class="texarea_shell_div2">

<div class="create_post_div" >

<div class="create_post_title" >Create a post
<button onClick="close_main_new_post();" class="close_main_new_post_div" >X</button></div>

<textarea id="new_post_input" class="post_textarea" onKeyup="auto_grow_new_post();" onKeypress="auto_grow_new_post();" style="resize:none"></textarea>
<!--button onClick="check_java();"style="width:80px;height:40px;">check jave</button-->

<form method="post" enctype="multipart/form-data" >
<!--textarea id="new_post_input" class="new_post_input" placeholder="Write a Post..." ></textarea-->
<input type="file" id="post_file" onchange="show_post_file_name();" style="display:none;" />
</form>

<div class="new_post_btn_div" >

<button onClick="document.getElementById('post_file').click();" class="photo_video_btn">Photo/Video</button>
<div id="post_file_name_output" class="post_file_name_output"></div>
<button onmousedown="feed_textarea();" onClick="publish_new_post();" class="post_send_btn">Publish</button>

</div>

</div>

</div>

















<div id="post_container" class="post_container">

<!--div id="main_new_post_div"  onmousedown="close_menu_area();" class="main_new_post_div" stylek="display:none;" >

<button onClick="close_main_new_post();" class="close_main_new_post_div" >X</button>

<?php if(isset($_SESSION['id'])){ ?>

<!--div idk="new_post_input" class="kvt_textarea" type="textarea" role="textbox" contenteditable  style="font-weight:none; " ></div-k->

<div classk="texarea_helping_div">

<textarea idk="post_textarea" classk="post_textarea" style="resize:none"></textarea>

<form method="post" enctype="multipart/form-data" >
<!--textarea id="new_post_input" class="new_post_input" placeholder="Write a Post..." ></textarea-k->
<input type="file" id="post_file" onchange="show_post_file_name();" style="display:none;" />
</form>
</div>
<?php }else{ ?>

<a href="login.php"><form method="post" enctype="multipart/form-data" >
<textarea class="new_post_input" placeholder="Write a Post..." ></textarea>
<input type="file" id="post_file" onchange="show_post_file_name();" style="display:none;" />
</form></a>

<?php } ?>


<div class="new_post_btn_div" >

<button onClick="document.getElementById('post_file').click();" class="photo_video_btn">Photo/Video</button>
<div id="post_file_name_output" class="post_file_name_output"></div>
<button onmousedown="feed_textarea();" onClick="publish_new_post();" class="post_send_btn">Publish</button>

<!--button onClick="show_height();" class="post_send_btn">Shower</button-k->

</div>

</div-->

<!--div class="test_kvt"-->

<div class="main_post_display_output" id="main_post_display_output"></div>

<!--/div-->


</div>

<div id="upload_help_div" class="upload_help_div" >Post Uploading....</div>

<!--textarea id="kv_textarea" rows="1" cols="60" onKeyupk="auto_grow(this);" onKeypressk="auto_grow(this);" class="textarea_auto" stylek="resize:none;overflow:hidden;" >
so here
</textarea-k->

<button onClick="jop();" >for space </button-->
<input id="helping_show_comm" value="1" class="helping_show_comm" />

<script>





</script>


<script>

var btn_switcher =0;
function show_menu_area_pc()
{
	if(btn_switcher ==0){
	document.getElementById('home_pc_div').style.display="block";
	document.getElementById('menu_area_pc_btn').style="background:#E48AB0";
	
	btn_switcher =1;
	}else{
	document.getElementById('home_pc_div').style.display="none";	
	document.getElementById('menu_area_pc_btn').style="background:white";
	btn_switcher =0;
}
}



function show_menu_area()
{
document.getElementById('home_mob_div').style.display="block";
document.getElementById('main_menu_icon_mob').style.display="none";	
document.getElementById('cancel_menu_icon').style.display="block";

}

/*function close_menu_area()
{
document.getElementById('home_mob_div').style.display="none";
document.getElementById('main_menu_icon_mob').style.display="block";
document.getElementById('cancel_menu_icon').style.display="none";	
}*/


function show_members_area()
{
document.getElementById('member_container').style.display="block";
document.getElementById('post_container').style.display="none";	
document.getElementById('home_mob_div').style.display="none";
document.getElementById('main_menu_icon_mob').style.display="block";
document.getElementById('cancel_menu_icon').style.display="none";	
}

function show_post_area()
{
document.getElementById('post_container').style.display="block";
document.getElementById('member_container').style.display="none";
document.getElementById('home_mob_div').style.display="none";
document.getElementById('main_menu_icon_mob').style.display="block";
document.getElementById('cancel_menu_icon').style.display="none";			
}

var logic = 1;
function show_comments(sc)
{
  post_id = sc;
  post_comment_display ='post_comment_display_div'+sc;
    
    helping_show_comm = document.getElementById('helping_show_comm').value;
		
		show_comm_helping ='post_comment_display_div'+helping_show_comm;
	
	//alert(logic);
	
if(logic ==1){
	document.getElementById(post_comment_display).style.display="block";
	logic = 2;
}else{
	
	if(post_id == helping_show_comm){

		document.getElementById(show_comm_helping).style.display="none";
         logic = 1;
	}else{
		document.getElementById(show_comm_helping).style.display="none";
		document.getElementById(post_comment_display).style.display="block";
			logic = 2;
		}
}
 document.getElementById('helping_show_comm').value=post_id;
}

function auto_grow_new_post()
{ 
document.getElementById('new_post_input').addEventListener("input", function(){
	this.style.height ='inherit';
	var height = this.scrollHeight;
	this.style.height = height+"px";
	
	
} );
	//grow_now.style.height = "5px";
	//grow_now.style.height=(grow_now.scrollHeight)+"px";
}

function auto_grow_new_coment(agnc)
{
	
new_comment_input ='new_comment_input'+agnc;
document.getElementById(new_comment_input).addEventListener("input", function(){
	this.style.height ='inherit';
	var height = this.scrollHeight;
	this.style.height = height+"px";
	
//alert(agnc);	
} );

}




function show_post_input_div()
{
	/*document.getElementById('main_new_post_div').style.display="block";
	document.getElementById('home_mob_div').style.display="none";
	document.getElementById('main_menu_icon_mob').style.display="block";
    document.getElementById('cancel_menu_icon').style.display="none";
	window.scrollTo(0,0);*/

	document.getElementById('texarea_shell_div').style.display="block";
	document.getElementById('texarea_shell_div2').style.display="block";
	document.getElementById('texarea_shell_div2').style="display:flex;flex-direction:column;justify-content:center;align-items:center";
}

function close_main_new_post()
{
	document.getElementById('texarea_shell_div').style.display="none";
	document.getElementById('texarea_shell_div2').style.display="none";

}


function show_height()
{ //alert(33);

textarea_height = document.getElementById('kvt_textarea').offsetHeight;
//alert(textarea_height);

		var today = new Date();
        var cur_year = today.getFullYear();	
        var cur_month = (today.getMonth()+1);
        var cur_day = today.getDate();		
		
}


function show_like_tip(slt)
{
	post_view_tip ='post_view_tip'+slt;
	document.getElementById(post_view_tip).style.display="block";
	setTimeout(function(){ document.getElementById(post_view_tip).style.display="none";}, 1500);
//	alert(slt);
}
function hide_like_tip()
{
//document.getElementById(post_view_tip).style.display="none";

}	

function save_post_like(spl)
{
 post_id = spl;
 my_id = document.getElementById('my_id').value;
 user_ip = document.getElementById('user_ip').value;
 user_city = document.getElementById('user_city').value;
 user_country = document.getElementById('user_country').value; 

  xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","auto_page.php?my_id="+my_id+"&user_ip="+user_ip+"&post_id="+post_id+"&user_city="+user_city+"&user_country="+user_country+"&status=insert_post_like",false);
  xmlhttp.send(null);

  //document.getElementById('main_post_display_output').innerHTML =xmlhttp.responseText;
}

function show_reply_area_level_one(sralo)
{
	comment_reply_div ="comment_reply_div"+sralo;
	document.getElementById(comment_reply_div).style.display="block";
}

function hide_reply_area_level_one(hralo)
{
	comment_reply_div ="comment_reply_div"+hralo;
	document.getElementById(comment_reply_div).style.display="none";
	
}

function clear_placeholder_reply()
{
	document.getElementById('place_holder_reply').style.display="none";
	//alert(456);
}

function insert_comment_reply_level_one(icrlo)
{
 comment_id = icrlo;
 com_reply_input ="new_com_reply_input"+icrlo
 my_id = document.getElementById('my_id').value;
 //reply_comment = document.getElementById(com_reply_input).value;
 reply_comment = document.getElementById(com_reply_input).innerHTML;

 user_city = document.getElementById('user_city').value;
 user_country = document.getElementById('user_country').value; 

  xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","auto_page.php?my_id="+my_id+"&reply_comment="+reply_comment+"&comment_id="+comment_id+"&user_city="+user_city+"&user_country="+user_country+"&status=insert_reply_comm_level_one",false);
  xmlhttp.send(null);

  document.getElementById(com_reply_input).value="";
     display_main_post();
document.getElementById(comment_reply_div).style.display="block";


  //document.getElementById('main_post_display_output').innerHTML =xmlhttp.responseText;

  


    
   
}


 display_main_post();
function display_main_post()
{

  my_id = document.getElementById('my_id').value;

  xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","auto_page.php?my_id="+my_id+"&status=display_main_post",false);
  xmlhttp.send(null);

  document.getElementById('main_post_display_output').innerHTML =xmlhttp.responseText;
  
  // comm_id = document.getElementById('comm_id').value;
  
 //display_main_comment(comm_id);
 id_post = document.getElementById('id_post').value;
 //document.addEventListener('load',load_packages(id_post),false );
 
 
 
 
}

///////////////////////////////////////////////////////////////////////////////

function load_packages(lp)
{
	 var current_video =lp;
	 
 	 video_playing = current_video;    
	 

}


// var vid_playing = document.getElementById('playing_video');playing_video
 //var vid_duration_lebal = document.getElementById('video_duration_lebal');
 //var vid_current_lebal = document.getElementById('video_current_lebal');
 
 function stop_prevous_vid()
 {
	 come_on = video_playing;
	
	 var playing_vid = 'playing_video'+video_playing;
	 var play_now = 'play_now'+video_playing;
	 var play_now2 = 'play_now2'+video_playing;
	 
	 var pause_now ='pause_now'+video_playing;
	 var pause_now2 ='pause_now2'+video_playing;
	 var seek_value_div = 'seek_value_div'+video_playing;
	 var volume_seek_value ='volume_seek_value'+video_playing;

	 var vid_playing = document.getElementById(playing_vid);
	 vid_playing.pause();
	 
	 document.getElementById(pause_now).style.display="none";
	 document.getElementById(pause_now2).style.display="none";
	 
     document.getElementById(play_now).style.display="block";
	 document.getElementById(play_now2).style.display="block";
	 document.getElementById(seek_value_div).style.display="none";
	 document.getElementById(volume_seek_value).style.display="none";

 }

function start_playing(sp)
{ 
     var playing_vid = 'playing_video'+video_playing;
	 var play_now = 'play_now'+video_playing;
	 var play_now2 = 'play_now2'+video_playing;
	 
	 var pause_now ='pause_now'+video_playing;
	 var pause_now2 ='pause_now2'+video_playing;
	 
	 var seekbar_out ='seekbar_out'+video_playing;
	 var seekbar_in ='seekbar_in'+video_playing;
	 var seekbar_value ='seekbar_value'+video_playing;
	 var video_current_lebal ='video_current_lebal'+video_playing;
	 var video_duration_lebal ='video_duration_lebal'+video_playing;
	 var seek_value_div = 'seek_value_div'+video_playing;
	 var volume_seek_value ='volume_seek_value'+video_playing;

	var vid_playing = document.getElementById(playing_vid);
	var vid_duration_lebal = document.getElementById(video_duration_lebal);
    var vid_current_lebal = document.getElementById(video_current_lebal);

	vid_playing.play();

	document.getElementById(play_now).style.display="none";
	document.getElementById(play_now2).style.display="none";
	
	document.getElementById(pause_now).style.display="block";
	document.getElementById(pause_now2).style.display="block";
	
	document.getElementById(seek_value_div).style.display="block";
	document.getElementById(volume_seek_value).style.display="block";

	
	setTimeout(function(){ hide_controls(); }, 6000);
	
	seekbar = document.getElementById(seekbar_out); //style.width;
	//seekbar_curr = document.getElementById(seekbar_value).innerHTML;
	//alert(seekbar_curr);
	vid_playing.addEventListener('timeupdate', function(){

	vid_duration = vid_playing.duration;
	vid_curr_duration = vid_playing.currentTime;
	
	vid_dur_percentage = (vid_curr_duration / vid_duration * 100);
	document.getElementById(seekbar_in).style.width = vid_dur_percentage+"%";
	
	var min_cur = Math.floor(vid_curr_duration /60);
	var sec_cur = Math.floor(vid_curr_duration - min_cur * 60);
	vid_current_lebal.innerHTML = min_cur+":"+sec_cur;
		
	var min_dur = Math.floor(vid_duration /60);
	var sec_dur = Math.floor(vid_duration - min_dur * 60);
	vid_duration_lebal.innerHTML = min_dur+":"+sec_dur;
	rand_vid_percentage = Math.round(vid_dur_percentage);

	if(rand_vid_percentage ==20){
//code bellow for inserting video views
	post_id= video_playing;
 my_id = document.getElementById('my_id').value;
 user_ip = document.getElementById('user_ip').value;
 user_city = document.getElementById('user_city').value;
 user_country = document.getElementById('user_country').value; 

  xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","auto_page.php?my_id="+my_id+"&user_ip="+user_ip+"&post_id="+post_id+"&user_city="+user_city+"&user_country="+user_country+"&status=insert_post_view",false);
  xmlhttp.send(null);
/// end //
		
		}
	
	if(vid_dur_percentage ==100){
	document.getElementById(play_now).style.display="block";
	document.getElementById(play_now2).style.display="block";
	
	document.getElementById(pause_now).style.display="none";
	document.getElementById(pause_now2).style.display="none";
	
	
	}
	
	});
	

	ongoing_vid =vid_playing;

}

function curr_seek_value(csv)
{   
	seek_value =csv;
    var playing_vid = 'playing_video'+video_playing;
    var seekbar_in ='seekbar_in'+video_playing;
    var playing_vid = document.getElementById(playing_vid);
    vid_curr_duration = playing_vid.currentTime;
    vid_dur_percentage = (vid_curr_duration / vid_duration * 100);
	playing_vid.currentTime = playing_vid.duration * seek_value / 100;
	document.getElementById(seekbar_in).style.width = vid_dur_percentage+"%";
	
}

function pause_playing(pp)
{
	 var playing_vid = 'playing_video'+video_playing;
	 var play_now = 'play_now'+video_playing;
	 var play_now2 = 'play_now2'+video_playing;
	 
	 var pause_now ='pause_now'+video_playing;
	 var pause_now2 ='pause_now2'+video_playing;

     var vid_playing = document.getElementById(playing_vid);
	
	vid_playing.pause();
	document.getElementById(pause_now).style.display="none";
	document.getElementById(pause_now2).style.display="none";
	document.getElementById(play_now).style.display="block";
	document.getElementById(play_now2).style.display="block";
}

function mute_playing()
{
	 var playing_vid = 'playing_video'+video_playing;
	 var play_now = 'play_now'+video_playing;
	 var pause_now ='pause_now'+video_playing;
	 var unmute_now = 'unmute_now'+video_playing;
	 var mute_now ='mute_now'+video_playing;	 

     var vid_playing = document.getElementById(playing_vid);
	vid_playing.muted=true;
	document.getElementById(unmute_now).style.display="block";
	document.getElementById(mute_now).style.display="none";
}

function unmute_playing()
{
	var playing_vid = 'playing_video'+video_playing;
	 var unmute_now = 'unmute_now'+video_playing;
	 var mute_now ='mute_now'+video_playing;
	 

     var vid_playing = document.getElementById(playing_vid);
	 
	vid_playing.muted=false;
	document.getElementById(unmute_now).style.display="none";
	document.getElementById(mute_now).style.display="block";
}

function curr_volume_value(cvv)
{
	volume_value =cvv;
	
	var playing_vid = 'playing_video'+video_playing; 
	var volume_seekbar_in ='volume_seekbar_in'+video_playing;

     var vid_playing = document.getElementById(playing_vid);
	
	vid_playing.volume = volume_value;
	//document.getElementById('volume_seekbar_in').style.width=volume_value;
	
	volume_percentage = (volume_value / 1 * 100);
	document.getElementById(volume_seekbar_in).style.width = volume_percentage+"%";
	
	//alert(volume_percentage);
}

function go_full_screen(){
	
	 var playing_vid = 'playing_video'+video_playing; 
     var vid_playing = document.getElementById(playing_vid);
	 
	if(vid_playing.requestFullScreen){
		vid_playing.requestFullScreen();
	} else if(vid_playing.webkitRequestFullScreen){
		vid_playing.webkitRequestFullScreen();
	} else if(vid_playing.mozRequestFullScreen){
		vid_playing.mozRequestFullScreen();
}

}

function show_controls(sc)
{
    control_div ='control_div'+sc;
	control_div2  ='control_div2'+sc;
	document.getElementById(control_div).style.display="block";
	document.getElementById(control_div2).style.display="block";
	setTimeout(function(){ hide_controls(); }, 6000);
}
function hide_controls()
{
	document.getElementById(control_div).style.display="none";
	document.getElementById(control_div2).style.display="none";
}


///////////////////////////////////////////////////////////////////////////////////



function clear_placeholder()
{
	document.getElementById('place_holder').style.display="none";
	//alert(456);
}

function insert_post_comment(ipc)
{//alert(ipc);

	var today = new Date();
    var cur_hour = today.getHours();
    var cur_min = today.getMinutes();
    var cur_sec = today.getSeconds();
	
     var cur_year = today.getFullYear();	
     var cur_month = (today.getMonth()+1);
     var cur_day = today.getDate();	


 post_id = ipc;
 new_comment_input ="new_comment_input"+ipc;
 my_id = document.getElementById('my_id').value;
 new_comment = document.getElementById(new_comment_input).value;
// new_comment = document.getElementById(new_comment_input).innerHTML;
 
 if(new_comment !==""){

//alert(new_comment);	

  xmlhttp = new XMLHttpRequest();
  xmlhttp.open("GET","auto_page.php?my_id="+my_id+"&new_comment="+new_comment+"&post_id="+post_id+"&&cur_hour="+cur_hour+"&&cur_min="+cur_min+"&&cur_sec="+cur_sec+"&&cur_year="+cur_year+"&&cur_month="+cur_month+"&&cur_day="+cur_day+"&&status=insert_post_comment",false);
  xmlhttp.send(null);
   display_main_post();
  document.getElementById(new_comment_input).value="";

  //document.getElementById('add_output').innerHTML =xmlhttp.responseText;
 

}
}

function show_post_file_name()
{
	file_post_name = document.getElementById('post_file').files[0].name;
	document.getElementById('post_file_name_output').innerHTML=file_post_name;
	//alert(file_post_name);
}

/*function feed_textarea()
{
	  new_post_text2 = document.getElementById('new_post_input2').innerHTML;
//alert(new_post_text2);
      //new_post_text = document.getElementById('new_post_input').value=new_post_text2;
	//alert(new_post_text);
}*/


function publish_new_post()
{	

	var today = new Date();
    var cur_hour = today.getHours();
    var cur_min = today.getMinutes();
    var cur_sec = today.getSeconds();
	
     var cur_year = today.getFullYear();	
     var cur_month = (today.getMonth()+1);
     var cur_day = today.getDate();	
	 
	  new_post_text = document.getElementById('new_post_input').value;

     my_id = document.getElementById('my_id').value;
     file_post_url = document.getElementById('post_file').files[0];

  if(file_post_url =="[object File]"){
	  
    file_post_type = file_post_url.type;
	
	
  if(file_post_type !=="image/jpeg" && file_post_type !=="image/JPEG" && file_post_type !=="image/png" && file_post_type !=="image/PNG" && file_post_type !=="video/mp4" && file_post_type !=="video/MP4" && file_post_type !=="video/mpeg" && file_post_type !=="video/MPEG" && file_post_type !=="audio/mpeg" && file_post_type !=="audio/MPEG" )
	{
	document.getElementById('post_file_name_output').innerHTML ="<span style='color:red;'>The File Format Not Supported</span>";
	
	}else{
  
      var formdata = new FormData();
      formdata.append('post_file',file_post_url);
	  
	  ajax = new XMLHttpRequest();
	  ajax.addEventListener("load", completeHandler, false);
	  ajax.open("POST","ajax_auto_page.php?new_post_text="+new_post_text+"&&cur_hour="+cur_hour+"&&cur_min="+cur_min+"&&cur_sec="+cur_sec+"&&cur_year="+cur_year+"&&cur_month="+cur_month+"&&cur_day="+cur_day+"&&status=insert_post_main");
	  ajax.send(formdata);
	  document.getElementById('upload_help_div').style.display="block";
	  document.getElementById('home_pc_div').style.display="none";
	  close_main_new_post();

	  	function completeHandler()
	{
	  document.getElementById('post_file').value=""
	  document.getElementById('upload_help_div').style.display="none";
	  
	  document.getElementById('new_post_input').value="";
	  document.getElementById('post_file_name_output').innerHTML="";
	  
	  	  window.scrollTo(0,400);
		  display_main_post();
	       //close_menu_area();
	}
    }
    }else if(new_post_text ==""){}else{ 

	   xmlhttp = new XMLHttpRequest();
       xmlhttp.open("GET","ajax_auto_page.php?new_post_text="+new_post_text+"&&cur_hour="+cur_hour+"&&cur_min="+cur_min+"&&cur_sec="+cur_sec+"&&cur_year="+cur_year+"&&cur_month="+cur_month+"&&cur_day="+cur_day+"&&status=insert_post_main_text",false);
       xmlhttp.send(null);
       document.getElementById('new_post_input').value="";
	window.scrollTo(0,400);
	 // document.getElementById('upload_help_div').style.display="block";
	 display_main_post();
	   close_main_new_post();
	  // close_menu_area();
       
	   

	   

}

}







</script>


<!--script>

// var vid_playing = document.getElementById('playing_video');playing_video
 var vid_duration_lebal = document.getElementById('video_duration_lebal');
 var vid_current_lebal = document.getElementById('video_current_lebal');

function start_playing(sp)
{//alert(sp);
     var current_video ='playing_video'+sp;
	 var play_now = sp;
	 var pause_now ='pause_now'+sp;
	 var seekbar_out ='seekbar_out'+sp;
	 var seekbar_in ='seekbar_in'+sp;
	 var seekbar_value ='seekbar_value'+sp;
     var vid_playing = document.getElementById(current_video);

	vid_playing.play();

	document.getElementById(play_now).style.display="none";
	document.getElementById(pause_now).style.display="block";
	
	//setTimeout(function(){ hide_controls(); }, 3000);
	
	seekbar = document.getElementById(seekbar_out); //style.width;
	seekbar_curr = document.getElementById(seekbar_value).innerHTML;
	alert(seekbar_curr);
	vid_playing.addEventListener('timeupdate', function(){
	
	vid_duration = vid_playing.duration;
	vid_curr_duration = vid_playing.currentTime;
	
	vid_dur_percentage = (vid_curr_duration / vid_duration * 100);
	document.getElementById(seekbar_in).style.width = vid_dur_percentage+"%";
	
	var min_cur = Math.floor(vid_curr_duration /60);
	var sec_cur = Math.floor(vid_curr_duration - min_cur * 60);
	vid_current_lebal.innerHTML = min_cur+":"+sec_cur;
		
	var min_dur = Math.floor(vid_duration /60);
	var sec_dur = Math.floor(vid_duration - min_dur * 60);
	vid_duration_lebal.innerHTML = min_dur+":"+sec_dur;
	
	
	
	});
	
		//seekbar.addEventListener('click', function(){
   // video.currentTime = vid_duration * seekbar.value / seekbar.max
   //alert(seekbar_curr);
	
	//});
	
	

}
function curr_seek_value(csv)
{ seek_value =csv;
	vid_playing.currentTime = vid_playing.duration * seek_value / 100;
	//alert(myman);
}

function pause_playing(pp)
{
	     var current_video ='playing_video'+pp;
	 //var play_now = sp;
	 //var pause_now ='pause_now'+sp;
	 //var seekbar_out ='seekbar_out'+sp;
	 //var seekbar_in ='seekbar_in'+sp;
	 //var seekbar_value ='seekbar_value'+sp;
     var vid_playing = document.getElementById(current_video);
	
	alert(pp);
	vid_playing.pause();
	document.getElementById('pause_now').style.display="none";
	document.getElementById('play_now').style.display="block";
	//alert(video_playing);
}

function mute_playing()
{
	vid_playing.muted=true;
	document.getElementById('unmute_now').style.display="block";
	document.getElementById('mute_now').style.display="none";
}

function unmute_playing()
{
	vid_playing.muted=false;
	document.getElementById('unmute_now').style.display="none";
	document.getElementById('mute_now').style.display="block";
}

function curr_volume_value(cvv)
{
	volume_value =cvv;
	vid_playing.volume = volume_value;
	//document.getElementById('volume_seekbar_in').style.width=volume_value;
	
	volume_percentage = (volume_value / 1 * 100);
	document.getElementById('volume_seekbar_in').style.width = volume_percentage+"%";
	
	//alert(volume_percentage);
}

function go_full_screen(){
	if(vid_playing.requestFullScreen){
		vid_playing.requestFullScreen();
	} else if(vid_playing.webkitRequestFullScreen){
		vid_playing.webkitRequestFullScreen();
	} else if(vid_playing.mozRequestFullScreen){
		vid_playing.mozRequestFullScreen();
}

}

function show_controls()
{
	document.getElementById('control_div').style.display="block";
	setTimeout(function(){ hide_controls(); }, 5000);
}
function hide_controls()
{
	document.getElementById('control_div').style.display="none";
}

</script-->






</body>


</html>






Youez - 2016 - github.com/yon3zu
LinuXploit