Pm to all friends

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    hiiiiiii

    Originally posted by sklbd View Post
    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
    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&amp;sid=$sid\" method=\"post\">";
      echo 
    "<postfield name=\"pmtou\" value=\"$(pmtou)\"/>";
       echo 
    "</go></anchor>";
      echo 
    "<br/>";
      echo 
    "<a href=\"index.php?action=main&amp;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&amp;sid=$sid\">";
    echo 
    "Home</a>";
    echo 
    "</p>";
    echo 
    "</card>";
    echo 
    "</wml>";
    exit();

    add this in owner tool

    PHP Code:
    echo "<a href=\"ownercp.php?action=sendpm&amp;sid=$sid\">&#x2022; 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
    Last edited by revenge; 03.01.10, 06:04. Reason: hey

    Comment


      #17
      thanks mate but i already have this.
      http://www.youtube.com/watch?v=vsLkpcFKbOk

      Comment

      Working...
      X