// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-global $link;
-
$SEL = 0;
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
break;
case "edit": // Update banner
- foreach ($_POST['sel'] as $id=>$sel)
+ foreach ($_POST['sel'] as $id => $sel)
{
// Secure ID
$id = bigintval($id);
}
break;
}
- if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
+ if (SQL_AFFECTEDROWS() == 1)
{
$content = "<SPAN class=\"admin_done\">".SETTINGS_SAVED."</SPAN>";
}
{
// Edit banner
$SW = ""; $OUT = "";
- foreach ($_POST['sel'] as $id=>$sel)
+ foreach ($_POST['sel'] as $id => $sel)
{
// Load data
$result = SQL_QUERY_ESC("SELECT url, alternate, visible FROM "._MYSQL_PREFIX."_refbanner WHERE id=%s LIMIT 1",
if (($SEL > 0) && (isset($_POST['del'])))
{
// Delete banner
- foreach ($_POST['sel'] as $id=>$sel)
+ foreach ($_POST['sel'] as $id => $sel)
{
$result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_refbanner WHERE id=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
// Form for adding new referral levels
LOAD_TEMPLATE("admin_add_banner");
}
-CLOSE_TABLE();
+
//
?>