Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/kitchenfoodrecipes.com/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/kitchenfoodrecipes.com/post.php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require_once('dt_admin/lib/functions.php');
$db = new login_function();

if(isset($_GET['pid']))
{
    $blog_post_id =   $_GET['pid'];
    $_SESSION['blog_post_id']   =   $blog_post_id;
}
else if(isset($_SESSION['blog_post_id']))
{
    $blog_post_id =   $_SESSION['blog_post_id'];
}

/******************************Visitor Count*******************/
    //Unique visitor counter code
	/*if(!isset($_SESSION['page_visitor_count_set']))
	{		
		$unique_counter_val = $db->get_page_unique_counter_value($blog_post_id);
		if($unique_counter_val=="")			
		{
		    $unique_counter_val = 0;
		}
		$unique_counter_val = $unique_counter_val + 1;
		$db->update_page_unique_visitor($unique_counter_val,$blog_post_id);
	
		//Set visitor session
		$_SESSION['page_visitor_count_set']	=	1;
	}*/
	
	//All page refresh or all page visit counter
	$daily_visitors_count = $db->get_daily_page_counter_val($blog_post_id);
	$daily_visitors_count = $daily_visitors_count + 1;
	$db->update_daily_page_visitor_count($daily_visitors_count,$blog_post_id);
/******************************/

$post_subcat_id		=	"";
$main_category_id	=	"";
$sub_category_name	=	"";
$main_category_name	=	"";

//get_category_name_from_category_id($category_id)
$post_subcat_id = $db->get_post_sub_category_id($blog_post_id);

$sub_category_data = $db->get_sub_category_name_from_id($post_subcat_id);
if(!empty($sub_category_data))
{
	$main_category_id =	$sub_category_data[0];

	$sub_category_name	=	$sub_category_data[1];
	
	$main_category_name	=	$db->get_main_category_name_from_id($main_category_id);
}

    $title_tag_var      = "";
    $keywords_var       = "";
    $description_var    = "";
    $index_no_index_var = "";
    $article_main_title_var =   "";
    $db_author_name         =   "";
    $display_author_name    =   "";
    
    $thumbnail_image_name_var   =   "";
    $thumbnail_image_alt_var    =   "";
    $blog_post_date_var         =  	$db->get_date_from_post_id($blog_post_id);
	$date_data = explode("-",$blog_post_date_var);
	$blog_post_date_var = $date_data[2]."-".$date_data[1]."-".$date_data[0];

    $post_preview_data  =   $db->get_all_contents_of_blog_post_for_creating_post_file($blog_post_id);
    if(!empty($post_preview_data))
    {
        foreach($post_preview_data as $post_data_records)
        {
            //Get only meta tags and single time used tags
            $res_post_content_type_code_no = $post_data_records[2];
            if($res_post_content_type_code_no==1)
            {
                $title_tag_var      = $post_data_records[3];
            }
            else if($res_post_content_type_code_no==2)
            {
                $keywords_var      = $post_data_records[3];
            }
            else if($res_post_content_type_code_no==3)
            {
                $description_var      = $post_data_records[3];
            }
            else if($res_post_content_type_code_no==4)
            {
                $index_no_index_var      = $post_data_records[3];
            }
            else if($res_post_content_type_code_no==5)
            {
                $article_main_title_var      = $post_data_records[3];
            }
            else if($res_post_content_type_code_no==11)
            {
                $thumbnail_image_alt_var    = $post_data_records[3];
                $thumbnail_image_name_var   = $post_data_records[8];                
            }
            else if($res_post_content_type_code_no==20)
            {
                $db_author_name    = $post_data_records[3];
            }
        }
    }
    
    if($db_author_name!="")
    {
    	$display_author_name = $db_author_name;
    }
    else
    {
    	$display_author_name    =   $author;
    }
    
    $title_color_name = $db->get_text_title_color($blog_post_id);

    if($title_color_name=="")
    {
    	$title_color_name = "#005174";
    }
