示例#1
0
     if ($android != '' && $apple != '') {
         $androidIcon = '<a href="' . $android . '"><span class="android float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>';
         $appleIcon = '<a href="' . $apple . '"><span class="apple float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>';
     } else {
         if ($android != '' && $apple == '') {
             $androidIcon = '<a href="' . $android . '"><span class="android float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>';
             $appleIcon = '<span class="apple float-left med-opacity med-large-font center-text bold small-padding-top font-red">X</span>';
         } else {
             if ($android == '' && $apple != '') {
                 $androidIcon = '<span class="android float-left med-opacity med-large-font center-text bold small-padding-top font-red">X</span>';
                 $appleIcon = '<a href="' . $apple . '"><span class="apple float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>';
             }
         }
     }
 }
 $timeAgoObject = new convertToAgo();
 $convertedTime = $timeAgoObject->convert_datetime($postdate);
 // Convert Date Time
 $when = $timeAgoObject->makeAgo($convertedTime);
 if ($image == 'na') {
     $photo = 'style/no-photo1.svg';
 } else {
     $photo = 'permUploads/' . $image;
 }
 $percentage = 0;
 if ($price != 0) {
     $price1 = number_format($price);
     $price = '$' . $price1;
 } else {
     if ($price == 0) {
         $price = "FREE";
示例#2
0
      <div class="clr"></div>
  </div>
<div i
class="clr"></div>

  <div class="content">
      <div class="content_bg">
        <div class="clr"></div>
    </div>

 <?php 
include_once "wi_class_files/autoMakeLinks.php";
include_once "wi_class_files/agoTimeFormat.php";
// Create the two new objects before we can use them below in this script
$activeLinkObject = new autoActiveLink();
$myObject = new convertToAgo();
// ------- INITIALIZE SOME VARIABLES ---------
// they must be initialized in some server environments or else errors will get thrown
$id = "";
$username = "";
$firstname = "";
$lastname = "";
$mainNameLine = "";
$country = "";
$state = "";
$city = "";
$zip = "";
$bio_body = "";
$website = "";
$youtube = "";
$facebook = "";
示例#3
0
  </div>
 <div class="menu_nav">
      <div class="clr"></div>
  </div>
<div i
class="clr"></div>

  <div class="content">
      <div class="content_bg">
        <div class="mainbar">

<?php 
//session_start();
include_once "agoTimeFormat.php";
$myAgoObject = new convertToAgo();
include_once "connect_to_mysql.php";
if (isset($_GET['id']) && $_GET['id'] != "") {
    $sid = preg_replace('#[^0-9]#i', '', $_GET['id']);
} else {
    echo "ERROR: Variables to run this script have been removed from the URL.";
    exit;
}
$sql = mysql_query("SELECT * FROM forum_sections WHERE id='{$sid}' LIMIT 1");
$numRows = mysql_num_rows($sql);
if ($numRows < 1) {
    echo "ERROR: That section deos not exist you have tampered with our URLs.";
    exit;
}
while ($row = mysql_fetch_array($sql)) {
    $sectionTitle = $row["title"];
示例#4
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php 
session_start();
include_once "connect_to_mysql.php";
include_once "agoTimeFormat.php";
$myAgoObject = new convertToAgo();
// Establish the object
// Get the "id" URL variable and query the database for the original post of this thread
$thread_id = preg_replace('#[^0-9]#i', '', $_GET['id']);
$sql = mysql_query("SELECT * FROM forum_posts WHERE id='{$thread_id}' AND type='a' LIMIT 1");
$numRows = mysql_num_rows($sql);
if ($numRows < 1) {
    echo "ERROR: That thread does not exist. ";
    exit;
}
while ($row = mysql_fetch_array($sql)) {
    $post_author = $row["post_author"];
    $post_author_id = $row["post_author_id"];
    $date_time = $row["date_time"];
    $date_time = strftime("%b %d, %Y", strtotime($date_time));
    $section_title = $row["section_title"];
    $section_id = $row["section_id"];
    $thread_title = $row["thread_title"];
    $post_body = $row["post_body"];
}
$all_responses = "";
$sql = mysql_query("SELECT * FROM forum_posts WHERE otid='{$thread_id}' AND type='b'");
$numRows = mysql_num_rows($sql);
if ($numRows < 1) {
示例#5
0
         if ($statusnumrows2 > 1) {
             $reviews = "" . $statusnumrows2 . " Reviews";
         }
     }
 }
 $comments = '';
 $comment_count = "No Comments";
 $sql = "SELECT * FROM comments WHERE postid='{$statusId}' ORDER BY postdate DESC LIMIT 999999999";
 $query = mysqli_query($db_conx, $sql);
 $statusnumrows = mysqli_num_rows($query);
 if ($statusnumrows > 0) {
     while ($row = mysqli_fetch_array($query, MYSQLI_ASSOC)) {
         $commenter = $row['user'];
         $comment = $row['data'];
         $comment_date = $row['postdate'];
         $timeAgoObject = new convertToAgo();
         $convertedTime = $timeAgoObject->convert_datetime($comment_date);
         // Convert Date Time
         $comment_date = $timeAgoObject->makeAgo($convertedTime);
         $sql2 = "SELECT * FROM users WHERE username='******' LIMIT 1";
         $query2 = mysqli_query($db_conx, $sql2);
         $statusnumrows2 = mysqli_num_rows($query2);
         while ($row = mysqli_fetch_array($query2, MYSQLI_ASSOC)) {
             $comment_name = $row['name'];
             $comment_avatar = $row['avatar'];
         }
         $comments .= '<div class="med-padding"><div class="tiny-square profile_p inline-block" style="' . $comment_avatar . '"></div><a class="small-margin-left bold font-blue med-font" href="user.php?u=' . $commenter . '">' . $comment_name . '</a><span class="small-font font-gray small-margin-left">' . $comment_date . '</span><br><div class="med-margin-left tiny-margin-top">' . $comment . '</div></div>';
     }
 } else {
     $comments = '<h2 class="center-text font-gray bold no-comment">No Comments Found.</h2>';
 }