| 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:/active_xampp_upgrade/cb_cinema/ |
Upload File : |
<html>
<head>
<title>CB cinema</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/cinema.css" />
<!--meta name="google-adsense-account" content="ca-pub-4728417548940171"><!--gog ads -->
</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
*/
?>
</div>
<body id="main_body" >
<?php
session_start();
//include('db_b.php');
include('db.php');
//include('function.php');
if(isset($_SESSION['id']))
{
$user_id = $_SESSION['id'];
}else{
$user_id = "Guest";
}
?>
<input id="my_id" value="<?php echo $user_id ?>" style="display:none;" />
<div id="main_content_div" class="main_content_div" >
<div id="live_cinema_output" ></div>
<!--div id="main_player" class="main_player" >
<video id="cur_vid" class="sub_play" >
<source src="movie/728067944.mp4" type="video/mp4">
<source src="movie/728067944.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
<!--img src="movie_thumb/mima.jfif" class="sub_play" /-k->
</div>
<div id="movie_title" class="movie_title" >
<span id="mov_name" class="mov_name" >Movie name Movie name Movie name</span>
<span id="dur_time" class="mov_dur" >0:00</span>
<span id="cur_time" class="mov_dur" >0:00 /</span>
</div-->
<div class="home_btn_div" >
<span class="memu_img_shell"><img onClick="disp_option();" src="main_icon/menu_icon.png" class="menu_btn" /></span>
<!--img src="main_icon/back_btn.png" class="home_btn" /-->
<img id="vid_play" onClick="vid_play();" src="main_icon/play_btn.png" class="play_btn" />
<img id="vid_stop" onClick="vid_stop();" src="main_icon/stop_btn.png" class="play_btn" style="display:none;backroundk:red;" />
<img onClick="go_fullscreen();" src="main_icon/fs.jpg" class="fscreen_btn" />
<img src="main_icon/efs.png" class="fscreen_btn" style="background:#3C2545;display:none;" />
</div>
<div class="room_title" >CB Cinema Hall
<img src="main_icon/eye1.png" class="view_icon"/>
<span id="movie_view_count_output" class="view_output">55555</span>
<?php if(!isset($_SESSION['id'])){ ?>
<a href="login"><span class="join_btn">Join</span></a>
<?php }else{ ?>
<a href="logout"><span class="join_btn">Logout</span></a>
<?php } ?>
</div>
<div id="option_div" class="option_div" >
<div class="icon_div" >
<img src="main_icon/comt.png" class="coment_btn"/>
<span id="com_count_output" class="coment_output">5241</span>
<img src="main_icon/lik5.png" onClick="like_mv_now();" class="like_btn"/>
<span id="like_count_output" class="like_output">5241</span>
</div>
<div class="com_input_div" >
<?php if(!isset($_SESSION['id'])){ ?>
<a href="login">
<input id="nw_comment" class="com_input" placeholder="write comment..." />
<button onClick="save_comment();" class="com_btn" >Send</button>
</a>
<?php }else{ ?>
<input id="nw_comment" class="com_input" placeholder="write comment..." />
<button onClick="save_comment();" class="com_btn" >Send</button>
<?php } ?>
</div>
<div id="com_disp_div" class="com_disp_div" >
<div id="single_com_output" ></div>
<!--div class="single_com_div" >
<img src="main_icon/crane log.png" class="user_img_com" />
<span class="com_user_name" >Love</span>
<span class="com_detail" >Today's movie is the best, Today's movie is the best, Today's movie is the best,Today's movie is the best </span>
</div-->
</div>
</div>
<div class="room_area" >
<div id="siter_output" > </div>
<div class="shell_error_output" id="shell_error_output" ></div>
<div class="error_output" id="error_output" >
<span class="sit_tip" id="" >Sit in use</span>
<button onClick="close_tip_me();" class="sit_tip_btn" id="" >OK</button>
</div>
<div id="siter_output2" > love commisioner</div>
</div>
</div><!--end of main_content_div-->
<script>
disp_cinema_mv();
function disp_cinema_mv()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","auto_page_movie.php?my_id="+my_id+"&&status=disp_cinema_mv",false);
xmlhttp.send(null);
document.getElementById('live_cinema_output').innerHTML =xmlhttp.responseText;
}
let cur_vid = document.getElementById("cur_vid");
let cur_time = document.getElementById("cur_time");
let dur_time = document.getElementById("dur_time");
let mov_name = document.getElementById("mov_name");
cur_vid.addEventListener("timeupdate",updating_timer,false);
function vid_play()
{
let cur_vid = document.getElementById("cur_vid");
cur_vid.play();
document.getElementById('vid_play').style.display="none";
document.getElementById('vid_stop').style.display="block";
show_movie_name();
save_movie_view();
start_hunting();
}
function vid_stop()
{
let cur_vid = document.getElementById("cur_vid");
cur_vid.pause();
document.getElementById('vid_play').style.display="block";
document.getElementById('vid_stop').style.display="none";
document.getElementById('movie_title').style.display="block";
}
function updating_timer()
{
cur_mint = Math.floor(cur_vid.currentTime /60 );
cur_sec = Math.floor(cur_vid.currentTime - cur_mint * 60 );
dur_mint = Math.floor(cur_vid.duration /60 );
dur_sec = Math.floor(cur_vid.duration - dur_mint * 60 );
if(cur_sec <10){cur_sec ="0"+cur_sec;}
if(dur_sec <10){dur_sec ="0"+dur_sec;}
cur_time.innerHTML = cur_mint+":"+cur_sec+" /";
dur_time.innerHTML = dur_mint+":"+dur_sec;
if(dur_mint == cur_mint ){
clearInterval(notf_status);
}
}
/*
timer();
function timer(){
var sec = 70;
var timer = setInterval(function(){
// alert(sec--);
// sec--;
// document.getElementById('mov_name').style.width=sec--+"%";
if (sec < 0) {
clearInterval(timer);
}
}, 600);
}*/
mv_name_status = 0;
function show_movie_name(){
if(mv_name_status==0){
document.getElementById('movie_title').style.display="block";
setTimeout(function(){ document.getElementById('movie_title').style.display="none";}, 6000);
mv_name_status=1;
}else if(mv_name_status==1){
document.getElementById('movie_title').style.display="block";
setTimeout(function(){ document.getElementById('movie_title').style.display="none";}, 6000);
mv_name_status=0;
}
}
function go_fullscreen() {
if (cur_vid.requestFullscreen) {
cur_vid.requestFullscreen();
} else if (cur_vid.webkitRequestFullscreen) { /* Safari */
cur_vid.webkitRequestFullscreen();
} else if (cur_vid.msRequestFullscreen) { /* IE11 */
cur_vid.msRequestFullscreen();
}
// document.getElementById('main_player').style="width:100%;height:100%;position:fixed;"
// document.getElementById('cur_vid').style="max-width:100%;max-height:100%;"
// document.getElementById('main_content_div').style="width:100%;height:100%;margin-left:0%;"
//document.getElementById("cur_vid").disabled="true";
//alert(4545);
}
btn_status = 0;
function disp_option()
{
if(btn_status ==0){
document.getElementById('option_div').style="display:block;overflow:hidden;";
document.getElementById('main_body').style="overflow:hidden;";
document.getElementById('com_disp_div').style="overflow:auto;";
//window.scrollTo(0,0);
btn_status=1;
}else{
document.getElementById('option_div').style.display="none";
document.getElementById('main_body').style="overflow:auto;";
btn_status=0;
} }
function save_movie_view()
{
my_id = document.getElementById('my_id').value;
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?my_id="+my_id+"&&live_videoid="+live_videoid+"&&status=save_movie_view",false);
xmlhpttp.send(null);
//document.getElementById(like_out).innerHTML =xmlhpttp.responseText;
}
disp_movie_view();
function disp_movie_view()
{
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?live_videoid="+live_videoid+"&&status=disp_movie_view",false);
xmlhpttp.send(null);
document.getElementById('movie_view_count_output').innerHTML =xmlhpttp.responseText;
}
function save_comment()
{
my_id = document.getElementById('my_id').value;
live_videoid = document.getElementById('live_videoid').value;
nw_comment = document.getElementById('nw_comment').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?my_id="+my_id+"&&live_videoid="+live_videoid+"&&nw_comment="+nw_comment+"&&status=save_comment",false);
xmlhpttp.send(null);
//document.getElementById(like_out).innerHTML =xmlhpttp.responseText;
document.getElementById('nw_comment').value="";
disp_mv_comm_count();
disp_mv_comm();
}
disp_mv_comm();
function disp_mv_comm()
{
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?live_videoid="+live_videoid+"&&status=disp_mv_comm",false);
xmlhpttp.send(null);
document.getElementById('single_com_output').innerHTML =xmlhpttp.responseText;
}
disp_mv_comm_count();
function disp_mv_comm_count()
{
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?live_videoid="+live_videoid+"&&status=disp_mv_comm_count",false);
xmlhpttp.send(null);
document.getElementById('com_count_output').innerHTML =xmlhpttp.responseText;
}
function like_mv_now()
{
my_id = document.getElementById('my_id').value;
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?my_id="+my_id+"&&live_videoid="+live_videoid+"&&status=like_mv_now",false);
xmlhpttp.send(null);
//document.getElementById('single_com_output').innerHTML =xmlhpttp.responseText;
disp_movie_like();
}
disp_movie_like();
function disp_movie_like()
{
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?live_videoid="+live_videoid+"&&status=disp_movie_like",false);
xmlhpttp.send(null);
document.getElementById('like_count_output').innerHTML =xmlhpttp.responseText;
}
notf_status = setInterval(start_hunting, 100000);
function start_hunting()
{
disp_movie_like();
disp_mv_comm_count();
disp_mv_comm();
disp_movie_view();
}
function take_sit(ts)
{
sit_no = ts;
my_id = document.getElementById('my_id').value;
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?my_id="+my_id+"&&live_videoid="+live_videoid+"&&sit_no="+sit_no+"&&status=take_sit_save",false);
xmlhpttp.send(null);
document.getElementById('siter_output2').innerHTML =xmlhpttp.responseText;
tip_me = document.getElementById('tip_me').value;
if(tip_me == 'sit_busy'){
document.getElementById('shell_error_output').style.display="block";
document.getElementById('error_output').style.display="block";
}
disp_siters();
}
disp_siters();
function disp_siters()
{
my_id = document.getElementById('my_id').value;
live_videoid = document.getElementById('live_videoid').value;
xmlhpttp = new XMLHttpRequest();
xmlhpttp.open("GET","auto_page_movie.php?my_id="+my_id+"&&live_videoid="+live_videoid+"&&status=disp_siters",false);
xmlhpttp.send(null);
document.getElementById('siter_output').innerHTML =xmlhpttp.responseText;
}
function close_tip_me()
{
document.getElementById('shell_error_output').style.display="none";
document.getElementById('error_output').style.display="none";
}
</script>
</body>
</html>