diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-29 13:07:54 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-08-29 13:07:54 +0000 |
| commit | 6e7706463d5156a1692f4e24b517d1c19076d318 (patch) | |
| tree | 0cbe4e47db536cdedc64f544a12bde2cb4596c0c /wp-inst/wp-comments.php | |
| parent | d5ab61938e90ae1db9dc65953ac1058822db6ff5 (diff) | |
| download | wordpress-mu-6e7706463d5156a1692f4e24b517d1c19076d318.tar.gz wordpress-mu-6e7706463d5156a1692f4e24b517d1c19076d318.tar.xz wordpress-mu-6e7706463d5156a1692f4e24b517d1c19076d318.zip | |
Massive merge from WP Core.
Deleted unused files.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@251 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-comments.php')
| -rw-r--r-- | wp-inst/wp-comments.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/wp-inst/wp-comments.php b/wp-inst/wp-comments.php deleted file mode 100644 index f45044d..0000000 --- a/wp-inst/wp-comments.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php // Do not delete these lines - -/* $Id: wp-comments.php,v 1.3 2004/11/22 11:14:01 donncha Exp $ */ - -global $wpsmarty; -if ('wp-comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) -die ('Please do not load this page directly. Thanks!'); -$commentstext = ''; -$withcomments = true; -if (($withcomments && $wpsmarty->template_exists( "blog-comments.html" ) ) or (is_single())) -{ - unset( $t ); - 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><?php _e("Enter your password to view comments."); ?><p><?php - return; - } - } - $query = "SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date"; - $comments = $wpdb->get_results( $query ); - if( is_array( $comments ) ) - { - foreach( $comments as $key => $comment ) - { - $t[ $key ] = $comment; - $t[ $key ]->comment_content = stripslashes( $t[ $key ]->comment_content ); - } - } - else - { - $t = $comments; - } - $wpsmarty->assign( "comments", $t); - $wpsmarty->assign( "comment_author_url", $comment_author_url ); - $wpsmarty->assign( "comment_author", $comment_author ); - $wpsmarty->assign( "comment_author_email", $comment_author_email ); - $wpsmarty->assign( "req", $req ); - $wpsmarty->assign( "redirect_to", htmlspecialchars($_SERVER["REQUEST_URI"]) ); - $wpsmarty->assign( "post", $post ); - $wpsmarty->caching = false; - if( is_single() == false ) - { - if( $wpsmarty->template_exists( "blog-comments.html" ) ) - $commentstext .= $wpsmarty->fetch( "blog-comments.html" ); - } - else - { - $commentstext .= $wpsmarty->fetch( "comments.html" ); - } - $wpsmarty->caching = true; -} -?> |
