Changeset 458 for trunk/b2-include/b2template.functions.php
- Timestamp:
- 10/20/2003 08:53:13 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2template.functions.php
r440 r458 599 599 function get_the_content($more_link_text='(more...)', $stripteaser=0, $more_file='') { 600 600 global $id, $post, $more, $c, $withcomments, $page, $pages, $multipage, $numpages; 601 global $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $preview ;601 global $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $preview, $cookiehash; 602 602 global $querystring_start, $querystring_equal, $querystring_separator; 603 603 global $pagenow; … … 605 605 606 606 if (!empty($post->post_password)) { // if there's a password 607 if ($HTTP_COOKIE_VARS['wp-postpass '] != $post->post_password) { // and it doesn't match the cookie607 if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 608 608 $output = get_the_password_form(); 609 609 return $output; … … 693 693 function get_the_excerpt($fakeit = false) { 694 694 global $id, $post; 695 global $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $preview ;695 global $HTTP_SERVER_VARS, $HTTP_COOKIE_VARS, $preview, $cookiehash; 696 696 $output = ''; 697 697 $output = stripslashes($post->post_excerpt); 698 698 if (!empty($post->post_password)) { // if there's a password 699 if ($HTTP_COOKIE_VARS['wp-postpass '] != $post->post_password) { // and it doesn't match the cookie699 if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 700 700 $output = "There is no excerpt because this is a protected post."; 701 701 return $output; … … 1174 1174 1175 1175 function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off') { 1176 global $id, $b2commentspopupfile, $b2commentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS ;1176 global $id, $b2commentspopupfile, $b2commentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash; 1177 1177 global $querystring_start, $querystring_equal, $querystring_separator, $siteurl; 1178 1178 $number = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id"); … … 1182 1182 } else { 1183 1183 if (!empty($post->post_password)) { // if there's a password 1184 if ($HTTP_COOKIE_VARS['wp-postpass '] != $post->post_password) { // and it doesn't match the cookie1184 if ($HTTP_COOKIE_VARS['wp-postpass_'.$cookiehash] != $post->post_password) { // and it doesn't match the cookie 1185 1185 echo("Enter your password to view comments"); 1186 1186 return;
Note: See TracChangeset
for help on using the changeset viewer.