X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_add.php;h=3edfbca24fc7b7ee3ece589e9567dfeca9c9026c;hp=667568fff6564d9ede5f40941bc8508333e953f9;hb=0b26d5d64d95a8001bc8ba27a2d27ca4888d5d80;hpb=143e78d4231adddd9e706cbf55ec5dd8c1651890 diff --git a/inc/modules/admin/what-admins_add.php b/inc/modules/admin/what-admins_add.php index 667568fff6..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] ?>