通用php博客主页通用php博客主页通用php博客主页

源代码在线查看: comments.php

软件大小: 85 K
上传用户: nassdaq
关键词: php 博客
下载地址: 免注册下载 普通下载 VIP

相关代码

									if (!empty($_SERVER['SCRIPT_FILENAME']) && '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
							?>
				
							This post is password protected. Enter the password to view comments.
				
														return;
						}
					}
				
					/* This variable is for alternating comment background */
					$oddcomment = 'class="alt" ';
				?>
				
				
				
				
					 to “”
				
					
				
					
				
										
						
								if (function_exists('get_avatar')) {
				      echo get_avatar( $comment, 69);
				   } else {
				      //alternate gravatar code for < 2.5
				      $grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=
				         " . md5($email) . "&default=" . urlencode($default) . "&size=" . $size;
				      echo "";
				   }
				?>
						
				
						
							 Says:
							
							Your comment is awaiting moderation.
							
							
				
											
							
						
						
					
				
											/* Changes every other comment to a different class */
						$oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : '';
					?>
				
					
				
					
				
				 
				
					
						
				
					 
						
						Comments are closed.
				
					
				
				
				
				
				
				
				Leave a Reply
				
				
				You must be 				
				
								
				
				
				Logged in as 				
				
				
								Name 
				
								Mail (will not be published) 
				
								Website
				
				
				
				
				
				
				
				
								
				
				
				
				
				
				
				
							

相关资源