hiiiiiii
add it in ownercp or admin cp
add this in owner tool
so its WML code convert it urself in xhtml if u want u can send it pm only 1 tym in 24hrz by d way its free i got from here so dont try to scam idiot hehe njoy
Originally posted by sklbd
View Post
PHP Code:
else if($action=="sendpm")
{
addonline(getuid_sid($sid),"Owner cp","");
echo "<card id=\"main\" title=\"PM t all\">";
echo "<p align=\"center\"><br/>";
echo "Send PM to every member";
echo "<br/><br/><input type=\"text\" name=\"pmtou\" size=\"15\" maxlength=\"500\" /><br/>";
echo "<anchor>send<go href=\"ownercp.php?action=sendpmtoall&sid=$sid\" method=\"post\">";
echo "<postfield name=\"pmtou\" value=\"$(pmtou)\"/>";
echo "</go></anchor>";
echo "<br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
}
PHP Code:
else if($action=="sendpmtoall")
{
addonline(getuid_sid($sid),"owner cp","");
echo "<card id=\"main\" title=\"Owner CP\">";
echo "<p align=\"center\">";
$pmtou = $_POST["pmtou"];
$byuid = getuid_sid($sid);
$tm = time();
$lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
echo "All users has been sent a PM<br/>";
$pms = mysql_query("SELECT id, name FROM ibwf_users WHERE lastact>'".$tm24."'");
$tm = time();
while($pm=mysql_fetch_array($pms))
{
mysql_query("INSERT INTO ibwf_private SET text='[b]site Anouncment:[/b][br/]".$pmtou."[br/][i]*Automated PM* No reply[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
}
echo "<p align=\"center\">";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
PHP Code:
echo "<a href=\"ownercp.php?action=sendpm&sid=$sid\">• send PM to every1</a><br/>";
Comment