From cbb0f32f0f373988714a643ad209b105cc6f45f5 Mon Sep 17 00:00:00 2001
From: saxmatt
Date: Mon, 8 Dec 2003 01:55:38 +0000
Subject: [PATCH] Renamed template editor and fixed wordings.
git-svn-id: http://svn.automattic.com/wordpress/trunk@589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/b2menutop.txt | 2 +-
wp-admin/{b2template.php => templates.php} | 67 +++++++++-------------
wp-admin/users.php | 4 +-
3 files changed, 31 insertions(+), 42 deletions(-)
rename wp-admin/{b2template.php => templates.php} (69%)
diff --git a/wp-admin/b2menutop.txt b/wp-admin/b2menutop.txt
index 09a864a97..43cbf5401 100644
--- a/wp-admin/b2menutop.txt
+++ b/wp-admin/b2menutop.txt
@@ -4,7 +4,7 @@
5 linkmanager.php Links
3 users.php Users
4 wp-options.php Options
-4 b2template.php Template
+4 templates.php Templates
***
(Everything after the '***' is a comment.)
diff --git a/wp-admin/b2template.php b/wp-admin/templates.php
similarity index 69%
rename from wp-admin/b2template.php
rename to wp-admin/templates.php
index 6dca1760d..127dfcdea 100644
--- a/wp-admin/b2template.php
+++ b/wp-admin/templates.php
@@ -1,6 +1,5 @@
*/
function add_magic_quotes($array) {
foreach ($array as $k => $v) {
@@ -46,14 +45,14 @@ case 'update':
die('You have no right to edit the template for this blog. Ask for a promotion to your blog admin . :)
');
}
- $newcontent = stripslashes($HTTP_POST_VARS["newcontent"]);
- $file = $HTTP_POST_VARS["file"];
+ $newcontent = stripslashes($HTTP_POST_VARS['newcontent']);
+ $file = $HTTP_POST_VARS['file'];
$f = fopen($file, 'w+');
fwrite($f, $newcontent);
fclose($f);
$file = str_replace('../', '', $file);
- header("Location: b2template.php?file=$file&a=te");
+ header("Location: templates.php?file=$file&a=te");
exit();
break;
@@ -100,55 +99,45 @@ default:
}
?>
-
- $file $warning";
+
+ $file $warning";
if ('te' == $a)
echo "File edited successfully. ";
if (!$error) {
- ?>
-
+
+
+
+
+ ";
} else {
echo " ";
}
- ?>
-
-
+
+ Oops, no such file exists! Double check the name and try again, merci.';
}
- ?>
-
-
+ ?>
+
-
You can also edit the comments
- template or the popup
- comments template , or edit any other file (provided it’s writable by
- the server, e.g. CHMOD 766).
-
To edit a file, type its name here:
-
-
-
-
-
-
Note: of course, you can also edit the files/templates in your text editor
- and upload them. This online editor is only meant to be used when you don't
- have access to a text editor.
-
-
-
- You can also edit the comments template or the popup comments template , or edit any other file (provided it’s writable by the server, e.g. CHMOD 766).
+ To edit a file, type its name here:
+
+
+
+
+ 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.
+
+ */
-include("b2footer.php") ?>
\ No newline at end of file
+include("b2footer.php") ?>
\ No newline at end of file
diff --git a/wp-admin/users.php b/wp-admin/users.php
index 098bf2b6d..7975ac0bf 100644
--- a/wp-admin/users.php
+++ b/wp-admin/users.php
@@ -1,5 +1,5 @@
*/
$b2varstoreset = array('action','standalone','redirect','profile');
@@ -84,7 +84,7 @@ default:
?>