Help Needed

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

6 replies · 650 views · started 19 years ago · 1 min read

2 participants
madtaz14 #1

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

madtaz14 #3

hmm waht scrip you use ?

cgi

madtaz14 #5

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

thats no good lol

linkrx7 #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");
}

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