// database connection require_once('./includes/base.php');
if($_GET['logout'] == 1){ @$_SESSION = array(); @session_unregister($_SESSION['userID']); @session_unregister($_SESSION['userName']); @session_unregister($_SESSION['userUser']); @session_unregister($_SESSION['userPass']); @session_destroy(); }
require("./templates/$template/header.php"); include 'pagination.class.php';
?>
ob_start(); if(!empty($_SESSION['userID']) and !empty($_POST['user'])){ echo ''; } ?>
Hello world is blah, blah, blah.......!
$sql = mysql_query("SELECT users.userUser, posts.postID, posts.postPost, posts.postTime, posts.postComments, userAvatar FROM users, posts WHERE users.userID = posts.postUserID ORDER BY posts.postTime DESC "); while($row = mysql_fetch_array($sql)){ $abcd= $row['userName']; $abcd = str_replace (" ", "-", $abcd); $time = reltime($row['postTime']);
echo '  | '.$row['postPost'].' Posted by: '.$row['userUser'].', Comments '.$row['postComments'].' , Time elapsed: '.$time.' | ';}
?>
$sql = mysql_query("SELECT users.userUser, links.linksID, links.linksLink, links.linksPost, links.linksTime, links.linksComments,userAvatar FROM users, links WHERE users.userID = links.linksUserID ORDER BY links.linksTime DESC"); while($row = mysql_fetch_array($sql)){ $abcd= $row['userName']; $abcd = str_replace (" ", "-", $abcd); $time1 = reltime($row['linksTime']); echo '  | '.$row['linksPost'].' Posted by: '.$row['userUser'].', Comments '.$row['linksComments'].' , Time elapsed: '.$time1.' | ';} ?>
// testing grabimages('SELECT users.userUser, images.imagesID, images.imagesFile, images.imagesPost, images.imagesTime, images.imagesComments FROM users, images WHERE users.userID = images.imagesUserID ORDER BY images.imagesTime DESC LIMIT 20'); ?>
// Display footer require("./templates/$template/footer.php"); ?>
|
TrinityPosted Oct 11, 2009, 4:37 PM