}
    if (!test_param('postend')) {
        $postend = $poststart + $showposts - 1;
    } else {
        $postend = get_param('postend');
    }
}
$nextXstart = $poststart + 1;
$nextXend = $nextXstart + $showposts - 1;
$previousXstart = $poststart - $showposts;
$previousXend = $postend - $showposts;
if ($previousXstart < 1) {
    $previousXstart = 0;
    $previousXend = 0;
}
draft_list($GLOBALS['user_ID']);
include 'include/edit-navibar.php';
?>
<div class="wrap">
<table width="100%">
  <tr>
	<td valign="top" width="33%">
		<form name="searchform" action="" method="get">
			<input type="hidden" name="a" value="s" />
			<input onfocus="if (this.value=='search...') {this.value='';}" onblur="if (this.value=='') {this.value='search...';}" type="text" name="s" value="<?php 
echo test_param('s') ? get_param('s') : "search...";
?>
" size="7" style="width: 100px;" />
			<input type="submit" name="submit" value="search" />
		</form>
	</td>
         redirect_header($location, 3, $commentHandler->getErrors());
     }
     header('Location: ' . $referredby);
     do_action('edit_comment', $comment_ID);
     exit;
     break;
 default:
     $title = 'Create New Post';
     $standalone = 0;
     require_once './admin-header.php';
     if ($user_level > 0) {
         $action = 'post';
         init_param('GET', 'content', 'html', '');
         init_param('GET', 'edited_post_title', 'string', '');
         init_param('GET', 'excerpt', 'html', '');
         draft_list($user_ID);
         //set defaults
         $post_status = get_settings('default_post_status');
         $comment_status = get_settings('default_comment_status');
         $ping_status = get_settings('default_ping_status');
         $post_pingback = get_settings('default_pingback_flag');
         $default_post_cat = get_settings('default_post_category');
         $content = apply_filters('default_content', get_param('content'));
         $edited_post_title = apply_filters('default_title', get_param('edited_post_title'));
         $excerpt = apply_filters('default_excerpt', get_param('excerpt'));
         $trackback_url = '';
         $pinged = '';
         $mode = '';
         $form_prevstatus = '';
         $target_charset = '';
         include 'edit-form.php';