• 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

The docs did you tell you what file to edit admin password

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

Post a reply
4 posts • Page 1 of 1

Postby ptaylor » Wed Jun 20, 2012 5:55 pm

The docs is missing the file name that tell you what file edit to change the admin username and password? What file do I need to edit?? Its not in the index.php file.


I tried adding this to the index.php but its not taking the password

<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick 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['admin'] = array('Phil'=> 'Password' , 'Admin' => 'Password');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

I typed this

1. /nick Phil
2. /identify The-Correct_password

identify failed.




Thanks
Phil
Last edited by ptaylor on Wed Jun 20, 2012 6:20 pm, edited 1 time in total.
ptaylor
New member
 
Posts: 2
Joined: Wed Jun 20, 2012 5:52 pm
Top

Postby re*s.t.a.r.s.*2 » Wed Jun 20, 2012 8:32 pm

HI,

http://www.phpfreechat.net/parameters#admins -> to set admins..

http://www.phpfreechat.net/parameters -> all parameters..

and all this parameter goes in the index.php

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby ptaylor » Wed Jun 20, 2012 9:16 pm

That did not answer my question why is not working? I used the example in the index.php but its not working.
ptaylor
New member
 
Posts: 2
Joined: Wed Jun 20, 2012 5:52 pm
Top

Postby OldWolf » Thu Jun 21, 2012 8:23 am

ptaylor wrote:$chat = new phpFreeChat( $params );

Needs to come after
ptaylor wrote:$params['admin'] = array('Phil'=> 'Password' , 'Admin' => 'Password');

In order for parameters to be passed, they need to be in the array before the array is passed.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
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 17 guests

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