'."\n"; echo ''."\n"; echo ' 1.1'."\n"; $error = TRUE; if (isset($_GET['id'])) { $id = $_GET['id']; $post = get_post($id); setup_postdata($post); $m = $post->post_date_gmt; $post_date = mktime(substr($m, 11, 2), substr($m, 14, 2), substr($m, 17, 2), substr($m, 5, 2), substr($m, 8, 2), substr($m, 0, 4)); $m = current_time('mysql', 0); $now = mktime(substr($m, 11, 2), substr($m, 14, 2), substr($m, 17, 2), substr($m, 5, 2), substr($m, 8, 2), substr($m, 0, 4)); if (('publish' == $post->post_status) and ($post_date < $now) and ('' != get_post_meta($id, EOLIN_META_NAME, TRUE))) { $error = FALSE; } } if ($error) : ?> 0 get_var("SELECT COUNT(*) FROM {$wpdb->comments} WHERE comment_type != 'trackback'"); $blog_trackbacks = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->comments} WHERE comment_type = 'trackback'"); $more = TRUE; $content = get_the_content(); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); $categories = get_the_category(); $tag_displays = ''; foreach ($categories as $category) { $tag_displays .= "\n".' '.htmlspecialchars($category->cat_name).''; } if (function_exists('utw_show_tags_for_current_post')) { $tags = $utw->getTagsForPost($id); foreach ($tags as $tag) { $tag = $utw->formatTag($tag, '%tag_display%'); $tag_displays .= "\n".' '.htmlspecialchars($tag).''; } } elseif (function_exists('UTW_ShowTagsForCurrentPost')) { $tags = $utw->GetTagsForPost($id); foreach ($tags as $tag) { $tag = $utw->FormatTag($tag, '%tagdisplay%'); $tag_displays .= "\n".' '.htmlspecialchars($tag).''; } } $category = (empty($categories[0])) ? __('Uncategorized') : convert_chars($categories[0]->cat_name); $comments = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->comments} WHERE comment_post_ID = {$id} AND comment_type != 'trackback'"); $trackbacks = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->comments} WHERE comment_post_ID = {$id} AND comment_type = 'trackback'"); $attachments = $wpdb->get_results("SELECT * FROM {$wpdb->posts} WHERE post_parent = {$id} AND post_status = 'attachment'"); ?> 1 WordPress/ <?php echo htmlspecialchars(get_bloginfo('name')); ?> <?php echo htmlspecialchars(get_the_title()); ?> / ID, '_wp_attached_file', true); ?> post_mime_type; ?> guid; ?> '."\n"; ?>