IlIChat

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

2 replies · 2,246 views · started 17 years ago · 1 min read

2 participants
riderz Lead · 975 posts #1

I have the ilichat but who can tell me where the ppl can make other users staff in here

in that zip archive u will see a "admin.php" file... just open it with notepad or your favorite php editor..... then on line 4 you will see "$adm_pass = "blabla";"

blabla is the password.... it can be different... you just replace the text blabla to your own and you are done.....

HOW TO BECOME ADMIN:

  1. First of all Register Yourself.
  2. the browse that registered username by PHPMYADMIN
  3. Edit it to set level to "4". 4 Now you are admin.....

similarly i think for making moderator set level to 3 .


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Anshul Senior · 296 posts #2

riderz wrote: I have the ilichat but who can tell me where the ppl can make other users staff in here

in that zip archive u will see a "admin.php" file... just open it with notepad or your favorite php editor..... then on line 4 you will see "$adm_pass = "blabla";"

blabla is the password.... it can be different... you just replace the text blabla to your own and you are done.....

HOW TO BECOME ADMIN:

  1. First of all Register Yourself.
  2. the browse that registered username by PHPMYADMIN
  3. Edit it to set level to "4". 4 Now you are admin.....

similarly i think for making moderator set level to 3 .

it was already upload by me long ago

http://coding-talk.com/f16/wap-ilichat-2862/

Guest #3

Step 1: goto includes/wml/admin/ Step 1: make a file name with : make_staff Step 3: Add code what I shown here in make_staff file Step 4 open ur admin.php in main root, and add this line.. case 'make_staff': Step 5 goto default case and add this line: echo "<a href="admin.php?".SID."&pass=$pass&ver=wml&mod=make_staff&nocache=$nocache">Make Staff</a> \n"; Step 6 : its done Step 7 : test it Step 8 : if any error than solve ur self, hope you will be able to do it 😀 Step 9 : Bye LoL

<?php
/*make_staff*/
//////////////////////////////////////////////////////////////////////////
print '<b>Make Staff</b><br/>';
if(empty($act))
 {
    print "<b>Nick/ID:</b><br/><input name=\"who\"/><br/>";
    print "<b>Mod Level:</b><br/><input name=\"mlevel\"/><br/>";
    print "
          <anchor>[UPDATE]<go href=\"admin.php?".SID."&pass=$pass&ver=wml\" method=\"post\">
          <postfield name=\"act\" value=\"add\"/>
          <postfield name=\"who\" value=\"$(who)\"/>
          <postfield name=\"mlevel\" value=\"$(mlevel)\"/>
          </go></anchor>"; 
 } 
else 
 {
   $query = @mysql_query("SELECT `id`, `nickname` FROM `chat_users` WHERE nickname='".$who."' LIMIT 1;");
   $user = mysql_fetch_array($query);
   if(empty($user['id']))
     print "Such User doest not exists in our database.<br/>";
  if(@mysql_query("UPDATE `chat_users` SET moder='".$mlevel."'  WHERE nickname='$who' ;")) 
    {
        print "<b>Done</b><br/>"; 
    }
  else 
    print "ERROR";
 }  
//////////////////////////////////////////////////////////////////////////
?>

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