• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

[SOLVED]Admin not able to identify.

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

[SOLVED]Admin not able to identify.

Postby WesleyBishop » Sun May 05, 2013 3:21 am

Here is the code:
$params = array();
$params["title"] = "S.E.X. Chat";
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params['firstisadmin'] = false;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );
$params['admins'] = array('Impulse' => '*****', 'Xena' => '*****');

When I type /nick Impulse or /nick Xena it works fine changes the nick and gives admin privileges but does not require password. Also when I type /identify MYSECRET it says "Identification failure".


p.s. changed the posted code password to stars as I do not want to reveal my passwords :)
Last edited by WesleyBishop on Sun May 05, 2013 4:46 am, edited 1 time in total.
WesleyBishop
New member
 
Posts: 9
Joined: Wed May 01, 2013 11:29 pm
Top

Re: Admin not able to identify.

Postby WesleyBishop » Sun May 05, 2013 3:55 am

Also I did try /rehash and that did not work so I deleted the private cache.
WesleyBishop
New member
 
Posts: 9
Joined: Wed May 01, 2013 11:29 pm
Top

Re: Admin not able to identify.

Postby WesleyBishop » Sun May 05, 2013 3:59 am

Also I put this code in the index.php at the root not sure if that is the right place.
WesleyBishop
New member
 
Posts: 9
Joined: Wed May 01, 2013 11:29 pm
Top

Re: Admin not able to identify.

Postby WesleyBishop » Sun May 05, 2013 4:31 am

Okay after playing with it for a long while I fgured out that I just needed to move the code up a few lines. So here is what it looks like now.

$params = array();
$params["title"] = "S.E.X. Chat";
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params['admins'] = array('Impulse' => '*****',
'Xena' => '*****');
$params['firstisadmin'] = false;
$params["isadmin"] = false; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );

And TADA it works! :)
WesleyBishop
New member
 
Posts: 9
Joined: Wed May 01, 2013 11:29 pm
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 11 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub