| 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_imagek/ |
Upload File : |
<html>
<head>
<title>CB Social</title>
<link rel="icon" type="image/jpg" href="http://craneblue.com/main_icon/crane log.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" />
</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" onload="disp_post_img('all');" >
<?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 class="main_home_div" >
<img src="main_icon/crane log.png" id="main_log_home" class="main_log_home" />
<div id="hi_title" class="hi_title">Craneblue</div>
<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['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="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=Motivational"><button id="disp_mot" onClick="disp_post_img('mot');" class="sub_btn_lebal" >Motivational</button></a>
<a href="?action_status=Biblical"><button id="disp_bib" onClick="disp_post_img('bib');" class="sub_btn_lebal" >CRE</button></a>
<a href="Cinema"><button id="disp_isl" class="sub_btn_lebal" >Movies</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="studio" ><button class="main_upload_btn2" >Studio</button></a>
<a href="Cinema" ><button class="main_upload_btn2" >Cinema</button></a>
<?php if(!isset($_SESSION['id'])){ ?>
<a href="login"><button class="main_upload_btn2">Login</button></a>
<a href="http://localhost/craneblue/signup" ><button class="main_upload_btn2" >Sign Up</button></a>
<?php }else{ ?>
<a href="logout"><button class="main_upload_btn2">Logout</button></a>
<?php } ?>
</div>
<div id="help_option_div_mob" onClick="close_option_div_mob();" class="help_option_div_mob" ></div>
<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 = 32;// $_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)*32;
?>
<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 id DESC limit $new_load_start, $new_load_limit";
}
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";
}
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";
}
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";
}
$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" >
<?php echo $text_post_leng; ?>
</div>
</div></a>
<div 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" />
</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="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="unlike_icon_span" ><img src="main_icon/lk2.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="like_icon_span" style="display:none;" ><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='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="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" style="display:none;" ><img src="main_icon/lk2.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: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" />
<img src="thumb_image/<?php echo $vid_thumbnail; ?>" class="post_image" />
</div>
</a>
<div 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" />
</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="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="unlike_icon_span" ><img src="main_icon/lk2.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="like_icon_span" style="display:none;" ><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='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="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" style="display:none;" ><img src="main_icon/lk2.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: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 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" >
<img src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div></a>
<div 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" />
</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="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="unlike_icon_span" ><img src="main_icon/lk2.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="like_icon_span" style="display:none;" ><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='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="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" style="display:none;" ><img src="main_icon/lk2.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-->
<?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 } ?>
<script>
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";
//alert(1);
document.getElementById(like_out4).innerHTML = Number(cur_like_count) + 1;
}
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;
}
</script>
</body>
</html>