delete-comic.php
18 lines
| 567 B
| text/x-php
|
PhpLexer
| 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-strip-'.(int)$_REQUEST['strip_id']); | |||
| if(!deletestrip( $_REQUEST['strip_id'] )) | |||
| { | |||
| adminlog("Error deleting strip $_REQUEST[strip_id]:".mysql_error(), MTS_STRIP, MTA_DELETE, E_ERROR); | |||
| mtdie('Error deleting the specified strip.','SQL Error'); | |||
| } | |||
| adminlog("Strip $_REQUEST[strip_id] deleted.", MTS_STRIP, MTA_DELETE); | |||
| _redirect( ADMIN_PATH . '/manage-comics.php?deleted=success' ); | |||
| ?> |
