]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_points.php
admin_new_ext.tpl now resists in right folder, some minor changes
[mailer.git] / inc / modules / admin / what-config_points.php
index b11990bec1aca02cdd27ff76bc657f306d32cef7..74fffe655d1c38aa4a6419c86033ea2e5d52e95c 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
 
-global $link;
-
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-OPEN_TABLE("100%", "admin_content admin_content_align", "");
 if (!empty($_GET['sub']))
 {
        switch ($_GET['sub'])
@@ -89,7 +85,7 @@ if (isset($_POST['ok']))
                        break;
 
                case "edit": // Change entries
-                       foreach ($_POST['lvl'] as $id=>$value)
+                       foreach ($_POST['lvl'] as $id => $value)
                        {
                                // Secure ID
                                $id = bigintval($id);
@@ -102,7 +98,7 @@ if (isset($_POST['ok']))
                        break;
 
                case "del":
-                       foreach ($_POST['id'] as $id=>$value)
+                       foreach ($_POST['id'] as $id => $value)
                        {
                                $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_refdepths WHERE id=%s LIMIT 1",
                                 array(bigintval($id)), __FILE__, __LINE__);
@@ -163,11 +159,7 @@ WHERE mails_confirmed < %s", $REF, $REF);
                        $content = "<SPAN class=\"admin_done\">".SETTINGS_SAVED."</SPAN>";
 
                        // Destroy config cache file here...
-                       if (GET_EXT_VERSION("cache") >= "0.1.2")
-                       {
-                               if ($cacheInstance->cache_file("config", true)) $cacheInstance->cache_destroy();
-                               unset($cacheArray);
-                       }
+                       REBUILD_CACHE("config", "config");
                }
                 else
                {
@@ -217,7 +209,7 @@ WHERE mails_confirmed < %s", $REF, $REF);
        {
                // Delete entries
                $SW = 2; $OUT = "";
-               foreach ($_POST['sel'] as $id=>$value)
+               foreach ($_POST['sel'] as $id => $value)
                {
                        $result = SQL_QUERY_ESC("SELECT level, percents FROM "._MYSQL_PREFIX."_refdepths WHERE id=%s LIMIT 1",
                         array(bigintval($id)), __FILE__, __LINE__);
@@ -245,7 +237,7 @@ WHERE mails_confirmed < %s", $REF, $REF);
        {
                // Edit entries
                $SW = 2; $OUT = "";
-               foreach ($_POST['sel'] as $id=>$value)
+               foreach ($_POST['sel'] as $id => $value)
                {
                        $result = SQL_QUERY_ESC("SELECT level, percents FROM "._MYSQL_PREFIX."_refdepths WHERE id=%s LIMIT 1",
                         array(bigintval($id)), __FILE__, __LINE__);
@@ -321,6 +313,5 @@ WHERE mails_confirmed < %s", $REF, $REF);
        LOAD_TEMPLATE("admin_config_points");
 }
 
-CLOSE_TABLE();
 //
 ?>