HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/tfgarchive/wpblogtest1.old/wp-content/themes/carrington-blog/forms/comment.php
<?php

// This file is part of the Carrington Theme for WordPress
// http://carringtontheme.com
//
// Copyright (c) 2008 Crowd Favorite, Ltd. All rights reserved.
// http://crowdfavorite.com
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
// **********************************************************************

if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
if (CFCT_DEBUG) { cfct_banner(__FILE__); }

global $post, $user_ID, $user_identity, $comment_author, $comment_author_email, $comment_author_url;

$req = get_option('require_name_email');

// if post is open to new comments
if ('open' == $post->comment_status) {
	// if you need to be regestered to post comments..
	if ( get_option('comment_registration') && !$user_ID ) { ?>

<p id="you-must-be-logged-in-to-comment"><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.', 'carrington'), get_bloginfo('wpurl').'/wp-login.php?redirect_to='.get_permalink()); ?></p>

<?php
	}
	else { 
?>

<form action="<?php bloginfo('wpurl'); ?>/wp-comments-post.php" method="post" id="comment-form">
	<div id="comment-form-comment" class="section">
		<label id="respond" for="comment"><?php _e('Post a comment', 'carrington'); ?></label>
		<div>
			<textarea name="comment" id="comment" rows="8" cols="40" tabindex="1"></textarea>
			<p id="some-html-is-ok"><abbr title="<?php printf(__('You can use: %s', 'carrington'), allowed_tags()); ?>"><?php _e('Some HTML is OK', 'carrington'); ?></abbr></p>
		</div>
	</div>
<?php // if you're logged in...
		if ($user_ID) {
?>
	<p class="logged-in section"><?php printf(__('Logged in as <a href="%s">%s</a>.', 'carrington'), get_bloginfo('wpurl').'/wp-admin/profile.php', $user_identity); ?> <a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'carrington'); ?>"><?php _e('Logout &rarr;', 'carrington'); ?></a></p>
<?php
		}
		else { 
?>
	<p id="comment-form-name" class="section">
		<label for="author"><?php _e('Name', 'carrington'); ?></label>
		<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="2" />
		<?php if ($req) : ?><span class="note"><?php _e('(required)', 'carrington'); ?></span><?php endif; ?>
	</p><!--/name-->
	<p id="comment-form-email" class="section">
		<label for="email"><?php _e('Email', 'carrington'); ?></label>
		<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="3" />
		<span class="note"><?php
			if ($req) {
				_e('(required, but never shared)', 'carrington');
			}
			else {
				_e('(never shared)', 'carrington');
			}
?></span>
	</p><!--/email-->
	<p id="comment-form-url" class="section">
		<label title="<?php _e('Your website address', 'carrington'); ?>" for="url"><?php _e('Web', 'carrington'); ?></label>
		<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="4" />
	</p><!--/url-->
<?php 
		} 
?>
	<p class="actions">
		<input name="submit" type="submit" id="submit" value="<?php _e('Post comment', 'carrington'); ?>" tabindex="5" />
		<span id="comment-form-trackback"><?php printf(__('or, reply to this post via <a rel="trackback" href="%s">trackback</a>.', 'carrington'), get_trackback_url()); ?></span>
		<input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />
	</p><!--/controls-->
<?php
do_action('comment_form', $post->ID);
?>
</form>
<?php 
	} // If registration required and not logged in 
} // If you delete this the sky will fall on your head
?>