【php开源代码栏目提醒】:网学会员为广大网友收集整理了,delete_category.php,希望对大家有所帮助!
<?php
// include function files for this application
require_once('book_sc_fns.php');
session_start();
do_html_header('Deleting category');
if (check_admin_user())
{
if (isset($HTTP_POST_VARS['catid']))
{
if(delete_category($HTTP_POST_VARS['catid']))
echo 'Category was deleted.<br />';
else
echo 'Category could not be deleted.<br />'
.'This is usually because it is not empty.<br />';
}
else
echo 'No category specified. Please try again.<br />';
do_html_url('admin.php', 'Back to administration menu');
}
else
echo 'You are not authorised to view this page.';
do_html_footer();
?>