\n";
$maxstories = 50;
$send = $adminmail;
if (strlen($sub) == 0) { $sub = _ML_TITLE; }
$text = stripslashes($text);
$htmltext = stripslashes($htmltext);
$num1 = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnml_users"));
$num2 = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsnml_lists"));
if($num1 && $num2) {
OpenTable();
echo "
\n";
CloseTable();
$result = $db->sql_query("SELECT sid, title FROM ".$prefix."_stories ORDER BY sid DESC LIMIT $maxstories");
$num = $db->sql_numrows($result);
if($num) {
echo "
";
OpenTable();
echo "\n";
CloseTable();
}
$result = $db->sql_query("SELECT bid, imageurl FROM ".$prefix."_banner");
$num = $db->sql_numrows($result);
if($num) {
echo "
\n";
OpenTable();
echo "\n";
CloseTable();
}
} else {
OpenTable();
if(!$num1) { echo ""._ML_NOSUBSCRIBERS."
\n"; }
if(!$num2) { echo ""._ML_NOLISTS."
\n"; }
echo ""._GOBACK."";
CloseTable();
}
@include("footer.php");
?>