<?php // Do not delete these lines
    
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
        die (
'Please do not load this page directly. Thanks!');
        if (!empty(
$post->post_password)) 
        { 
// if there's a password
            
if ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password
            {        
// and it doesn't match the cookie
?>
            <p class="nocomments">
                <?php _e("This post is password protected. Enter the password to view comments."); ?>
            </p>
<?php
                
return;
            }
        }
        
/* This variable is for alternating comment background */
        
$oddcomment 'alt';
?>

<!-- You can start editing here. -->
<hr />
<!-- Comments start here -->
<?php if (is_array($comments)) { ?>
    <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' COOKIEHASH] != $post->post_password) { ?>
        <p>
            <?php _e('Enter your password to view comments.'); ?>
        </p>
    <?php return; } ?>
    <h2 id="comments">
        <?php comments_number('No Responses''One Response''% Responses' );?>
        <?php _e('to'); ?> &#8220; <?php the_title(); ?> &#8221;
    </h2>
    
    <!-- Begin Comments -->
    <h3>
        <?php _e('Comments:'?>
    </h3>
    <ol class="commentlist">
        <?php foreach ($comments as $comment) { ?>
        <?php if ($comment->comment_type != "trackback" && $comment->comment_type != "pingback" && !ereg("<pingback />"$comment->comment_content) && !ereg("<trackback />"$comment->comment_content)) { ?>
            <li class="<?php echo $oddcomment?>" id="comment-<?php comment_ID() ?>">
            <p>Poster: <?php comment_author_link() ?>&nbsp;/
            From: <?php echo '<img alt="your flag" src="http://imgpool.mxchange.org/shared/flags/flag_' wp_ozh_getCountryCode(false$comment->comment_author_IP) . '.gif">' ?><br />
            Date: <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y'?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small><br />
            <?php pri_print_browser("Using: ""<br />"true"on: "); ?></p>

            <?php _e('says:'?>
                <?php if ($comment->comment_approved == '0') { ?>
                    <em><?php _e('Your comment is awaiting moderation.'?></em>
                    <br />
                <?php ?>
                <?php comment_text() ?>
            </li>
            <?php /* Changes every other comment to a different class */    
                
if ('alt' == $oddcomment$oddcomment '';
                else 
$oddcomment 'alt';
            
?>
        <?php ?>
      <?php /* end for each comment */ ?>
    </ol>
    <!-- End Comments -->
    <br />
<?php } else { // this is displayed if there are no comments so far ?>
    <?php if ('open' == $post-> comment_status) { ?>
        <!-- If comments are open, but there are no comments. -->
        <p class="nocomments"><?php _e('There are no comments yet. Be the first to post'?></p>
    <?php } else { // comments are closed ?>
        <!-- If comments are closed. -->
        <p class="nocomments"><?php _e('Comments are closed.'?></p>
    <?php ?>
<?php 
?>

<?php if ('open' == $post-> comment_status) { ?>
    <h3 id="respond"><?php _e('Leave a Reply'?></h3>
    <?php if ( get_option('comment_registration') && !$user_ID ) { ?>
    <p><?php _e('You must be '?><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"><?php _e('logged in'?></a> <?php _e('to post a comment.'?></p>
    <?php } else { ?>
        <?php if (function_exists('comments_post_js')) { comments_post_js('script'); } ?>
        <form <?php if (function_exists('comments_post_js')) { comments_post_js('action'); } ?> action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
        <?php if ( $user_ID ) { ?>
            <p><?php _e('Logged in as '?><a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account'?>">Logout &raquo;</a></p>
        <?php } else { ?>
            <p>
                <input type="text" name="author" id="author" value="<?php echo $comment_author?>" size="22" tabindex="1" />
                <label for="author"><small><?php _e('Name');
                    if (
$req_e('(required)'); ?>
                </small></label>
            </p>
            <p>
                <input type="text" name="email" id="email" value="<?php echo $comment_author_email?>" size="22" tabindex="2" />
                <label for="email"><small><?php _e('Mail (will not be published)');
                    if (
$req_e('(required)'); ?>
                </small></label>
            </p>
            <p>
                <input type="text" name="url" id="url" value="<?php echo $comment_author_url?>" size="22" tabindex="3" />
                <label for="url"><small><?php _e('Website'); ?></small></label>
            </p>
        <?php ?>
            <p><small><?php _e('<strong>XHTML:</strong> You can use these tags: '); echo allowed_tags(); ?></small></p>
            <p>
                <textarea name="comment" id="comment" cols="90%" rows="10" tabindex="4"></textarea>
            </p>
<?php                                                                                                    
$plugins 
get_settings('active_plugins');                                                               
if (
is_array($plugins)) $active = (array_search('bot-check.php'$plugins) === false) ? false true;    
else 
$active = (strstr(get_settings('active_plugins'), 'bot-check.php') === false) ? false true;       
if (
$active) {                                                                                           
?>                                                                                                       
<p>                                                                                                      
<?php                                                                                                    
include(ABSPATH 'wp-content/bot-check/bc-config.php');
$enc urlencode(base64_encode(encrypt($bc_code)));
$code = ($_GET['human'] == 'invalid') ? 'Invalid Entry' '';                                            
?>                                                                                                       
<input type="hidden" name="human" value="<?=$enc?>" />                                                   
</p>
<p><img src="<?php echo get_settings('siteurl'); ?>/wp-content/bot-check/bc-image.php?human=<?=$enc?>"   
alt="Bot-Check"></p>                                                                                     
<input type="text" name='code' id="code" size="28" value="<?=$code?>" tabindex="0" />                    
<label for="code"><?php _e("Enter Code"); ?></label> <?php _e('(required)'); ?>                          
</p>                                                                                                     
<?php ?>                                                                                               
            <p>
                <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
                <input type="hidden" name="comment_post_ID" value="<?php echo $id?>" />
            </p>
            <?php do_action('comment_form'$post->ID); ?>
        </form>
    <?php // If registration required and not logged in ?>
<?php 
// if you delete this the sky will fall on your head ?>
<br />
<?php if (is_array($comments)) { ?>
    <!-- Begin Trackbacks -->
    <?php foreach ($comments as $comment) { ?>
        <?php if (($comment->comment_type == "trackback") || ($comment->comment_type == "pingback") || ereg("<pingback />"$comment->comment_content) || ereg("<trackback />"$comment->comment_content)) { ?>
            <?php if (!$runonce) { $runonce true?>
            <h3 id="trackbacks">
                <?php _e('Trackbacks &amp; Pingbacks:'?>
            </h3>
            <ol class="commentlist">
            <?php ?>
            <li class="<?php echo $oddcomment?>" id="comment-<?php comment_ID() ?>">
                <?php if (($comment->comment_type == "trackback") || ereg("<trackback />"$comment->comment_content))
                    
_e('<strong>Trackback from </strong>'); 
                elseif ((
$comment->comment_type == "pingback") || ereg("<pingback />"$comment->comment_content))
                    
_e('<strong>Pingback from </strong>'); 
                
?>
                <?php comment_author_link() ?>
                <?php if ($comment->comment_approved == '0') { ?>
                    <em><?php _e('Your comment is awaiting moderation.'?></em>
                <?php ?>
                <br />
                <small class="commentmetadata">
                    <a href="#comment-<?php comment_ID() ?>" title="">
                        <?php comment_date('F jS, Y'?>
                        <?php _e('at'?>
                        <?php comment_time() ?>
                    </a>
                <?php edit_comment_link('e','',''); ?>
                </small>
                <?php comment_text() ?>
            </li>
        <?php ?>
        <?php /* Changes every other comment to a different class */    
            
if ('alt' == $oddcomment$oddcomment '';
            else 
$oddcomment 'alt';
        
?>
    <?php ?>
    <?php if ($runonce) { ?>
        </ol>
    <?php ?>
    <!-- End Trackbacks -->
<?php ?>