]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-refbanner.php
Obsoleted parameters to SQL_AFFECTED_ROWS() removed, OPEN_TABLE() and CLOSE_TABLE...
[mailer.git] / inc / modules / admin / what-refbanner.php
index 1d8c3605fbbc690cbcedb39205b174b5b2ab6112..80c0588efbf59a78b5cc24b8fddc099a8132cb36 100644 (file)
@@ -40,8 +40,6 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-global $link;
-
 $SEL = 0;
 if ((empty($_POST['url'])) || (empty($_POST['alternate'])))
 {
@@ -49,7 +47,6 @@ if ((empty($_POST['url'])) || (empty($_POST['alternate'])))
 }
 if (!empty($_POST['sel'])) $SEL = SELECTION_COUNT($_POST['sel']);
 
-OPEN_TABLE("100%", "admin_content admin_content_align", "");
 if (isset($_POST['ok']))
 {
        // Fix older calls from add-new-banner-form
@@ -87,7 +84,7 @@ VALUES ('%s', '%s', '%s')",
                }
                break;
        }
-       if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
+       if (SQL_AFFECTEDROWS() == 1)
        {
                $content = "<SPAN class=\"admin_done\">".SETTINGS_SAVED."</SPAN>";
        }
@@ -174,6 +171,6 @@ VALUES ('%s', '%s', '%s')",
        // Form for adding new referral levels
        LOAD_TEMPLATE("admin_add_banner");
 }
-CLOSE_TABLE();
+
 //
 ?>