killerqueen
Joined: 25 Jun 2004 Posts: 2
|
Posted: Fri Jun 25, 2004 3:16 pm Post subject: No input file specified? |
|
|
HELP ME! Everytime I try to write a comment for my blog it just says: No input file specified. It's worked. This problem accured right after I changed my template . This is the comments template code: Code: | <?php // Do not delete these lines
if (basename($HTTP_SERVER_VARS["SCRIPT_FILENAME"]) == "b2comments.php")
die ("please, do not load this page directly");
if (($withcomments) or ($c)) {
$comment_author = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "name" : $HTTP_COOKIE_VARS["comment_author"];
$comment_author_email = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "email" : trim($HTTP_COOKIE_VARS["comment_author_email"]);
$comment_author_url = (empty($HTTP_COOKIE_VARS["comment_author"])) ? "url" : trim($HTTP_COOKIE_VARS["comment_author_url"]);
$queryc = "SELECT * FROM $tablecomments WHERE comment_post_ID = $id AND comment_content NOT LIKE '%<trackback />%' AND comment_content NOT LIKE '%<pingback />%' ORDER BY comment_date";
$resultc = mysql_query($queryc);
if ($resultc) {
?>
<!-- you can start editing here -->
<table width=100% cellspacing=1 style="border-collapse: collapse">
<tr><td class="table1"><div align="center">Comments</div></tr></td>
<tr><td class="table2">
<?php /* this line is b2's motor, do not delete it */ $wxcvbn_c=0; while($rowc = mysql_fetch_object($resultc)) { $wxcvbn_c++; $commentdata = get_commentdata($rowc->comment_ID); ?>
<a name="c<?php comment_ID()?>"></a>
<!-- comment -->
<p><div align="center">
<b><?php comment_author()?> <?php comment_author_email_link("email", " - ", "")?><?php comment_author_url_link("url", " - ", "") ?></b>
<br />
<?php comment_text() ?>
<br />
<?php comment_date() ?> @ <?php comment_time() ?>
</p></div>
<!-- /comment -->
<?php /* end of the loop, don't delete */ } if (!$wxcvbn_c) { ?>
<!-- this is displayed if there are no pingbacks so far -->
<p>No Comment on this post so far.</p>
<?php /* if you delete this the sky will fall on your head */ } ?>
<tr><td class="table1"><div align="center">leave a comment</div>
</tr></td>
<!-- form to add a comment -->
<tr><td class="table2">
<form action="<?php echo $siteurl; ?>/b2comments.post.php" method="post">
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($HTTP_SERVER_VARS["REQUEST_URI"]); ?>"/>
<div align="center"><p class="commentfield">
name<br/>
<input type="text" name="author" class="textarea" value="<?php echo $comment_author?>" size="20" tabindex="1"/>
</p>
<p class="commentfield">
email<br/>
<input type="text" name="email" class="textarea" value="<?php echo $comment_author_email?>" size="20" tabindex="2"/>
</p>
<p class="commentfield">
url<br/>
<input type="text" name="url" class="textarea" value="<?php echo $comment_author_url ?>" size="20" tabindex="3"/>
</p>
<p class="commentfield">
your comment<br/>
<textarea cols="40" rows="4" name="comment" tabindex="4" class="textarea">comment</textarea>
</p>
<p class="commentfield">
<input type="checkbox" name="comment_autobr" value="1" <?php
if ($autobr)
echo " checked=\"checked\""?> tabindex="6"/><BR> Auto-BR<br/>
<input type="submit" name="submit" class="buttonarea" value="ok" tabindex="5"/>
</p>
</div>
</form>
<!-- /form -->
</tr></td>
<tr><td class="table1">
<div align="center"> <a href="javascript:history.go(-1)">return to the blog</a></div>
</tr></td></table>
<?php // if you delete this the sky will fall on your head
}
} else {
return false;
}
?> | Help me. PLEASE I'm desperate! |
|