Merge branch 'master' into tinymce
Merge branch 'master' into tinymce

File last commit:

881a86f051f9
c1cc0a746d24 merge
Show More
edit-metatype.php
37 lines | 985 B | text/x-php | XmlPhpLexer
/ edit-metatype.php
Add most necessary files for admin interface.
r1 <?php
require_once('include/admin.inc.php');
auth_redirect(); // Require logged in user to access this page.
$type = $mtdb->getRow( 'SELECT id, name FROM meta_t WHERE id=' . (int)$_GET['edit'] )
or mtdie("Invalid metatype number!");
adminhead('Metatypes');
adminmenu('manage-metatypes.php');
?>
<h2>Edit Metatype Information</h2>
<form action="manage-metatypes.php" method="post" name="post" id="post">
<?php nonce_field('save-metatype-'.$type->id); ?>
<input type="hidden" name="action" value="edit_meta" />
<input type="hidden" name="type_id" value="<?php echo $type->id; ?>" />
<div id="poststuff">
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th scope="row" width="33%">Name</th>
<td width="66%"><input name="name" type="text" id="name" value="<?php echo htmlentities($type->name); ?>" /></td>
</tr>
</table>
Clean up extraneous spaces at the ends of lines.
r8
Add most necessary files for admin interface.
r1 <p class="submit"><input type="submit" value="Save &raquo;" name="submit" /></p>
</div>
</form>
<?php adminfooter(); ?>