| 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:/xamppkk/htdocs-coblaa/social/ |
Upload File : |
<html>
<?php
include('db.php');
session_start();
?>
<head>
<title>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'];
}
?>
<input type="text" id="my_id" value="<?php echo"$my_id";?>" 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";
?>
<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 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>
<div class="home_header_postion"></div>
<div class="home_pc_div" >
<div class="home_pc_div_tile">Controls</div>
<!--div idk="home_mob_div" class="home_pc_div"-->
<a href="social" ><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>
<button onClick="show_post_input_div();" class="home_btn_pc" >New Post</button>
<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 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"-->
<a href="social" ><button class="home_btn_pc" >Home</button></a>
<button onClick="show_post_area();" class="home_btn_pc" >Posts</button>
<button onClick="show_post_input_div();" class="home_btn_pc" >New Post</button>
<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>
<?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-->
</div>
<script>
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";
}
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);
}
function close_main_new_post()
{
document.getElementById('main_new_post_div').style.display="none";
}
</script>
</div>
<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>
</div>
<!--div class="tips_header_div" >
<?php
//define("ABS_PATH", $_SERVER['DOCUMENT_ROOT']);
//include ('../online_cast/index.php');
?>
</div-->
<div onmousedown="close_menu_area();" class="main_banner_div" style="display: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-->
</div><!--end of main_banner_div-->
<div class="live_tv_div" >
<?php //include('tv_player.php'); ?>
</div><!-- end of live_tv_div-->
<div id="member_container" onClick="close_menu_area();" class="member_container">
<div class="members_title" >Cicadat</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-->
</div>
<div id="post_container" class="post_container">
<div id="main_new_post_div" onmousedown="close_menu_area();" class="main_new_post_div" style="display:none;" >
<button onClick="close_main_new_post();" class="close_main_new_post_div" >X</button>
<?php if(isset($_SESSION['id'])){ ?>
<div id="new_post_input" class="kvt_textarea" type="input" role="textbox" contenteditable style="font-weight:none; " ></div>
<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>
<?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-->
</div>
</div>
<div class="test_kvt">
<div id="main_post_display_output"></div>
</div>
</div>
<div id="upload_help_div" class="upload_help_div" >Post Uploading....</div>
<script>
//katendee();
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 check_width_size()
{
comment = document.getElementById('new_comment_input').value;
screen_size = screen.width;
comment_length = comment.length;
if(screen_size > 800 ){
if(comment_length > 148){
//height_size = document.getElementById('new_comment_input').offsetHeight;
document.getElementById('new_comment_input').style.height="140px";
}else if(comment_length > 111){
//height_size = document.getElementById('new_comment_input').offsetHeight;
document.getElementById('new_comment_input').style.height="130px";
}else if(comment_length > 74){
//height_size = document.getElementById('new_comment_input').offsetHeight;
document.getElementById('new_comment_input').style.height="100px";
}else if(comment_length > 37){
document.getElementById('new_comment_input').style.height="70px";
}
}else if(screen_size < 400){
if(comment_length > 104){
//height_size = document.getElementById('new_comment_input').offsetHeight;
document.getElementById('new_comment_input').style.height="140px";
}else if(comment_length > 78){
//height_size = document.getElementById('new_comment_input').offsetHeight;
document.getElementById('new_comment_input').style.height="130px";
}else if(comment_length > 52){
//height_size = document.getElementById('new_comment_input').offsetHeight;
document.getElementById('new_comment_input').style.height="100px";
}else if(comment_length > 26){ alert('screen_size');
document.getElementById('new_comment_input').style.height="70px";
}
}
}
</script>
<input id="playing_vid_help" value="kvt11" />
<script>
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;
// stop_prevous_vid();
smp = lp;
start_main_player(smp)
}*/
// var vid_playing = document.getElementById('playing_video');playing_video start_playing
//var vid_duration_lebal = document.getElementById('video_duration_lebal');
//var vid_current_lebal = document.getElementById('video_current_lebal');
function start_playing(sp)
{
var playing_vid = 'playing_video'+sp;
var play_now = '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 video_current_lebal ='video_current_lebal'+sp;
var video_duration_lebal ='video_duration_lebal'+sp;
var seek_value_div = 'seek_value_div'+sp;
var volume_seek_value ='volume_seek_value'+sp;
var pause_prev = document.getElementById('playing_vid_help').value;
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);
//start_play.addEventListener('click', start_playing ,false );
if(vid_playing.paused == true){
//var n = dogs.length;
if(pause_prev == 'kvt11'){
// vid_playing.play();
// alert(pause_prev);
document.getElementById('playing_vid_help').value=sp;
}else{
// alert(pause_prev);
stop_prevous_vid();
document.getElementById('playing_vid_help').value="kvt11";
}
vid_playing.play();
// alert(1);
}else{
vid_playing.pause();
document.getElementById('playing_vid_help').value="kvt11";
//alert(2);
}
//document.getElementById(play_now).style.display="none";
document.getElementById(pause_now).style.display="block";
document.getElementById(seek_value_div).style.display="block";
document.getElementById(volume_seek_value).style.display="block";
// alert('video_playing');
//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;
});
///ongoing_vid =vid_playing;
// prev_id = sp;
// alert(prev_id);
///document.getElementById('playing_vid_help').value=sp;
}
function stop_prevous_vid()
{
dogs = document.getElementById('playing_vid_help').value;
var playing_vid = 'playing_video'+dogs;
//video_playing = prev_id;
/* var playing_vid = 'playing_video'+video_playing;
var play_now = 'play_now'+video_playing;
var pause_now ='pause_now'+video_playing;
var seek_value_div = 'seek_value_div'+video_playing;
var volume_seek_value ='volume_seek_value'+video_playing;
//alert(vid_playing);*/
var vid_playing = document.getElementById(playing_vid);
vid_playing.pause();
dogs = document.getElementById('playing_vid_help').value="kvt11";
document.getElementById(pause_now).style.display="none";
document.getElementById(play_now).style.display="block";
document.getElementById(seek_value_div).style.display="none";
document.getElementById(volume_seek_value).style.display="none";
alert(4);
}
/*function start_playing()
{ //var come_on = 9;
//alert(come_on);
if(ongoing_vid.paused == true){
ongoing_vid.play();
//ongoing_vid.pause();
alert(1);
}else{
// ongoing_vid.pause();
//ongoing_vid.play();
alert(2);
}
}*/
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 pause_now ='pause_now'+video_playing;
var vid_playing = document.getElementById(playing_vid);
vid_playing.pause();
document.getElementById(pause_now).style.display="none";
document.getElementById(play_now).style.display="block";
//alert(video_playing);
}
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;
document.getElementById(control_div).style.display="block";
setTimeout(function(){ hide_controls(); }, 5000);
}
function hide_controls()
{
document.getElementById(control_div).style.display="none";
}
///////////////////////////////////////////////////////////////////////////////////
/*
function display_main_comment(dmc)
{
comm_id = dmc; //document.getElementById('comm_id').value;
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","auto_page.php?my_id="+my_id+"&&comm_id="+comm_id+"&&status=display_main_comment",false);
xmlhttp.send(null);
document.getElementById('reply_disp_output').innerHTML =xmlhttp.responseText;
alert(dmc);
}*/
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').innerHTML;
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";
function completeHandler()
{
document.getElementById('upload_help_div').style.display="none";
document.getElementById('new_post_input').innerHTML="";
document.getElementById('post_file_name_output').innerHTML="";
display_main_post();
// alert(new_post_text);
}
}
}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').innerHTML="";
// document.getElementById('upload_help_div').style.display="block";
display_main_post();
//alert(new_post_text);
}
// alert(new_post_text);
}
</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>