gestisco la mia ML con questo modulo di phpnuke
il modulo funziona correttamente solo che al secondo o terzo indirizzo interrompe l'invio. Da una ricerca fatta sul forum sembra un problema comune di AV e bisogna aggiungere un time di intervallo tra un invio e l'altro di 2-3 sec
alla fine del ciclo di invio.
Ora capito il problema e trovata la soluzione non riesco a trovare nel mio codice dove eseguire questa correzione e la funzione esatta (forse sleep()?)
Spero di ricevere un aiuto da qualcuno
questo il cod.
if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$result = $db->sql_query("select aid, email, radmingroup, radminsuper from $prefix"._authors." where aid='$aid'");
list($aname, $amail, $radmingroup, $radminsuper) = $db->sql_fetchrow($result);
if (($radmingroup==1) OR ($radminsuper==1)) {
function NSNGroupsAdmin() {
OpenTable();
echo "<center>\n<table cellpadding=\"3\">\n<tr>\n";
echo "<td align=\"center\" valign=\"top\" width=\"150\">";
echo "<a href=\"admin.php?op=NSNGroupsAdd\">"._GR_GROUPSADD ."</a><br>";
echo "<a href=\"admin.php?op=NSNGroupsView\">"._GR_GROUPSVI EW."</a><br>";
echo "</td>\n";
echo "<td align=\"center\" valign=\"top\" width=\"150\">";
echo "<a href=\"admin.php?op=NSNGroupsUsersEmail\">"._GR_GR OUPSEMAIL."</a><br>";
echo "</td>\n";
echo "<td align=\"center\" valign=\"top\" width=\"150\">";
echo "<a href=\"admin.php?op=NSNGroupsUsersAdd\">"._GR_GROU PSUSERSADD."</a><br>";
echo "<a href=\"admin.php?op=NSNGroupsUsersView\">"._GR_GRO UPSUSERSVIEW."</a><br>";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n<td colspan=\"3\" align=\"center\"><a href=\"admin.php\">"._MAINADMINMENU."</a></td>\n</tr>\n";
echo "</table>\n</center>\n";
CloseTable();
}
function NSNGroupsUsersCheck($uid,$gid) {
global $prefix, $db;
$ingroup = $db->sql_numrows($db->sql_query("SELECT uid FROM ".$prefix."_users_groups_users WHERE uid='$uid' AND gid='$gid'"));
if ($ingroup > 0) {
$pagetitle = _GR_ADMIN;
global $prefix, $user_prefix, $dbi, $bgcolor1, $bgcolor2;
include ("header.php");
title("$pagetitle");
NSNGroupsAdmin();
echo "<br>\n";
OpenTable();
echo "<center><b>"._GR_INGROUP."</b></center><br>\n";
echo "<center>"._GOBACK."</center>\n";
CloseTable();
include("footer.php");
die();
}
}
switch($op) {
/* case "NSNGroups":
$pagetitle = _GR_ADMIN;
global $prefix, $dbi, $bgcolor1, $bgcolor2, $bgcolor3;
include ("header.php");
title("$pagetitle");
NSNGroupsAdmin();
include("footer.php");
break;*/
case "NSNGroupsAdd":
$pagetitle = _GR_ADMIN.": "._GR_GROUPSADD;
global $prefix, $dbi;
include ("header.php");
title("$pagetitle");
NSNGroupsAdmin();
echo "<br>\n";
OpenTable();
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"2\">\n";
echo "<form method=post action=\"admin.php?op=NSNGroupsAddSave\">\n";
echo "<tr>\n";
echo "<td class=\"option\" align=\"center\">"._GR_GROUPNAME."<br>";
echo "<input type=\"text\" name=\"gname\" size=\"32\" maxlength=\"32\"><br>\n";
echo "<input type=\"submit\" value=\""._GR_ADDGRP."\"></td>\n";
echo "</tr>\n";
echo "</form>\n";
echo "</table></center>\n";
CloseTable();
include("footer.php");
break;
case "NSNGroupsAddSave":
global $prefix, $db;
if ($gname != "") {
$db->sql_query("INSERT INTO ".$prefix."_users_groups VALUES (NULL, '$gname')");
}
Header("Refresh: 0; url=admin.php?op=NSNGroupsView");
break;
case "NSNGroupsDelete":
$pagetitle = _GR_ADMIN.": "._GR_GROUPSDELETE;
include("header.php");
title("$pagetitle");
NSNGroupsAdmin();
echo "<br>\n";
OpenTable();
list($gname) = $db->sql_fetchrow($db->sql_query("SELECT gname FROM ".$prefix."_users_groups WHERE gid='$gid'"));
echo "<center><table><tr>\n";
echo "<form action=\"admin.php\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"op\" value=\"NSNGroupsDeleteConf\">\n";
echo "<input type=\"hidden\" name=\"gid\" value=\"$gid\">\n";
echo "<td align=\"center\">"._GR_DELGROUP." #$gid ($gname)?</td>\n";
echo "</tr><tr>\n";
echo "<td align=\"center\"><input type=\"submit\" value=\""._GR_DELETE." "$gname"\"></td>\n";
echo "</form>\n";
echo "</tr></table></center>\n";
echo "<center>"._GOBACK."</center>\n";
CloseTable();
include("footer.php");
break;
case "NSNGroupsDeleteConf":
global $prefix, $db;
$db->sql_query("DELETE FROM ".$prefix."_users_groups WHERE gid='$gid'");
$db->sql_query("OPTIMIZE TABLE ".$prefix."_users_groups");
$db->sql_query("DELETE FROM ".$prefix."_users_groups_users WHERE gid='$gid'");
$db->sql_query("OPTIMIZE TABLE ".$prefix."_users_groups_users");
Header("Refresh: 0; url=admin.php?op=NSNGroupsView");
break;
case "NSNGroupsEdit":
$pagetitle = _GR_ADMIN.": "._GR_GROUPSEDIT;
global $prefix, $db;
include ("header.php");
title("$pagetitle");
NSNGroupsAdmin();
echo "<br>\n";
OpenTable();
echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"2\">\n";
echo "<form method=\"post\" action=\"admin.php?op=NSNGroupsEditSave\">\n";
echo "<input type=\"hidden\" name=\"gid\" value=\"$gid\">\n";
echo "<tr>\n";
list($gname) = $db->sql_fetchrow($db->sql_query("SELECT gname FROM ".$prefix."_users_groups WHERE gid='$gid'"));
echo "<td class=\"option\" align=\"center\">"._GR_GROUP."<br>";
echo "<input type=\"text\" name=\"name\" size=\"32\" maxlength=\"32\" value=\"$gname\"><br>\n";
echo "<input type=\"submit\" value=\""._GR_EDITGRP."\"></td>\n";
echo "</tr>\n";
echo "</form>\n";
echo "</table></center>\n";
CloseTable();
include("footer.php");
break;
case "NSNGroupsEditSave":
global $prefix, $db;
$db->sql_query("UPDATE ".$prefix."_users_groups SET gname='$name' WHERE gid='$gid'");
Header("Refresh: 0; url=admin.php?op=NSNGroupsView");
break;
case "NSNGroupsEmpty":
$pagetitle = _GR_ADMIN.": "._GR_GROUPSEMPTY;
include("header.php");
title("$pagetitle");
NSNGroupsAdmin();
echo "<br>\n";
OpenTable();
list($gname) = $db->sql_fetchrow($db->sql_query("SELECT gname FROM ".$prefix."_users_groups WHERE gid='$gid'"));
echo "<center><table><tr>\n";
echo "<form action=\"admin.php\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"op\" value=\"NSNGroupsEmptyConf\">\n";
echo "<input type=\"hidden\" name=\"gid\" value=\"$gid\">\n";
echo "<td align=\"center\">"._GR_EMPGROUP." #$gid ($gname)?</td>\n";
echo "</tr><tr>\n";
echo "<td align=\"center\"><input type=\"submit\" value=\""._GR_EMPTY." "$gname"\"></td>\n";
echo "</form>\n";
echo "</tr></table></center>\n";
echo "<center>"._GOBACK."</center>\n";
CloseTable();
include("footer.php");
break;
case "NSNGroupsEmptyConf":
global $prefix, $db;
$db->sql_query("DELETE FROM ".$prefix."_users_groups_users WHERE gid='$gid'");
$db->sql_query("OPTIMIZE TABLE ".$prefix."_users_groups_users");
Header("Refresh: 0; url=admin.php?op=NSNGroupsView");
break;
....segue codice .....