QUOTE (Numb @ Dec 27 2008, 09:59 AM) <{POST_SNAPBACK}>
Who have the following codes to share An award space to give awards for members example are at world.2wap
A code that show the lats 10 posts made
A code to send pm to all members
A code to give plusses to all members
Post requests in proper forum and
use search to find some posted codes 🤔
this in sef.php
else if($action=="masss")
{
echo "<card id="main" title="Cpanel ">";
echo "
";
echo "send mass 2 all
";
echo "<input name="pmtext" maxlength="500"/>
";
echo "<anchor>SEND<go href="seff.php?action=masss&sid=$sid" method="post">";
echo "<postfield name="pmtext" value="$(pmtext)"/>";
echo "</go></anchor>
";
echo "<a href="index.php?action=ownercp&sid=$sid"><img src="images/admn.gif" alt=""/>";
echo "cpanel</a>
";
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt=""/>";
echo "Prim</a>";
echo "
";
echo "</card>";
}
////////////////////
else if($action=="masss")
{
$pmtext = $_POST["pmtext"];
echo "<card id="main" title="Cpanel ">";
echo "
";
echo "<img src="images/ok.gif" alt="O"/>Mass send succes:
$pmtext
";
$sql = "SELECT id, name FROM ibwf_users WHERE perm>'".$online."'";
$items = mysql_query($sql);
echo mysql_error();
while ($item = mysql_fetch_array($items))
{
$trimite = $item[0];
$nume = $item[1];
$res = mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='1', touid='".$trimite."', timesent='".time()."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>**$nume**succes
";
}else{
echo "<img src="images/notok.gif" alt="O"/>Erorr
";
}
}
echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>";
echo "home</a>";
echo "
";
echo "</card>";
}
//////try this:P to send pm 2 all