X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_add.php;h=6bb59018e13c2e22b2ee083721885b6ff9fa6590;hb=fe8e4c180ec67e320be98e1e8dc1f9ea612c3636;hp=c3073789f19d362504197c4a855bc82d07cd2d06;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git diff --git a/inc/modules/admin/what-admins_add.php b/inc/modules/admin/what-admins_add.php index c3073789f1..6bb59018e1 100644 --- a/inc/modules/admin/what-admins_add.php +++ b/inc/modules/admin/what-admins_add.php @@ -1,7 +1,7 @@ ".ADMIN_ADMINS_ADD_DONE.""); + loadTemplate('admin_settings_saved', false, getMessage('ADMIN_ADMINS_ADD_DONE')); - // Remove cache file - if (EXT_IS_ACTIVE("cache")) - { - if ($CACHE->cache_file("admins", true)) $CACHE->cache_destroy(); - } - } - else - { - // Free memory - SQL_FREERESULT($result); - } -} + // Run filter chain + runFilterChain('post_admin_added', postRequestArray()); + } // END - if +} // END - if -if ($FORM) -{ - // Clear unset variables - if (empty($_POST['login'])) $_POST['login'] = ""; - if (empty($_POST['email'])) $_POST['email'] = ""; +// Shall we display the form? +if ($FORM === true) { + // Prepare content + $content = merge_array( + array('login' => '', 'email' => ''), + postRequestArray() + ); // Load form from template - LOAD_TEMPLATE("admin_admins_add"); -} -// + loadTemplate('admin_admins_add', false, $content); +} // END - if + +// [EOF] ?>