Pm to all club member

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

    Pm to all club member

    anybody hv this code?

    #2
    I dont have time copy and paste this code and i dont have time to edit lavascript again. Download old retrivewap script and copy the action==pmallmember and paste to here. I will secure it 4 u. Or use if() state to secure it.

    E.g
    PHP Code:
     if($clubowner==$uid)
    {
    pm form here lol!
    }
    els{
    what are u doing herewhen you are not the club owner. **** you stop kidding adex3gstupid hacker/cracker

    but is better to paste it here, so i will help.
    have connected with http://adexchat.com ?
    Fun up with
    http://forum.adexchat.com

    Comment


      #3
      code it by ur self.. because all of us dont know the SQL fields of your database

      adex3g is correct IF condition

      and you put your code inside of that condition

      if($clubowner==$uid)
      {
      // you need to use INNER JOIN sql command to combine the 2 table ibwf_private and ibwf_clubmember

      mysql_query("INSERT INTO ibwf_private SET touid='".$variable."', byuid='".$clubowner."', timesend=''".time()."' ");
      }els{
      what are u doing here, when you are not the club owner. **** you stop kidding adex3g, stupid hacker/cracker
      }

      Comment


        #4
        Originally posted by adex3g View Post
        I dont have time copy and paste this code and i dont have time to edit lavascript again. Download old retrivewap script and copy the action==pmallmember and paste to here. I will secure it 4 u. Or use if() state to secure it.

        E.g
        PHP Code:
         if($clubowner==$uid)
        {
        pm form here lol!
        }
        els{
        what are u doing herewhen you are not the club owner. **** you stop kidding adex3gstupid hacker/cracker

        but is better to paste it here, so i will help.
        Originally posted by leadiztah View Post
        code it by ur self.. because all of us dont know the SQL fields of your database

        adex3g is correct IF condition

        and you put your code inside of that condition

        if($clubowner==$uid)
        {
        // you need to use INNER JOIN sql command to combine the 2 table ibwf_private and ibwf_clubmember

        mysql_query("INSERT INTO ibwf_private SET touid='".$variable."', byuid='".$clubowner."', timesend=''".time()."' ");
        }els{
        what are u doing here, when you are not the club owner. **** you stop kidding adex3g, stupid hacker/cracker
        }
        Do you see what i see lol

        Tell me whats wrong in this picture ??

        What error did you both make ??

        Other coders leave it upto this newbies they need to learn how to code.
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          PHP Code:
          // in club index add :
          if($clinfo['owner'] == $uid)
           echo 
          '<a href="index.php?action=clubpm&amp;sid='.$sid.'&amp;clubid='.$clid.'">Pm to all members</a>';
          //in index.php
          else if($action == 'clubpm')
          {
             
          $clubid = (int)$_GET['clubid'];
             
          $info mysql_fetch_row(mysql_query("SELECT owner FROM ibwf_clubs WHERE id='".$clubid."'"));
              
          addonline(getuid_sid($sid),'Admin','');
            
              echo 
          '<card id="main" title="club">';
              echo 
          '<p align="center">';

              if(
          $info[0] == '' || $info[0] != $uid){
               echo 
          'This club dont exist or u arent the club owner.';
              }else{
              if(!isset(
          $_POST['text']) && $_POST['text'] == ''){
                  echo 
          'Pm text: <input name="text" maxlength="30"/><br/>';
                  echo 
          '<anchor>Send';
                  echo 
          '<go href=\"index.php?action=clubpm&amp;sid='.$sid.'&amp;clubid='.$clubid.'" method="post">';
                  echo 
          "<postfield name=\"text\" value=\"$(text)\"/>";
                  echo 
          '</go></anchor>';
              }else{
                  
          $sql mysql_query("SELECT uid FROM ibwf_clubmembers WHERE clid='".$clubid."' AND accepted='1'");
                  
          $no 0;
                while(
          $user mysql_fetch_assoc($sql)){
                  
          $sent autopm(mysql_real_escape_string($_POST['text'],$user['uid']);    
                  if(
          $sent)$no++;       
               }
                  if(
          $no 0) echo 'Pm sent to '.$no.' member'.($no 2?'':'s').'<br/>'; else echo 'Error. Try again later.';
              }
             }
              echo 
          '<a href="index.php?action=main&amp;sid='.$sid.'">Home</a>';
              echo 
          '</p>';
              echo 
          '</card>';

          Ps: autopm function must be already defined in core.php :P
          PS2: This wasnt tested;))
          Last edited by i0nutzxp; 03.02.11, 08:02.
          <?php unlink('World/Europe/Romania.country'); ?>

          Comment


            #6
            Originally posted by subzero View Post
            Do you see what i see lol

            Tell me whats wrong in this picture ??

            What error did you both make ??

            Other coders leave it upto this newbies they need to learn how to code.
            i think one mistake is
            PHP Code:
            }els
            wich should b
            PHP Code:
            }else{ 
            and another one is
            PHP Code:
            action==pmallmember 
            should b like this
            PHP Code:
            (action=="pmallmember"
            is that what you mean :-?

            Comment

            Working...
            X