diff -r 9d29f7e101d6 -r 8079b0288e8e index.php --- a/index.php Sun Aug 12 14:56:52 2007 -0400 +++ b/index.php Tue Aug 14 15:13:40 2007 -0400 @@ -359,6 +359,20 @@ echo PageUtils::pagediff($paths->cpage['urlname_nons'], $paths->namespace, $id1, $id2); $template->footer(); break; + case 'detag': + if ( $session->user_level < USER_LEVEL_ADMIN ) + { + die_friendly('Access denied', '
You need to be an administrator to detag pages.
'); + } + if ( $paths->page_exists ) + { + die_friendly('Invalid request', 'The detag action is only valid for pages that have been deleted in the past.
'); + } + $q = $db->sql_query('DELETE FROM '.table_prefix.'tags WHERE page_id=\'' . $db->escape($paths->cpage['urlname_nons']) . '\' AND namespace=\'' . $paths->namespace . '\';'); + if ( !$q ) + $db->_die('Detag query, index.php:'.__LINE__); + die_friendly('Page detagged', 'All stale tags have been removed from this page.
'); + break; case 'aclmanager': $data = ( isset($_POST['data']) ) ? $_POST['data'] : Array('mode' => 'listgroups'); PageUtils::aclmanager($data);