?>
<!DOCTYPE html>
<html>
<head>
    <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QS71NNGNEL"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-QS71NNGNEL');
</script>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="icon" href="<?php echo $ico_icon_path; ?>" type="image/ico">
	<title><?php echo $title_tag_var; ?></title>
    <meta name="keywords" content="<?php echo $keywords_var; ?>" />
    <meta name="description" content="<?php echo $description_var; ?>" />
    <meta name="robots" content="<?php echo $index_no_index_var; ?>" /> 
	<link rel="stylesheet" type="text/css" href="<?php echo $project_base_url; ?>css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $project_base_url; ?>css/web.css" />
    
    <meta property="og:site_name" content="BreakingNews4U.com">
    <meta property="og:title" content="<?php echo $article_main_title_var; ?>" />
    <meta property="og:description" content="<?php echo $article_main_title_var; ?>" />
    <meta property="og:image" itemprop="image" content="<?php echo $project_base_url; ?>post-images/<?php echo $thumbnail_image_name_var; ?>"/>
    <meta property="og:type" content="website" />
    <meta property="og:updated_time" content="1440432930" />

    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3625024316663168"
     crossorigin="anonymous"></script>
     
</head>
<body>
<?php require_once("header.php"); ?>

<a href="whatsapp://send?text=<?php echo $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?>" data-action="share/whatsapp/share" target="_blank"><img src="images/share-news.png" class="share_news_img" /></a>

<div class="container text-center">
    <div class="row justify-content-center">
  
    <!--Left Section-->
    <div class="col-md-8 col-lg-8 col-sm-12 col-xs-12 first_section">
  
	<!--Blog Post List-->
	<div class="blog_posts">
	
	<div class="breadcrumb">
		<a href="<?php echo $project_base_url; ?>index.php">Home</a> / <a href="<?php echo $project_base_url; ?>category.php?cid=<?php echo $main_category_id; ?>&<?php echo $main_category_name; ?>"><?php echo $main_category_name; ?></a> / <a href="<?php echo $project_base_url; ?>category.php?sid=<?php echo $post_subcat_id; ?>"><?php echo $sub_category_name; ?></a>
	</div>
	
	<h1 class="blog_title" style="color:<?php echo $title_color_name; ?>"><?php echo $article_main_title_var; ?></h1>
	<img src="<?php echo $project_base_url; ?>post-images/<?php echo $thumbnail_image_name_var; ?>" class="blog_img" alt="<?php echo $thumbnail_image_alt_var; ?>" title="<?php echo $thumbnail_image_alt_var; ?>" data-src="<?php echo $project_base_url; ?>post-images/<?php echo $thumbnail_image_name_var; ?>" />

	<div class="blog_post_bottom">
		<img src="<?php echo $project_base_url; ?>images/datetime.png" alt="blog post date" class="post_bottom_icon" /><span class="post_bottom_txt"><?php echo $blog_post_date_var; ?></span>
		<!--<img src="<?php echo $project_base_url; ?>images/comments.png" alt="post comments" class="post_bottom_icon" /><span class="post_bottom_txt"><?php echo $blog_post_comments_count_var; ?> Comments</span>-->
		<img src="<?php echo $project_base_url; ?>images/author.png" alt="author name" class="post_bottom_icon" /><span class="post_bottom_txt"><?php echo $display_author_name; ?></span>
		<!--<img src="<?php echo $project_base_url; ?>images/category.png" alt="post category" class="post_bottom_icon" /><span class="post_bottom_txt"><?php echo $main_category_name; ?>/<?php echo $sub_category_name; ?></span>-->
	</div> 
	<hr />
	<!--Post Contents-->
