2004-11-16 14:29:51 -05:00
|
|
|
<?php
|
|
|
|
require_once('admin.php');
|
|
|
|
$title = __('New Page');
|
|
|
|
$parent_file = 'post.php';
|
|
|
|
require_once('admin-header.php');
|
|
|
|
|
|
|
|
get_currentuserinfo();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php if ( isset($_GET['saved']) ) : ?>
|
|
|
|
<div class="updated"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> »</a></strong></p></div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if ($user_level > 0) {
|
|
|
|
$action = 'post';
|
|
|
|
get_currentuserinfo();
|
2005-06-18 23:07:16 -04:00
|
|
|
|
|
|
|
$post = get_default_post_to_edit();
|
|
|
|
$post->post_status = 'static';
|
2004-11-16 14:29:51 -05:00
|
|
|
|
|
|
|
include('edit-page-form.php');
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<?php include('admin-footer.php'); ?>
|