From 1cde3225858a2cb24363dddc31a112fdf38abe47 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 17 Apr 2004 18:44:10 +0000 Subject: [PATCH] Admin revamp. git-svn-id: https://develop.svn.wordpress.org/trunk@1089 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-header.php | 5 ++--- wp-admin/templates.php | 37 ++++++++++++++++++++++++++--------- wp-admin/wp-admin.css | 41 ++++++++++++++++++++++++++++----------- 3 files changed, 60 insertions(+), 23 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index 7523854cc9..0cf77c5499 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -49,7 +49,7 @@ for ($i=0; $i @@ -141,7 +141,6 @@ if ($profile==0) { include('menu.php'); } ?> -

\ No newline at end of file diff --git a/wp-admin/templates.php b/wp-admin/templates.php index 47259406f9..4cf87a6b62 100644 --- a/wp-admin/templates.php +++ b/wp-admin/templates.php @@ -57,7 +57,7 @@ case 'update': $standalone = 1; require_once("admin-header.php"); - if ($user_level < 3) { + if ($user_level < 5) { die('

You have do not have sufficient permissions to edit templates for this blog.

'); } @@ -82,7 +82,7 @@ default: require_once('admin-header.php'); - if ($user_level <= 3) { + if ($user_level <= 5) { die('

You have do not have sufficient permissions to edit templates for this blog.

'); } @@ -111,11 +111,12 @@ default: } ?> + +

File edited successfully.

+
$file $warning"; - if ('te' == $a) - echo "File edited successfully."; + echo "

Editing $file $warning

"; if (!$error) { ?> @@ -123,18 +124,19 @@ default: -
+

"; + echo ""; } else { echo ""; } ?> +

Oops, no such file exists! Double check the name and try again, merci.

'; + echo '

Oops, no such file exists! Double check the name and try again, merci.

'; } ?>
@@ -151,8 +153,25 @@ default:
  • Popup comments
  • .htaccess (for rewrite rules)
  • my-hacks.php
  • + +read()) !== false) { + if ( !preg_match('|^\.+$|', $file) && preg_match('|\.php$|', $file) ) + $plugin_files[] = $file; + } +} +if ($plugins_dir || $plugin_files) : +?> +

    Plugin files:

    + -

    Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don't have access to a text editor or FTP client.

    + +

    Note: of course, you can also edit the files/templates in your text editor of choice and upload them. This online editor is only meant to be used when you don’t have access to a text editor or FTP client.