else if($action=="prvtall2")
{
echo "<card id=\"main\" title=\"Owner Tools\">";
echo "<p align=\"center\">";
echo "</p>";
$who = mysql_real_escape_string($_POST["who"] );
$pmtou1 = mysql_real_escape_string($_POST["pmtou1"] );
$who = mysql_real_escape_string($_GET["who"] );///if not working try to delete this mate
$byuid = getuid_sid($sid);
$tm = microtime(get_as_float);
if($who=="online")
{
$lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
echo "<p>";
echo "<img src=\"../images/check.png\" alt=\"x\"/>";
echo "The Online Members have been sent This Message<br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\">»Owner Tools</a>";
$pms = mysql_query("SELECT userid FROM ibwf_online ");
$tm = microtime(get_as_float);
while($pm=mysql_fetch_array($pms))
{
mysql_query("INSERT INTO ibwf_private SET text='Public Anouncment:[br/]".$pmtou1."[br/][i]This message was sent to all online members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
}
echo "</p>";
echo "</card>";
}
}
here you GO mate
//////////////////////////PM 2 ALL
else if($action=="toall")
{
addonline(getuid_sid($sid),"Owner Tools","");
echo "<card id=\"main\" title=\"Owner Tools\">";
echo "<p align=\"center\">";
echo "<b>Owner Tools</b>";
echo "</p>";
echo "message: <input name=\"pmtou1\" maxlength=\"60\"/><br/>";
echo "pm to:<br/><select name=\"who\">";
echo "<option value=\"online\">to members</option>";
/////echo "<option value=\"2\">to staffs</option>";///////u can add this if u want to add some options to send
echo "</select><br/>";
echo "<anchor>SUBMIT";
echo "<go href=\"ownrproc.php?action=prvtall2&sid=$sid\" method=\"post\">";
echo "<postfield name=\"pmtou1\" value=\"$(pmtou1)\"/>";
echo "<postfield name=\"who\" value=\"$(who)\"/>";
echo "</go></anchor><br/>-----<br/>";
echo "<p>";
echo "<a href=\"index.php?action=main&sid=$sid\">»Main Menu</a>";
echo "</p></card>";
}
BTW mate u can use this in xhtml
$who = mysql_real_escape_string($_REQUEST["who"] );
$pmtou1 = mysql_real_escape_string($_REQUEST["pmtou1"] );
With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com