IlIChat

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

    IlIChat

    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 .
    Attached Files

    #2
    Originally posted by riderz View Post
    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

    Comment


      #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."&amp;pass=$pass&amp;ver=wm l&amp;mod=make_staff&amp;nocache=$nocache\">Make Staff</a><br/>\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 :D
      Step 9 : Bye LoL
      Code:
      <?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."&amp;pass=$pass&amp;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";
       }  
      //////////////////////////////////////////////////////////////////////////
      ?>
      Last edited by Guest; 10.06.09, 06:17.

      Comment

      Working...
      X