2003-05-23 04:29:51 -04:00
|
|
|
<?php
|
|
|
|
/* <Sidebar> */
|
2003-06-10 18:31:01 -04:00
|
|
|
function selected($selected, $current) {
|
|
|
|
if ($selected == $current) echo ' selected="selected"';
|
|
|
|
}
|
2003-05-23 04:29:51 -04:00
|
|
|
|
|
|
|
$mode = "sidebar";
|
|
|
|
|
|
|
|
$standalone = 1;
|
2003-12-10 19:22:36 -05:00
|
|
|
require_once("admin-header.php");
|
2003-05-23 04:29:51 -04:00
|
|
|
|
|
|
|
get_currentuserinfo();
|
|
|
|
|
|
|
|
// just your usual browser thing because we're still too far from standards
|
|
|
|
$is_gecko = preg_match("/Gecko/",$HTTP_USER_AGENT);
|
|
|
|
$is_winIE = ((preg_match("/MSIE/",$HTTP_USER_AGENT)) && (preg_match("/Win/",$HTTP_USER_AGENT)));
|
|
|
|
$is_macIE = ((preg_match("/MSIE/",$HTTP_USER_AGENT)) && (preg_match("/Mac/",$HTTP_USER_AGENT)));
|
|
|
|
$is_IE = (($is_macIE) || ($is_winIE));
|
|
|
|
|
|
|
|
if ($user_level == 0)
|
|
|
|
die ("Cheatin' uh ?");
|
|
|
|
|
2003-06-15 18:48:49 -04:00
|
|
|
$time_difference=get_settings('time_difference');
|
2003-05-23 04:29:51 -04:00
|
|
|
|
|
|
|
if ($a=="b") {
|
|
|
|
|
|
|
|
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2003-08-26 17:47:25 -04:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
2003-05-23 04:29:51 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<br />
|
|
|
|
<table cellspacing="0" cellpadding="15" width="90%" border="0" style="border-color: #cccccc; border-width:1; border-style: solid;" align="center">
|
|
|
|
<td>
|
|
|
|
<p>Posted !</p>
|
2003-12-10 19:22:36 -05:00
|
|
|
<p><a href="sidebar.php">Click here</a> to post again.</p>
|
2003-05-23 04:29:51 -04:00
|
|
|
</td>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html><?php
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
?><html>
|
|
|
|
<head>
|
2003-05-24 18:25:39 -04:00
|
|
|
<title>WordPress > sidebar</title>
|
2003-12-15 20:58:39 -05:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css">
|
2003-05-23 04:29:51 -04:00
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
<!--
|
|
|
|
body {
|
|
|
|
padding: 3px;
|
|
|
|
}
|
|
|
|
textarea,input,select {
|
|
|
|
font-family: arial,helvetica,sans serif;
|
|
|
|
font-size: 12px;
|
|
|
|
background-color: transparent;
|
|
|
|
border-width: 1px;
|
|
|
|
border-color: #cccccc;
|
|
|
|
border-style: solid;
|
|
|
|
padding: 2px;
|
|
|
|
margin: 1px;
|
|
|
|
}
|
|
|
|
<?php if (!$is_gecko) { ?>
|
|
|
|
.checkbox {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border-width: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
|
|
|
}
|
|
|
|
<?php } ?>
|
|
|
|
-->
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2003-12-10 19:22:36 -05:00
|
|
|
<form name="post" action="post.php" method="POST" accept-charset="iso-8859-1">
|
2003-05-23 04:29:51 -04:00
|
|
|
<input type="hidden" name="action" value="post" />
|
|
|
|
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
|
|
|
<input type="hidden" name="mode" value="sidebar" />
|
|
|
|
|
|
|
|
<input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" value="Title" onFocus="if (this.value=='Title') { this.value='';}" onBlur="if (this.value=='') {this.value='Title';}" />
|
|
|
|
|
|
|
|
<?php dropdown_categories(); ?>
|
2003-06-10 18:31:01 -04:00
|
|
|
<label for="post_status">Status:</label>
|
|
|
|
<select name="post_status" id="post_status">
|
|
|
|
<option value="publish"<?php selected($post_status, 'publish'); ?>>Publish</option>
|
|
|
|
<option value="draft"<?php selected($post_status, 'draft'); ?>>Draft</option>
|
|
|
|
<option value="private"<?php selected($post_status, 'private'); ?>>Private</option>
|
|
|
|
</select><br />
|
|
|
|
<label for="comment_status">Comments:</label>
|
|
|
|
<select name="comment_status" id="comment_status">
|
|
|
|
<option value="open"<?php selected($comment_status, 'open'); ?>>Open</option>
|
|
|
|
<option value="closed"<?php selected($comment_status, 'closed'); ?>>Closed</option>
|
|
|
|
</select><br />
|
|
|
|
<label for="ping_status">Pings:</label>
|
|
|
|
<select name="ping_status" id="ping_status">
|
|
|
|
<option value="open"<?php selected($ping_status, 'open'); ?>>Open</option>
|
|
|
|
<option value="closed"<?php selected($ping_status, 'open'); ?>>Closed</option>
|
|
|
|
</select><br />
|
|
|
|
<label for="post_password">Post Password:</label>
|
|
|
|
<input name="post_password" type="text" id="post_password" value="<?php echo $post_password ?>" /><br />
|
2003-05-23 04:29:51 -04:00
|
|
|
|
|
|
|
<textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2" class="postform" wrap="virtual" onFocus="if (this.value=='Post') { this.value='';}" onBlur="if (this.value=='') {this.value='Post';}">Post</textarea>
|
|
|
|
|
|
|
|
<?php if ($use_pingback) { ?>
|
|
|
|
<input type="checkbox" class="checkbox" name="post_pingback" value="1" checked="checked" tabindex="5" id="pingback" /><label for="pingback"> PingBack</label>
|
|
|
|
<?php } ?>
|
|
|
|
|
2003-06-10 18:31:01 -04:00
|
|
|
<input type="submit" name="submit" value="Blog this !" class="search" tabindex="3" />
|
2003-05-23 04:29:51 -04:00
|
|
|
|
2003-05-24 20:33:40 -04:00
|
|
|
<?php
|
2003-05-23 04:29:51 -04:00
|
|
|
if ($use_trackback) { ?>
|
|
|
|
<br /><label for="trackback"><b>TrackBack</b> an URL:</label><br /><input type="text" name="trackback_url" style="width: 100%" id="trackback" tabindex="7" />
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
<!--
|
|
|
|
// document.blog.post_content.focus();
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html><?php
|
|
|
|
}
|
|
|
|
?>
|