Renamed template editor and fixed wordings.
git-svn-id: http://svn.automattic.com/wordpress/trunk@589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b64371a05d
commit
cbb0f32f0f
|
@ -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.)
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
$title = "Template & file editing";
|
||||
/* <Template> */
|
||||
|
||||
function add_magic_quotes($array) {
|
||||
foreach ($array as $k => $v) {
|
||||
|
@ -46,14 +45,14 @@ case 'update':
|
|||
die('<p>You have no right to edit the template for this blog.<br />Ask for a promotion to your <a href="mailto:$admin_email">blog admin</a>. :)</p>');
|
||||
}
|
||||
|
||||
$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,15 +99,15 @@ default:
|
|||
}
|
||||
|
||||
?>
|
||||
<div class="wrap">
|
||||
<div class="wrap">
|
||||
<?php
|
||||
echo "Listing <strong>$file</strong> $warning";
|
||||
echo "Editing <strong>$file</strong> $warning";
|
||||
if ('te' == $a)
|
||||
echo "<em>File edited successfully.</em>";
|
||||
|
||||
if (!$error) {
|
||||
?>
|
||||
<form name="template" action="b2template.php" method="post">
|
||||
<form name="template" action="templates.php" method="post">
|
||||
<textarea cols="80" rows="20" style="width:100%; font-family: 'Courier New', Courier, monopace; font-size:small;" name="newcontent" tabindex="1"><?php echo $content ?></textarea>
|
||||
<input type="hidden" name="action" value="update" />
|
||||
<input type="hidden" name="file" value="<?php echo $file ?>" />
|
||||
|
@ -127,28 +126,18 @@ default:
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="wrap">
|
||||
<p>You can also edit the <a href="b2template.php?file=b2comments.php">comments
|
||||
template</a> or the <a href="b2template.php?file=b2commentspopup.php">popup
|
||||
comments template</a>, or edit any other file (provided it’s writable by
|
||||
the server, e.g. CHMOD 766).</p>
|
||||
<p>You can also edit the <a href="templates.php?file=b2comments.php">comments template</a> or the <a href="templates.php?file=b2commentspopup.php">popup comments template</a>, or edit any other file (provided it’s writable by the server, e.g. CHMOD 766).</p>
|
||||
<p>To edit a file, type its name here:</p>
|
||||
<form name="file" action="b2template.php" method="get">
|
||||
<form name="file" action="templates.php" method="get">
|
||||
<input type="text" name="file" />
|
||||
<input type="submit" name="submit" class="search" value="go" />
|
||||
</form>
|
||||
|
||||
<p>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.</p>
|
||||
<p>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.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<?php
|
||||
<?php
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
/* </Template> */
|
||||
include("b2footer.php") ?>
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$title = 'Team management';
|
||||
$title = 'Users';
|
||||
/* <Team> */
|
||||
|
||||
$b2varstoreset = array('action','standalone','redirect','profile');
|
||||
|
@ -84,7 +84,7 @@ default:
|
|||
?>
|
||||
<div class="wrap">
|
||||
<h2>Authors</h2>
|
||||
<table cellpadding="5" cellspacing="0">
|
||||
<table cellpadding="5" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Nickname</th>
|
||||
|
|
Loading…
Reference in New Issue