<%set header_title = "Delete old posts"%> <%set header_description = "From this page you can delete threads older than a certain date. Please be patient as deleting these posts can take a long time"%> <%if delete_old_posts and num_days and num_days > 0%> <% if confirm%> <% GForum::Post::delete_old($num_days, $forum_id)%> <% set success_message = $posts_deleted%> <% if posts_deleted = 0%> <% set success_message = "0 posts were deleted."%> <% elsif posts_deleted = 1%> <% set success_message_2 = " post was deleted."%> <% else%> <% set success_message_2 = " posts were deleted."%> <% endif%> <% else%> <% set confirmation_page = 1%> <% endif%> <%endif%> <%set font_tag = ''%> <%include admin_header.html%>
<%if confirmation_page%> <%endif%>
<%font_tag%> By default, old posts will be deleted from all forums. You may optionally choose an individual forum here. Threads that have been kept with the "Keep Thread" option will not be deleted.
<%font_tag%> Forum: <%font_tag%> <%if confirmation_page%> <%if forum_id%> <%GForum::Forum::get($forum_id)%> <%cat_full_name%>: <%forum_name%> <%else%> All forums <%endif%> <%else%> <%endif%>
<%font_tag%> You should enter a cutoff number of days. Any threads which have not been posted to since the cutoff date will be deleted. Threads that have been kept with the "Keep Thread" option will not be deleted.
<%font_tag%> Number of days: <%font_tag%> <%if confirmation_page%> <%num_days%> <%else%> <%endif%>
<%font_tag%> <%GForum::Post::count_old($num_days, $forum_id)%> posts will be deleted.
<%font_tag%>