X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_add.php;h=3edfbca24fc7b7ee3ece589e9567dfeca9c9026c;hb=0b26d5d64d95a8001bc8ba27a2d27ca4888d5d80;hp=2a842c6144a5fe7b262379bfb03e5f37636c10d7;hpb=52e8a0635bd0b7c653845685c55e4e5f251375fe;p=mailer.git diff --git a/inc/modules/admin/what-admins_add.php b/inc/modules/admin/what-admins_add.php index 2a842c6144..3edfbca24f 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.""); + // Admin login saved + loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ADD_DONE--}'); - // Remove cache file - if (EXT_IS_ACTIVE("cache")) - { - if ($cacheInstance->cache_file("admins", true)) $cacheInstance->cache_destroy(); - } - } - else - { - // Free memory - SQL_FREERESULT($result); - } -} + // Run filter chain + runFilterChain('post_admin_added', postRequestArray()); + } // END - if + } // 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_add_admins', false, $content); +} // END - if + +// [EOF] ?>