| 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/old_code/ |
Upload File : |
<?php
//$message_text = mysqli_real_escape_string($con,$message_text);
//include('db_b.php');
include('db.php');
session_start();
$status = $_GET['status'];
//////////////////////////////////////////////////////////
$curr_day = date("d");
$curr_month = date("m");
$curr_year = date("Y");
///////////////////////////////////////////////////////////////
?>
<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>
<?php
//////////////////////////////////////////////////////////////
if($status =="insert_category")
{
$my_id = $_GET['my_id'];
$category_input = $_GET['category_input'];
if($category_input ==""){echo"Field Empty";}else{
$get_cat = "select * from categorytb where category ='$category_input'";
$run_get_cat = mysqli_query($con,$get_cat);
$check_get_cat = mysqli_num_rows($run_get_cat);
if($check_get_cat >0){echo"This Category Already Available";}else{
$insert_cat ="insert into categorytb(my_id,category,cur_country,cur_city,cur_date,cur_time)values('$my_id','$category_input','$country','$city',CURDATE(),CURTIME() )";
$run_insert_cat = mysqli_query($con,$insert_cat);
}
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($status =="insert_describe_action")
{
$my_id = $_GET['my_id'];
$describe_action_input = $_GET['describe_action_input'];
if($describe_action_input ==""){echo"Field Empty";}else{
$get_action = "select * from describe_actiontb where describe_action ='$describe_action_input'";
$run_get_action = mysqli_query($con,$get_action);
$check_get_action = mysqli_num_rows($run_get_action);
if($check_get_action >0){echo"This Action Already Available";}else{
$insert_action ="insert into describe_actiontb(my_id,describe_action,cur_country,cur_city,cur_date,cur_time)values('$my_id','$describe_action_input','$country','$city',CURDATE(),CURTIME() )";
$run_insert_action = mysqli_query($con,$insert_action);
}
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($status == 'disp_category_option')
{
$get_cat_disp = "select * from categorytb ";
$run_get_cat = mysqli_query($con,$get_cat_disp);
while($row_get_cat_disp = mysqli_fetch_array($run_get_cat))
{
$category = $row_get_cat_disp['category'];
?>
<option class="sel_category" > <?php echo"$category"; ?> </option>
<?php
}
}
/////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// studio_usertb
if($status =='insert_new_image')
{
$my_id = $_GET['my_id'];
$category_option = $_GET['category_option'];
$post_name_input = $_GET['post_name_input'];
$cur_thumb_img = $_GET['cur_thumb_img'];
$fileName = $_FILES['image_input']['name'];
$tmp_file = $_FILES['image_input']['tmp_name'];
if($fileName ==""){
$random_name =""; $file_type =""; $file_dot ="";
}else{
$file_type = explode('.',$fileName);
$file_type = end($file_type);
$file_dot =".";
$random_name = rand();
$random_name = mysqli_real_escape_string($con,$random_name);
$file_type = mysqli_real_escape_string($con,$file_type);
$category_option = mysqli_real_escape_string($con,$category_option);
$post_name_input = mysqli_real_escape_string($con,$post_name_input);
$studio_user ="select * from studio_usertb where my_id='$my_id' ";
$run_studio = mysqli_query($con,$studio_user);
while($row_studio = mysqli_fetch_array($run_studio))
{
$studio_id = $row_studio['id'];
}
$insert_image ="insert into crane_imgtb (my_id,studio_id,image_url,category,post_name,cur_country,cur_city,cur_date,cur_time) values
('$my_id','$studio_id','$random_name$file_dot$file_type','$category_option','$post_name_input','$country','$city',CURDATE(),CURTIME())";
$run_insert_image = mysqli_query($con,$insert_image);
if($run_insert_image)
{
move_uploaded_file($tmp_file,"post_image/$random_name.$file_type");
echo"<script>window.open('index.php','_self')</script>"; echo"<span style='color:green;'>Post uploaded, Thanks</span>";
}else{echo"Image Not Uploaded, Something Went Wrong.";}
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($status =='insert_new_text_post')
{
$my_id = $_GET['my_id'];
$text_post = $_GET['text_post'];
$text_tmp = $_GET['text_tmp'];
$text_font = $_GET['text_font'];
$text_post = mysqli_real_escape_string($con,$text_post);
$text_tmp = mysqli_real_escape_string($con,$text_tmp);
$text_font = mysqli_real_escape_string($con,$text_font);
$studio_user ="select * from studio_usertb where my_id='$my_id' ";
$run_studio = mysqli_query($con,$studio_user);
while($row_studio = mysqli_fetch_array($run_studio))
{
$studio_id = $row_studio['id'];
echo $studio_id;
}
$insert_text_post ="insert into crane_imgtb (my_id,studio_id,post_text,tmp_css,font_css,cur_country,cur_city,cur_date,cur_time) values
('$my_id','$studio_id','$text_post','$text_tmp','$text_font','$country','$city',CURDATE(),CURTIME())";
$run_insert_text_post = mysqli_query($con,$insert_text_post);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($status =="disp_post_img")
{
$new_load_limit = $_GET['new_load_limit'];
?>
<div class="main_single_post_div" >
<input id="cur_load_limit" value="<?php echo $new_load_limit ?>" style='display:none;' />
<?php
$get_post_img ="select * from crane_imgtb limit $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'];
$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,200);
$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';
if($post_text_style1 =="tmp1"){
?>
<div class="post_image_div" style="background:#000;" >
<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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" style="color:#fff;" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" >
<?php if($text_font1 =="tfont1"){ ?>
<div class="post_text" style="background:#000;font-family:Arial Black, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont2"){ ?>
<div class="post_text" style="background:#000;font-family:Impact, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont3"){ ?>
<div class="post_text" style="background:#000;font-family:Times New Roman, serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont4"){ ?>
<div class="post_text" style="background:#000;font-family:Luminari, fantasy;" >
<?php echo $text_post_leng; ?>
</div>
<?php } ?>
</div>
<div class="img_cover" ></div> </a>
</div>
<?php }elseif($post_text_style1 =="tmp2"){ ?>
<div class="post_image_div" style="background:#fff;" >
<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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" style="background:#fff;" >
<?php if($text_font1 =="tfont1"){ ?>
<!--div class="post_text" style="background:#fff;color:#000;" >
<?php echo $text_post_leng; ?>
</div-->
<div class="post_text" style="background:#fff;color:#000;font-family:Arial Black, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont2"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Impact, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont3"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Times New Roman, serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont4"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Baskerville, serif;displayk:none;" >
<?php echo $text_post_leng; ?>
</div>
<?php } ?>
</div>
<div class="img_cover" ></div> </a>
</div>
<?php } ?>
<?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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<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></div>
<div class="img_cover" ></div></a>
</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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" >
<img src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div>
<div class="img_cover" ></div>
</div>
<?php } ?>
</a>
<?php
}
}
?>
</div>
<?php
}
/////////////////////////////////////////////////////////////////////////////////////////////
if($status =='disp_text_post')
{
$post_txt_id = $_GET['cur_post_di'];
$get_post_txt ="select * from crane_imgtb where id='$post_txt_id' ";
$run_get_post_txt = mysqli_query($con,$get_post_txt);
while($row_get_post_txt = mysqli_fetch_array($run_get_post_txt))
{
$post_text = $row_get_post_txt['post_text'];
?>
<div class="text_disp_div">
<?php echo $post_text; ?>
</div>
<div class="img_cover" style="background:purple;" ></div>
<?php
}
}
///////////////////////////////////////////////////////////////////////////////////////////
if($status =='curr_image')
{
$limit_data = $_GET['limit_data'];
$studio_id = $_GET['studio_id'];
?>
<input id="cur_load_limit" value="<?php echo $limit_data; ?>" style='display:none;' />
<?php
$get_post_img ="select * from crane_imgtb where studio_id='$studio_id' limit $limit_data ";
$run_get_post_img = mysqli_query($con,$get_post_img);
while($row_get_post_img = mysqli_fetch_array($run_get_post_img))
{
$post_img = $row_get_post_img['image_url'];
$post_name = $row_get_post_img['post_name'];
$img_id = $row_get_post_img['id'];
$post_text = $row_get_post_img['post_text'];
$text_post_leng = substr($post_text,0,200);
$post_text_style1 = $row_get_post_img['tmp_css'];
$text_font1 = $row_get_post_img['font_css'];
$file_type = explode('.',$post_img);
$file_type = end($file_type);
if($post_text !==""){
$post_img ='kvtq';
if($post_text_style1 =="tmp1"){
?>
<div class="single_right_help" >
<div onClick="show_img_id(this.id)" id="<?php echo $img_id; ?>" class="single_right_div" >
<div idk="<?php echo $post_img; ?>" id="<?php echo $post_text; ?>" onClick="disp_zoomed_img(this.id)" onmousedownk="disp_zoomed_img_name(this.id);" class="post_txt">
<?php echo $text_post_leng; ?>
</div>
</div>
<div class="single_div_name" ><?php echo $post_name; ?></div>
</div>
<?php } ?>
<?php }elseif($file_type=='mp4'){
?>
<div classk="single_right_div_video_cover" class="single_right_help" >
<div onClick="show_img_id(this.id)" id="<?php echo $img_id; ?>" class="single_right_div" classk="single_right_video_div" >
<!--img name="<?php echo $post_img; ?>" onClick="disp_zoomed_img(this.name)" src="post_image/<?php echo $post_img; ?>" class="post_image" /-->
<video id="<?php echo $post_img; ?>" onClick="disp_zoomed_img(this.id);" class="post_video" >
<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>
</div>
<!--div class="post_video_name" >Your browser does not support the video tag show.</div-->
<div class="single_div_name" ><?php echo $post_name; ?></div>
</div>
<?php }else{ ?>
<div class="single_right_help" >
<div onClick="show_img_id(this.id)" id="<?php echo $img_id; ?>" class="single_right_div" >
<img name="<?php echo $post_img; ?>" id="<?php echo $post_name; ?>" onClick="disp_zoomed_img(this.name)" onmousedown="disp_zoomed_img_name(this.id);" src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div>
<div class="single_div_name" ><?php echo $post_name; ?></div>
</div>
<?php
}
}
}
////////////////////////////////////////////////////////////////////
if($status =='disp_search_sub')
{
$coming_search = $_GET['coming_search'];
/*$get_search_result ="select * from crane_imgtb where category LIKE '%$coming_search%'";
$run_get_search_result = mysqli_query($con,$get_search_result);
while($row_get_search_result = mysqli_fetch_array($run_get_search_result))
{
$sea_category = $row_get_search_result['category'];
echo"<div>$sea_category</div>";
}*/
?>
<div id="search_title" class="search_title" >Search Result For '<?php echo $coming_search ?>'</div>
<?php
/*$get_post_img ="select * from crane_imgtb where category LIKE '$coming_search%' OR post_name LIKE '$coming_search%' ";
$run_get_post_img = mysqli_query($con,$get_post_img);
$check_post_img = mysqli_num_rows($run_get_post_img);*/
$studio_user ="select * from studio_usertb where channel_name LIKE '$coming_search%' ";
$run_studio = mysqli_query($con,$studio_user);
$check_studio = mysqli_num_rows($run_studio);
if($check_studio >0){
while($row_studio = mysqli_fetch_array($run_studio))
{
$id_studio = $row_studio['id'];
//echo"<script>window.open('http://craneblue.com','_self')</script>";
$get_post_img ="select * from crane_imgtb where studio_id ='$id_studio' ";
$run_get_post_img = mysqli_query($con,$get_post_img);
while($row_get_post_img = mysqli_fetch_array($run_get_post_img))
{
?>
<div class="main_single_post_div" >
<?php
$post_img = $row_get_post_img['image_url'];
$post_my_id = $row_get_post_img['my_id'];
$post_img_id = $row_get_post_img['id'];
$post_text = $row_get_post_img['post_text'];
$studio_id = $row_get_post_img['studio_id'];
$post_name = $row_get_post_img['post_name'];
$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,200);
$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';
if($post_text_style1 =="tmp1"){
?>
<div class="post_image_div" style="background:#000;" >
<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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" style="color:#fff;" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" >
<?php if($text_font1 =="tfont1"){ ?>
<div class="post_text" style="background:#000;font-family:Arial Black, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont2"){ ?>
<div class="post_text" style="background:#000;font-family:Impact, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont3"){ ?>
<div class="post_text" style="background:#000;font-family:Times New Roman, serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont4"){ ?>
<div class="post_text" style="background:#000;font-family:Luminari, fantasy;" >
<?php echo $text_post_leng; ?>
</div>
<?php } ?>
</div>
<div class="img_cover"" ></div> </a>
</div>
<?php }elseif($post_text_style1 =="tmp2"){ ?>
<div class="post_image_div" style="background:#fff;" >
<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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" style="background:#fff;" >
<?php if($text_font1 =="tfont1"){ ?>
<!--div class="post_text" style="background:#fff;color:#000;" >
<?php echo $text_post_leng; ?>
</div-->
<div class="post_text" style="background:#fff;color:#000;font-family:Arial Black, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont2"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Impact, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont3"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Times New Roman, serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont4"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Baskerville, serif;displayk:none;" >
<?php echo $text_post_leng; ?>
</div>
<?php } ?>
</div>
<div class="img_cover" ></div> </a>
</div>
<?php } ?>
<?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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<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></div>
<div class="img_cover" ></div></a>
</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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" >
<img src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div>
<div class="img_cover" ></div>
</div>
<?php } ?>
</a>
<?php
/*
while($row_get_post_img = mysqli_fetch_array($run_get_post_img))
{
$post_img = $row_get_post_img['image_url'];
$post_my_id = $row_get_post_img['my_id'];
$post_img_id = $row_get_post_img['id'];
//echo"$post_img";
$studio_user ="select * from studio_usertb where id='$post_my_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'];
$channel_description = $row_studio['description'];
//echo"<script>window.open('http://craneblue.com','_self')</script>";
?>
<!--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;?>"-k->
<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="img_post_header" >
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $channel_description;?></div>
</div>
<div class="single_image_div" >
<img src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div>
<!--div class="img_cover" ></div-k->
</a>
</div-->
*/
?>
<?php
}
}
}
}else{
$get_post_img ="select * from crane_imgtb where category LIKE '$coming_search%' OR post_name LIKE '$coming_search%' ";
$run_get_post_img = mysqli_query($con,$get_post_img);
$check_post_img = mysqli_num_rows($run_get_post_img);
?>
<div class="main_single_post_div" >
<?php
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'];
$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,200);
$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';
if($post_text_style1 =="tmp1"){
?>
<div class="post_image_div" style="background:#000;" >
<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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" style="color:#fff;" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" >
<?php if($text_font1 =="tfont1"){ ?>
<div class="post_text" style="background:#000;font-family:Arial Black, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont2"){ ?>
<div class="post_text" style="background:#000;font-family:Impact, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont3"){ ?>
<div class="post_text" style="background:#000;font-family:Times New Roman, serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont4"){ ?>
<div class="post_text" style="background:#000;font-family:Luminari, fantasy;" >
<?php echo $text_post_leng; ?>
</div>
<?php } ?>
</div>
<div class="img_cover" ></div> </a>
</div>
<?php }elseif($post_text_style1 =="tmp2"){ ?>
<div class="post_image_div" style="background:#fff;" >
<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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" style="background:#fff;" >
<?php if($text_font1 =="tfont1"){ ?>
<!--div class="post_text" style="background:#fff;color:#000;" >
<?php echo $text_post_leng; ?>
</div-->
<div class="post_text" style="background:#fff;color:#000;font-family:Arial Black, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont2"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Impact, sans-serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont3"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Times New Roman, serif;" >
<?php echo $text_post_leng; ?>
</div>
<?php }elseif($text_font1 =="tfont4"){ ?>
<div class="post_text" style="background:#fff;color:#000;font-family:Baskerville, serif;displayk:none;" >
<?php echo $text_post_leng; ?>
</div>
<?php } ?>
</div>
<div class="img_cover" ></div> </a>
</div>
<?php } ?>
<?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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<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></div>
<div class="img_cover" ></div></a>
</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="img_post_header" >
<?php
if($image_url == 'avatar2.jpg' ){
?>
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<?php }else{ ?>
<img src="avatar_image/ <?php echo $image_url ?>" class="user_profile_img" />
<?php } ?>
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $post_name;?></div>
</div>
<div class="single_image_div" >
<img src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div>
<div class="img_cover" ></div>
</div>
<?php } ?>
</a>
<?php
}
/*
<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;?>">
<div class="img_post_header" >
<img src="avatar_image/avatar2.jpg" class="user_profile_img" />
<div class="user_name" ><?php echo $channel_name;?></div>
<div class="channel_description" ><?php echo $channel_description;?></div>
</div>
<div class="single_image_div" >
<img src="post_image/<?php echo $post_img; ?>" class="post_image" />
</div>
<!--div class="img_cover" ></div-->
</a>
</div>
<?php
}
}
}*/
}
}
}
//////////////////////////////////////////////////////////////////////////////////
if($status =='img_download_count_insert')
{
$my_id = $_GET['my_id'];
$id_img = $_GET['id_img'];
$get_down_count_img ="select * from img_down_counttb where my_ip='$user_ip' AND img_id='$id_img' ";
$run_down_count_img = mysqli_query($con,$get_down_count_img);
$check_downl_count_img = mysqli_num_rows($run_down_count_img);
if($check_downl_count_img >0){}else{
$insert_img_downl_count ="insert into img_down_counttb(my_id,my_ip,img_id,cur_country,cur_city,cur_day,cur_month,cur_year,cur_time)
values('$my_id','$user_ip','$id_img','$country','$city','$curr_day','$curr_month','$curr_year',CURTIME() )";
$run_insert_img_downl_count = mysqli_query($con,$insert_img_downl_count);
}
}
if($status =='display_img_downl_conut')
{
$img_id = $_GET['img_id'];
$get_down_count_img ="select * from img_down_counttb where img_id='$img_id' ";
$run_down_count_img = mysqli_query($con,$get_down_count_img);
$check_downl_count_img = mysqli_num_rows($run_down_count_img);
if($check_downl_count_img >0){
echo $check_downl_count_img;
}
}
////////////////////////////////////////////////////////////////////////////////////
if($status =='img_view_insert')
{
$my_id = $_GET['my_id'];
$id_img = $_GET['id_img'];
$studio_id = $_GET['studio_id'];
$get_view_img ="select * from img_viewtb where my_ip='$user_ip' AND img_id='$id_img' ";
$run_view_img = mysqli_query($con,$get_view_img);
$check_view_img = mysqli_num_rows($run_view_img);
if($check_view_img >0){}else{
$insert_img_view ="insert into img_viewtb(my_id,my_ip,studio_id,img_id,cur_country,cur_city,cur_day,cur_month,cur_year,cur_time)
values('$my_id','$user_ip','$studio_id','$id_img','$country','$city','$curr_day','$curr_month','$curr_year',CURTIME() )";
$run_insert_img_downl_count = mysqli_query($con,$insert_img_view);
}
}
if($status =='display_img_view_conut')
{
$img_id = $_GET['img_id'];
$get_view_img ="select * from img_viewtb where img_id='$img_id' ";
$run_view_img = mysqli_query($con,$get_view_img);
$check_view_img = mysqli_num_rows($run_view_img);
if($check_view_img >0){
echo $check_view_img;
}
}
////////////////////////////////////////////////////////////////////////////////////////
if($status =="zoomed_post_name")
{
$image_on = $_GET['image_on'];
$get_post_img ="select * from crane_imgtb where image_url ='$image_on' ";
$run_get_post_img = mysqli_query($con,$get_post_img);
while($row_get_post_img = mysqli_fetch_array($run_get_post_img))
{
$post_name = $row_get_post_img['describe_actions'];
if($post_name !==""){
echo"<div class='post_name_out_mob' > $post_name</div>";
}
}
}
///////////////////////////////////////////////////////////////////////////////////////
if($status =="save_comment")
{
$my_id = $_GET['my_id'];
$post_id = $_GET['post_id'];
$comm_input = $_GET['comm_input'];
$insert_comm ="insert into commenttb (my_id,post_id,comment_text,country,city,cur_date,cur_time)
values('$my_id','$post_id','$comm_input','$country','$city',CURDATE(),CURTIME() )";
$run_insert_comm =mysqli_query($con,$insert_comm);
}
if($status =="display_comment")
{
$post_id = $_GET['post_id'];
$disp_comment = "select * from commenttb where post_id='$post_id' ";
$run_disp_comment = mysqli_query($con,$disp_comment);
while($row_disp_comment = mysqli_fetch_array($run_disp_comment))
{
$comment_text = $row_disp_comment['comment_text'];
$my_id = $row_disp_comment['my_id'];
$con = mysqli_connect('localhost','root','2019khalaf','cranebule_userdb');
if(! $con){echo"You have not connected to the database.";}
else{
$get_user = "select * from cb_userstb where id='$my_id' ";
$run_get_user = mysqli_query($con,$get_user);
while($row_get_user = mysqli_fetch_array($run_get_user)){
$profile_img = $row_get_user['profile_image'];
$user_name = $row_get_user['lname'];
?>
<div style="width:100%;float:left;backgroundk:red;">
<img src="avatar_image/avatar2.jpg" class="user_profile" />
<div class="com_name"><?php echo"$user_name"; ?></div>
<div class="single_com"><?php echo $comment_text; ?></div>
</div>
<?php
} }
}
}
//////////////////////////////////////////////////////////////////////////////////////////////
if($status =='disp_comm_count')
{
$post_id = $_GET['post_id'];
$disp_comment = "select * from commenttb where post_id='$post_id' ";
$run_disp_comment = mysqli_query($con,$disp_comment);
$check_comment = mysqli_num_rows($run_disp_comment);
if($check_comment >0){
echo $check_comment;
}
}
/////////////////////////////////////////////////////////////////////////////////////////////
?>