<?php
    //Post contents start to show
    if(!empty($post_preview_data))
    {
        foreach($post_preview_data as $post_data_records)
        {            
            $res_post_content_type_code_no = $post_data_records[2];
            if($res_post_content_type_code_no==6)
            {
			?>
                <!--H2 Tag-->
                <h2 class="sub_title"><?php echo $post_data_records[3]; ?></h2>
			<?php	
            }
            else if($res_post_content_type_code_no==7)
            {
			?>
                <!--H3 tag-->
                <h3 class="post_inside_sub_title"><?php echo $post_data_records[3]; ?></h3>
			<?php	
            }
            else if($res_post_content_type_code_no==8)
            {
			?>
                <!--Paragraph Tag-->
                <p class="paragraph_contents"><span class="blank_space"></span><?php echo $post_data_records[3]; ?></p>
			<?php	
            }
            else if($res_post_content_type_code_no==9)
            {
			?>	
                <!--Image Tag-->
                <img src="<?php echo $project_base_url; ?>post-images/<?php echo $post_data_records[8]; ?>" class="blog_post_img" alt="<?php echo $post_data_records[3]; ?>" />
			<?php	
            }
            else if($res_post_content_type_code_no==10)
            {
			?>	
                <!--Video Tag-->              
                <iframe class="blog_post_youtube_video" src="https://www.youtube.com/embed/<?php echo $post_data_records[3]; ?>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
			<?php
            }
            else if($res_post_content_type_code_no==11)
            {
              //Dont do anything here, already baught the thumbnail image at above
            }
            else if($res_post_content_type_code_no==12)
            {
			?>	
                <!--Anchor Tag-->              
                <a href="<?php echo $post_data_records[3]; ?>" target="_blank" class="anchor_tag_link"><img src="<?php echo $project_base_url; ?>images/link-icon.png" alt="anchor tag link icon" class="anchor_link_icon" /><?php echo $post_data_records[3]; ?></a>
			<?php	
            }
            else if($res_post_content_type_code_no==13)
            {
                //Google Advertise
            }
            else if($res_post_content_type_code_no==14)
            {
			?>	
                <!--Bullet-->
                <span class="list_contents"><img src="<?php echo $project_base_url; ?>images/orange-arrow-icon.png" class="icon_1" alt="contents bullet arrow icon" /><?php echo $post_data_records[3]; ?><span>
			<?php	
            }
            else if($res_post_content_type_code_no==15)
            {
			?>	
              <!--Bullet Tag-->
              <span class="list_contents"><img src="<?php echo $project_base_url; ?>images/orange-arrow-icon.png" class="icon_1" alt="contents bullet arrow icon" /><?php echo $post_data_records[3]; ?></span>
			<?php  
            }
            else if($res_post_content_type_code_no==16)
            {
                //Bullet ICON 3
            ?>	
              <!--Bullet Tag-->
              <span class="list_contents"><img src="<?php echo $project_base_url; ?>images/orange-arrow-icon.png" class="icon_1" alt="contents bullet arrow icon" /><?php echo $post_data_records[3]; ?></span>
			<?php  
            }
            else if($res_post_content_type_code_no==17)
            {
                //Bullet ICON 3
            }
            else if($res_post_content_type_code_no==18)
            {
			?>
                <hr />
			<?php	
            }
            else if($res_post_content_type_code_no==21)
            {
			?>	
                <!--Flash News-->
                <div class="flash_news" style="color:purple; font-family:cambria; line-height:45px; font-size:20px; text-align:left;"><img src="<?php echo $project_base_url; ?>images/flash.png" class="icon_1" style="height:30px; width:30px;" alt="contents bullet arrow icon" /><?php echo $post_data_records[3]; ?></div>
			<?php	
            }
        }
    }
	?>
    <!--End Post Contents-->
	
    </div>
    <!--End Of Blog Post List-->

    </div>
    <!--End Left Section-->

  <?php
    require_once("right-side.php");
  ?>

  </div>
  </div>

<?php
  require_once("footer.php");
?>

</body>
</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4