Pm to all friends

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

#message-to-friends

16 replies · 861 views · started 16 years ago · 1 min read

10 participants
rap-4ever Developer · 180 posts #1

here is small php code for pm..

inbox.php

if($action=="prijatelji")
{
  addonline(getuid_sid($sid),"Salje PP za sve svoje prijatelje","");
  echo "<card id=\"main\" title=\"Serbian world - Salji PP\">";
  echo "<p align=\"center\">";
  $whonick = getnick_uid($who);
  echo "Posalji PP za sve svoje prijatelje<br/><br/>";
  echo "<input name=\"pmtext\" maxlength=\"500\"/><br/>";
  echo "<anchor>Posalji<go href=\"inbxproc.php?action=prijatelji&who=$who&sid=$sid\" method=\"post\">";
  echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>";
  echo "</go></anchor><br/><br/>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Pocetna</a><br/>Created by HartMann";
  echo "</p>";
    echo "</card>";

inbxproc.php

if($action=="prijatelji")
{
  echo "<card id=\"main\" title=\"Serbian World - Poruka poslata\">";
  echo "<p align=\"center\">";
    $byuid = getuid_sid($sid);
$whonick = getnick_uid($who);
$lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
$pms = mysql_query("SELECT uid FROM ibwf_buddies WHERE tid='$byuid'");
$tm = time();
while($pm=mysql_fetch_array($pms))
{
mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."[br/]ovu poruku sam poslao/la svim svojim prijateljima.', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
}

$pmk = mysql_query("SELECT tid FROM ibwf_buddies WHERE uid='$byuid'");
while($pm1=mysql_fetch_array($pmk))
{
mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."[br/]Ovu poruku sam poslao/la svim prijateljima..', byuid='".$byuid."', touid='".$pm1[0]."', timesent='".$tm."'");
}

echo "Poruka uspesno poslata!<br/> ";

  echo "<br/><br/><a href=\"inbox.php?action=main&sid=$sid\">Back to inbox</a><br/>";
  echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "Pocetna</a>";
  echo "</p>";
    echo "</card>";
}
Mysterio Lead · 630 posts #4

slayder wrote: :d yes you make the spammers job verry easy 🤪🔫

Thanks for code Rapper. If we want, we use, if not, we dont use it.

mysterio.al - programming is a functional art

kei_ki7 Senior · 431 posts #6

But he need it to add many members LoL! btw thanks

Did I help you? You can help me too Your donations will help me finance my studies.

sklbd Junior · 47 posts #11

pm to all member

i hv a script of pm to all member bt it is xhtml if u need u can contact with me

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

Mysterio Lead · 630 posts #13

sklbd wrote: i hv a script of pm to all member bt it is xhtml if u need u can contact with me

i think Rapper posted the code for begginers. For others it is not hard to do it.

mysterio.al - programming is a functional art

revenge Junior · 12 posts #16

hiiiiiii

sklbd wrote: i hv a script of pm to all member bt it is xhtml if u need u can contact with me

add it in ownercp or admin cp

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>";

}
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();
}

add this in owner tool

echo "<a href=\"ownercp.php?action=sendpm&sid=$sid\">• send PM to every1</a><br/>";

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

Erro occured when error file create

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close