<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
/********************************************************/
/* NSN Mailing List                                     */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2005 by NukeScripts Network         */
/********************************************************/

$bid = $db->XMFnum($bid);
$pagetitle = " - "._ML_ADMIN." ".$ml_config['version_number'];
incoh();
title(_ML_ADMIN." ".$ml_config['version_number']);
ML_Admin();
br('1');
Max_OpenTable();
if(strlen($text) > 0) { $text = stripslashes($text)."\n"; }
if(strlen($htmltext) > 0) { $htmltext = stripslashes($htmltext)."\n"; }
if ($bid != 0) {
  $query = "SELECT bid, imageurl, clickurl FROM ".$prefix."_banner WHERE bid='$bid'";
  $result = $db->sql_query($query);
  list($bid, $imageurl, $clickurl) = $db->sql_fetchrow($result);
}
$text = $text."\n"._ML_BANNERTEXT."\n$clickurl\n";
$htmltext = $htmltext."\n<a href='$clickurl'><img src='$imageurl'><br />\n";
if ($seperator == '1') {
  $text = $text._ML_TEXTSEPERATOR;
  $htmltext = $htmltext._ML_HTMLSEPERATOR;
}
echo "<center><b>"._ML_BANNERADDED."</b></center><br />\n";
echo "<form action='".$admin_file.".php?op=MLAddIssue' method='POST'>\n";
echo "<input type='hidden' name='sub' value='".htmlspecialchars($sub, ENT_QUOTES)."'>\n";
echo "<input type='hidden' name='text' value='".htmlspecialchars($text, ENT_QUOTES)."'>\n";
echo "<input type='hidden' name='htmltext' value='".htmlspecialchars($htmltext, ENT_QUOTES)."'>\n";
echo "<center><input type='submit' value='"._ML_RESUME."'></center>\n";
echo "</form>\n";
Max_CloseTable();
incof();

?>