Merge pull request #11 from mt-admin mysqli...
Merge pull request #11 from mt-admin mysqli Convert the admin backend to the more modern MySQLi driver.

File last commit:

dc98d7eb2bb1
dc6672c2e0e6 merge
Show More
delete-rant.php
17 lines | 489 B | text/x-php | PhpLexer
/ delete-rant.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-rant-'.(int)$_REQUEST['rant_id']);
if(!deleterant( $_REQUEST['rant_id'] ))
{
Switch to mysqli_* in other php files.
r5 adminlog("Error deleting rant $_REQUEST[rant_id]: ".mysqli_error(), MTS_RANT, MTA_DELETE, E_ERROR);
Add most necessary files for admin interface.
r1 mtdie('Error deleting the specified rant.','SQL Error');
}
_redirect( ADMIN_PATH . '/manage-rants.php?deleted=success' );
Switch to mysqli_* in other php files.
r5 ?>