Вход Регистрация
Файл: hashtag.io-2629a1a4ea078149b002e45e2e12bb946062c2b8/hashtag.php
Строк: 76
<?php include 'config/declare.php'; ?>

<!-- a universal file that has all the classes included -->
<?php include 'config/classesGetter.php'; ?>

<!-- creating objects -->
<?php
  $universal 
= new universal;
  
$avatar = new Avatar;
  
$post = new post;
  
$settings = new settings;
  
$noti = new notifications;
  
$message = new message;
  
$hashtag = new hashtag;
?>

<?php
  
if ($universal->checkGet($_GET['tag']) == false) {
    
header('Location:'.DIR);
  }
  if (
$universal->isLoggedIn() == false) {
    
header("Location:". DIR ."/login");
  }
  
$tag = $_GET['tag'];
  
$tag = preg_replace("/[<> ]/", "", $tag);
  
$session = $_SESSION['id'];
?>

<?php
  $title 
= "{$noti->titleNoti()} #$tag • Hashtag";
  
$keywords = "#$tag, Hashtag, Share and capture world's moments";
  
$desc = "View posts tagged with #$tag • Hashtag";
?>

<?php include_once 'includes/header.php'; ?>
<?php 
include_once 'needs/heading.php'; ?>
<?php 
include_once 'needs/nav.php'; ?>

<div class="user_info" data-tag='<?php echo $tag; ?>' data-userid='<?php echo $session; ?>'></div>

<div class="overlay"></div>
<div class="notify"><span></span></div>
<div class="badshah">
  <div class="senapati">

    <div class="hashtag_info inst">
      <span>#<?php echo $tag; ?></span>
      <span class="no_of_tag_peop"><?php echo $hashtag->noOfHashTagPosts($tag); ?> posts</span>
    </div>

    <div class="prajkumar view_rajkumar">
      <?php $hashtag->hashtaggedPost($tag, "direct", "0"); ?>
    </div>

    <div class="srajkumar">
    <?php $hashtag->usersHashtags($session); ?>
    <?php $hashtag->popularHashtags(); ?>

    </div>

  </div>
</div>

<?php include_once 'needs/display.php'; ?>
<?php 
include_once 'needs/prompt.php'; ?>
<?php 
include_once 'needs/image_show.php'; ?>
<?php 
include_once 'needs/stickers.php'; ?>
<?php 
include_once 'needs/search.php'; ?>

<?php include_once 'includes/footer.php'; ?>
Онлайн: 3
Реклама