CoreFiles by mySites.guru
sidebar.php82 lines, 2,087 bytes, from wordpress-1.2-RC2.zip
Raw History Compare with 1.2-RC1
md5
03ec3db8af8a40e6fcd623c9b0d6dd3d
sha1
376d09a7f57a541ae96ad5b14bd3c7f9d0b57cdc
sha256
5b7219aaa9fc682be109316f97063108c25e59f6f2aea4ed34a4ed0b3ce492f9
<?php
$mode = 'sidebar';

$standalone = 1;
require_once('admin-header.php');

get_currentuserinfo();

if ($user_level == 0)
	die ("Cheatin' uh ?");

if ('b' == $_GET['a']) {

?><!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>
<title>WordPress > Posted</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
</head>
<body
	<p>Posted !</p>
	<p><a href="sidebar.php">Click here</a> to post again.</p>
</body>
</html><?php

} else {

?><html>
<head>
<title>WordPress &rsaquo; Sidebar</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $blog_charset ?>" />
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
<style type="text/css" media="screen">
form {
	padding: 3px;
}
.sidebar-categories {
    display: block;
    height: 6.6em;
    overflow: auto;
    background-color: #f4f4f4;
}
.sidebar-categories label {
	font-size: 10px;
    display: block;
    width: 90%;
}
</style>
</head>
<body id="sidebar">
<h1 id="wphead"><a href="http://wordpress.org" rel="external">WordPress</a></h1>
<form name="post" action="post.php" method="POST">
<div><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" />
<p>Title:
<input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
</p>
<p>Categories:
<span class="sidebar-categories">
<?php dropdown_categories(); ?>
</span>
</p>
<p>
Post:
<textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
</p>
<p>
    <input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" /> 
    <input name="publish" type="submit" id="publish" tabindex="6" style="font-weight: bold;" value="Publish" /> 
  
</p>
</div>
</form>

</body>
</html>
<?php
}
?>

The same content is in 6 releases, WordPress 1.2-delta to 1.2.2. See them all, or every version of this file.