Configure the new TinyMCE to have almost the same buttons as the old one.
Configure the new TinyMCE to have almost the same buttons as the old one.

File last commit:

dc98d7eb2bb1
3cf3f8fd35f8
Show More
delete-page.php
19 lines | 561 B | text/x-php | PhpLexer
/ delete-page.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.
// Deliberatly don't pass a nonce here, always AYS
check_nonce('delete-page-'.$_REQUEST['page_name']);
if(!deletepage( $_REQUEST['page_name'] ))
{
Switch to mysqli_* in other php files.
r5 adminlog("Error deleting page $_REQUEST[page_name]: ".mysqli_error(), MTS_PAGE, MTA_DELETE, E_ERROR);
Add most necessary files for admin interface.
r1 mtdie('Error deleting the specified page.','SQL Error');
}
adminlog("Page $_REQUEST[page_name] deleted.", MTS_PAGE, MTA_DELETE);
_redirect( ADMIN_PATH . '/manage-pages.php?deleted=success' );
?>