Help Needed

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

    Help Needed

    how can i get the tools to work to make admin in chat room and clear messages in chat

    #2
    hmm waht scrip you use ?

    Comment


      #3
      hmm waht scrip you use ?[/b]
      cgi

      Comment


        #4
        lol i suck @ cgi..... PHP is d best!

        Comment


          #5
          lol i suck @ cgi..... PHP is d best![/b]
          thats no good lol

          Comment


            #6
            write a code to truncate the table in which chat messeges get stored thats all i can help in this

            Comment


              #7
              elsif ($command =~ /^\/clear/i && AdminLevels::CanEraseChat($uid)) {
              $msg2 = clear_illegal_user_chars($msg2);
              if (AdminLevels::CanEraseChat($uid, $msg2) && clear_user_chat($msg2)) {
              new_msg($rid,"$msg2 Has Shut Up Now! HaHaHa...","X",$uid,0);
              }
              Location("index.cgi","a=r4&m=m1&rid=$rid&rand=$now ");
              }
              # CREATE ADMIN (ADMIN):
              elsif ($command =~ /^\/new/i) {
              CHECK: {
              last CHECK unless $msg2 =~ /^(\S+)\s+(.*)$/;
              my ($recipient, $level) = ($1, $2);
              $recipient = clear_illegal_user_chars($recipient);
              last CHECK unless AdminLevels::CanMakeAdmin($uid, $recipient, $level);

              my $msgid = create_admin($recipient, $level);
              new_msg($rid, "$recipient is now " . AdminLevels::GetLevelNameByUserName($recipient) . "!", "X", $uid, 0)
              if ($msgid);
              }
              Location("index.cgi","a=r4&m=m1&rid=$rid&rand=$now ");
              }

              Comment

              Working...
              X