ShellFront.org - where shells come alive
", $comment); /* $comment = addslashes($comment); */ $mysql_access = mysql_connect($localhost, $user, $pw); mysql_select_db($db, $mysql_access); // $dup_query = "SELECT * FROM sf_comments WHERE comment='$comment'"; // $dup_result = mysql_query ($query, $mysql_access); // $dup_row = mysql_fetch_array ($dup_result); // $duplicate = $dup_row['comment']; // if (!$duplicate = "") // { $query = "INSERT INTO sf_comments VALUES (0, '$id', '$comment', '$comment_author', '$comment_email', '$comment_timestamp', '$ip')"; $result = mysql_query ($query, $mysql_access); $query = "UPDATE sf_news SET comments=comments+1 WHERE ID='$id'"; $result = mysql_db_query($db,$query); mysql_close (); // } // else // { // echo "refresh"; // } } else { echo "You left required fields blank."; } } $mysql_access = mysql_connect($localhost, $user, $pw); $query = "SELECT * FROM sf_news WHERE id='$id'"; $result = mysql_db_query ($db, $query); $row = mysql_fetch_array ($result); $tag = $row['ID']; $title = stripslashes($row['title']); $body = stripslashes($row['body']); $source = stripslashes($row['source']); $url = stripslashes($row['url']); $timestamp = $row['timestamp']; $author = $row['admin_id']; $comments = $row['comments']; $shell = ereg_replace("_", " ", $row['shell_id']); $query2 = "SELECT * FROM admin WHERE admin_id='$author'"; $result2 = mysql_db_query ($db, $query2); $row2 = mysql_fetch_array ($result2); $author = "".$row2['admin_name'].""; render_news_story($title, $body, $source, $url, $author, $timestamp, $tag, $comments, $shell); echo "

"; $query = "SELECT * FROM sf_comments WHERE news_id='$id' ORDER BY id DESC"; $result = mysql_db_query ($db, $query); if(mysql_num_rows ($result)){ while ($row = mysql_fetch_array ($result)){ $authortest = $row['comment_author']; $authortest = $row['comment_author'] . "@email_withheld"; $timestamp = gmdate("D M dS Y H:i:s", $row['comment_timestamp']); $timestamp = ereg_replace(" 0", " ", $timestamp); $comment = stripslashes($row['comment']); $ip = $row['ip']; echo "
"; if($row['comment_email'] == $authortest) { echo "".$row['comment_author'].""; } else { echo "".$row['comment_author'].""; } echo "
on $timestamp
$comment


"; //
$ip } }else{ echo "There are no comments for this item."; } mysql_close(); echo "

Name:



Email:

email obfuscation is encouraged to protect against spammers


Comment:
see comment policy

"; ?>
where would I be without winamp? metapad - the best vanilla notepad replacement available! Slackware Linux - I love it!
(hosted by Liquid Web!)
This site (ShellFront, http://www.shellfront.org), its name, its contents, means of organization, layout Copyright © 2001-2003 Joel D. Parker unless otherwise mentioned on this site.
News posted on this site (ShellFront, http://www.shellfront.org) is Copyright © 2001-2003 of the respective author (listed at the end of each post). All comments made on this site are Copyright © 2001-2003 of the respective author (listed on the left of each comment).
The organization, file naming scheme, and layout (Collection) of the Archives (LS modules, utilities, shells, source code, documents, reviews, et al) on this site (ShellFront, http://www.shellfront.org) is Copyright © 2001-2003 Joel D. Parker. The invididual files and source are copyrighted by the respective owners and licensed separately from any expressed license by ShellFront regarding the Collection.
Usage of content found on ShellFront elsewhere is strictly prohibited except as allowed by the Copyright laws of the United States of America or as allowed by the copyright holder.
ShellFront's Privacy Policy
The "ShellFront" name was created by NeXTer