All pastes #162955 Raw Edit

Dr4g

public php v1 · immutable
·published 2006-09-07 00:30 UTC
rendered paste body
<?php	session_start();	include("connect.php");	include("functions/common_functions.php");	include("functions/navbar_functions.php");	include("functions/query_functions.php");		include("functions/forum_functions.php");							include("functions/main_functions.php");		db_decoy();			if(isset($_SESSION['alive'])) {		$name = $_SESSION['name'];		$now = time();		updateLastActive($name, $now);			}				?><!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"><!-- DW6 --><head><!-- Copyright 2005 Macromedia, Inc. All rights reserved. --><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Welcome To Lunies.net</title><link rel="shortcut icon" type="image/ico" href="../glogo.jpg"><link rel="stylesheet" href="../styles.css" type="text/css" /></head><!-- The structure of this file is exactly the same as 2col_rightNav.html;     the only difference between the two is the stylesheet they use --><body><div style="width: 100%; background-color: #FFFFFF; margin-left: auto; margin-right: auto;"><div id="masthead">	&nbsp;&nbsp; <img src="../logo.jpg" width="400" height="55" /></div><!-- end masthead --><div id="content">  <div id="breadCrumb"> <a href="../index.php">Home</a> / <a href="forum.php">Forum</a> </div>  <h2 id="pageName">GardCMS Forum</h2>  <div class="story"><?php	// check mode for viewTopic, viewThread	if(isset($_GET['mode'])) {		if($_GET['mode'] == "viewtopic") {			if(!isset($_GET['tid'])) {				echo "Invalid Viewing of Topic";				exit();			} elseif(!is_numeric($_GET['tid'])) {				echo "Thread ID Wasnt a Numeric Value";				exit();			} else {				// Output all threads associated with the topic ID				$tid = $_GET['tid'];				$tid = htmlentities($tid, ENT_QUOTES);				outputThreadsByTopicID($tid);			}		}	}		if(isset($_GET['mode'])) {			if($_GET['mode'] == "viewthread") {			if(!isset($_GET['tid'])) {				echo "Invalid Viewing of Thread";				exit();			} elseif(!is_numeric($_GET['tid'])) {				echo "Thread ID Wasnt a Numeric Value";				exit();			} else				outputPostsByThreadID($_GET['tid']);		}	}		if(isset($_GET['mode'])) {		if($_GET['mode'] == "reply") {			if(!isset($_GET['tid'])) {				echo "Invalid Replying To Thread";				exit();			} elseif(!is_numeric($_GET['tid'])) {				echo "Thread ID Wasnt a Numeric Value";				exit();			} else {				replyToPost($_GET['tid']);				outputPostsByThreadID($_GET['tid']);			}		}	}			if(isset($_GET['mode'])) {		if($_GET['mode'] == "addthread") {			if(!isset($_GET['tid'])) {				echo "Invalid Creation of New Thread";				exit();			} elseif(!is_numeric($_GET['tid'])) {				echo "Thread ID Wasnt a Numeric Value";				exit();			} else {				createNewThread($_GET['tid']);				outputThreadsByTopicID($_GET['tid']);			}		}	}				if(isset($_GET['mode'])) {		if($_GET['mode'] == "addtopic") {				createNewTopic();				outputAllTopics();		}	}						else {		outputAllTopics();	}	?>  </div></div><!--end content --><?php $dir = "cms"; displayNavBar($dir);  ?><!--end navbar --><br />  <div class="onlineusers">	<h3>Online Users</h3>   Within last 5 mins<br/><?php findActiveUsers(); ?>  </div>  <div id="siteInfo"> <img src="../glogo.jpg" width="44" height="22" /> <a href="#">About Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> | &copy;2006 Gard Coding - Powered by GardCMS </div><br /></div></body></html>