2003-05-23 10:29:51 +02:00
|
|
|
<?php
|
2004-01-03 02:55:55 +01:00
|
|
|
$mode = 'sidebar';
|
2003-05-23 10:29:51 +02:00
|
|
|
|
|
|
|
$standalone = 1;
|
2004-01-03 02:55:55 +01:00
|
|
|
require_once('admin-header.php');
|
2003-05-23 10:29:51 +02:00
|
|
|
|
|
|
|
get_currentuserinfo();
|
|
|
|
|
|
|
|
if ($user_level == 0)
|
|
|
|
die ("Cheatin' uh ?");
|
|
|
|
|
2004-04-21 00:56:47 +02:00
|
|
|
if ('b' == $_GET['a']) {
|
2003-05-23 10:29:51 +02:00
|
|
|
|
|
|
|
?><!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>
|
2004-06-11 21:28:30 +02:00
|
|
|
<title>WordPress › Posted</title>
|
2003-05-23 10:29:51 +02:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2003-08-26 23:47:25 +02:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
2003-05-23 10:29:51 +02:00
|
|
|
</head>
|
2004-01-03 02:55:55 +01:00
|
|
|
<body
|
2003-05-23 10:29:51 +02:00
|
|
|
<p>Posted !</p>
|
2003-12-11 01:22:36 +01:00
|
|
|
<p><a href="sidebar.php">Click here</a> to post again.</p>
|
2003-05-23 10:29:51 +02:00
|
|
|
</body>
|
|
|
|
</html><?php
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
2004-06-11 21:28:30 +02:00
|
|
|
?><!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">
|
2003-05-23 10:29:51 +02:00
|
|
|
<head>
|
2004-06-11 21:28:30 +02:00
|
|
|
<title>WordPress › Sidebar</title>
|
2004-02-17 03:17:21 +01:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $blog_charset ?>" />
|
2004-01-03 06:12:32 +01:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
2004-01-03 06:21:38 +01:00
|
|
|
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
|
2004-01-03 02:55:55 +01:00
|
|
|
<style type="text/css" media="screen">
|
|
|
|
form {
|
2003-05-23 10:29:51 +02:00
|
|
|
padding: 3px;
|
|
|
|
}
|
2004-01-03 06:12:32 +01:00
|
|
|
.sidebar-categories {
|
|
|
|
display: block;
|
|
|
|
height: 6.6em;
|
|
|
|
overflow: auto;
|
|
|
|
background-color: #f4f4f4;
|
|
|
|
}
|
2004-01-03 02:55:55 +01:00
|
|
|
.sidebar-categories label {
|
|
|
|
font-size: 10px;
|
2004-01-03 06:12:32 +01:00
|
|
|
display: block;
|
|
|
|
width: 90%;
|
2003-05-23 10:29:51 +02:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
2004-01-03 02:55:55 +01:00
|
|
|
<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" />
|
2003-05-23 10:29:51 +02:00
|
|
|
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
|
|
|
<input type="hidden" name="mode" value="sidebar" />
|
2004-01-03 02:55:55 +01:00
|
|
|
<p>Title:
|
|
|
|
<input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
|
|
|
|
</p>
|
2004-01-03 06:12:32 +01:00
|
|
|
<p>Categories:
|
|
|
|
<span class="sidebar-categories">
|
2003-05-23 10:29:51 +02:00
|
|
|
<?php dropdown_categories(); ?>
|
2004-01-03 06:12:32 +01:00
|
|
|
</span>
|
2004-01-03 02:55:55 +01:00
|
|
|
</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>
|
2003-05-23 10:29:51 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</body>
|
2004-01-03 02:55:55 +01:00
|
|
|
</html>
|
|
|
|
<?php
|
2003-05-23 10:29:51 +02:00
|
|
|
}
|
2004-01-03 02:55:55 +01:00
|
|
|
?>
|