]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_guestnl_cat.php
Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / modules / admin / what-add_guestnl_cat.php
index 18982007bbb4424b0822a73b9c655f009e9135ba..352fd10fa050bf1d646bc93918f0681430b53747 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((!defined('__SECURITY')) || (!is_admin())) {
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok']))
-{
+if (IS_FORM_SENT()) {
        // Check if category does already exist
-}
- else
-{
+} else {
        // Display form
        LOAD_TEMPLATE("admin_add_guestnl_cat");
 }