Viewing file: category.delete.php (1.72 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* $Id: category.delete.php,v 1.2.2.4.2.1 2006/02/03 14:33:06 thorstenr Exp $
*
* Deletes a category
*
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @since 2003-12-20
* @copyright (c) 2003-2006 phpMyFAQ Team
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*/
if (!defined('IS_VALID_PHPMYFAQ_ADMIN')) {
header('Location: http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']));
exit();
}
print "<h2>".$PMF_LANG["ad_menu_categ_edit"]."</h2>\n";
if ($permission["delcateg"]) {
?>
<form action="<?php print $_SERVER["PHP_SELF"].$linkext; ?>" method="post">
<fieldset>
<legend><?php print $PMF_LANG["ad_categ_deletesure"]; ?></legend>
<div align="center">
<input type="hidden" name="aktion" value="removecategory" />
<input type="hidden" name="cat" value="<?php print $_GET["cat"]; ?>" />
<input type="hidden" name="lang" value="<?php print $_GET["lang"]; ?>" />
<input class="submit" type="submit" name="submit" value="<?php print $PMF_LANG["ad_categ_del_yes"]; ?>" style="color: Red;" />
<input class="submit" type="reset" onclick="javascript:history.back();" value="<?php print $PMF_LANG["ad_categ_del_no"]; ?>" />
</div>
</fieldset>
</form>
</div>
<?php
} else {
print $PMF_LANG["err_NotAuth"];
}
?>
|