\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"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"._ML_SUBJECT."
"._ML_MAIN."
"._ML_ENTERTEXTPLAIN."
"._ML_ENTERTEXTHTML."
\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"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "
"._ML_ADDSTORY."
"._ML_ADDAS."
"._ML_ADDSEPERATOR."
\n"; CloseTable(); } $result = $db->sql_query("SELECT bid, imageurl FROM ".$prefix."_banner"); $num = $db->sql_numrows($result); if($num) { echo "
\n"; OpenTable(); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo ""; echo "\n"; echo "\n"; echo "\n"; echo "
"._ML_ADDBANNER.""; while (list ($bid, $imageurl) = $db->sql_fetchrow($result)) { if (strlen($imageurl) > 0) { echo("
\n"); } } echo "
"._ML_ADDSEPERATOR."
\n"; CloseTable(); } } else { OpenTable(); if(!$num1) { echo "
"._ML_NOSUBSCRIBERS."

\n"; } if(!$num2) { echo "
"._ML_NOLISTS."

\n"; } echo "
"._GOBACK."
"; CloseTable(); } @include("footer.php"); ?>