diff -r dd659f6ba891 -r dd2edcdc6c03 index.php --- a/index.php Wed Jun 27 00:59:42 2007 -0400 +++ b/index.php Wed Jun 27 12:09:02 2007 -0400 @@ -311,11 +311,17 @@ if(!$session->get_permissions('delete_page')) die_friendly('Access denied', '

Deleting pages requires admin rights.

'); if(isset($_POST['_adiossucker'])) { - $template->header(); - $result = PageUtils::deletepage($paths->cpage['urlname_nons'], $paths->namespace); - echo '

'.$result.' Return to the page.

'; - $template->footer(); - break; + $reason = ( isset($_POST['reason']) ) ? $_POST['reason'] : false; + if ( empty($reason) ) + $error = 'Please enter a reason for deleting this page.'; + else + { + $template->header(); + $result = PageUtils::deletepage($paths->cpage['urlname_nons'], $paths->namespace, $reason); + echo '

'.$result.' Return to the page.

'; + $template->footer(); + break; + } } $template->header(); ?> @@ -324,6 +330,8 @@

While the deletion of the page itself is completely reversible, it is impossible to recover any comments or category information on this page. If this is a file page, the file along with all older revisions of it will be permanently deleted. Also, any custom information that this page is tagged with, such as a custom name, protection status, or additional settings such as whether to allow comments, will be permanently lost.

Are you absolutely sure that you want to continue?
You will not be asked again.

+ $error

"; ?> +

Reason for deleting: