]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-autopurge.php
Security line in all includes changed
[mailer.git] / inc / modules / admin / what-autopurge.php
index 3df1e785caaaa3fe3dfd2e23f0242bacaae7f473..1a729d8e10a96c7fc1f1fcd0cad2f3280254127f 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!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__));
 
-if (isset($_POST['ok']))
-{
+if (isset($_POST['ok'])) {
        // Data was submitted so we store it
-}
- else
-{
+       ADMIN_SAVE_SETTINGS($_POST);
+} else {
        // Setup constants for the template
        switch ($_CONFIG['ap_inactive'])
        {