• 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

$params["admins"]

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

Post a reply
3 posts • Page 1 of 1

$params["admins"]

Postby Gudlife » Tue Sep 25, 2012 9:39 am

I'me confused...

I followed the instructions and set my params as following:

//set phpfreechat parameters
require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Clinic Beaucare - the chat room";
$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"] = true;
$params["max_channels"] = 10;
$params["timeout"] = 6000;
$params["admins"] = array('luc_vrambout' => '1234', 'felix' => '1234');
$params["max_displayed_lines"] = 100;
$params["max_msg"] = 0;
$params["btn_sh_smileys"] = false;
$params["btn_sh_whosonline"] = false;
$params["time_format"] = "H:i";

$chat = new phpFreeChat( $params );

the problem:

I need to keep 2 admins (luc_vrambout & felix), and I need the admin login to be accompinied by password check.
What happens is that the system simply does not recognize the admins, and of course, does not ask for password.
I find that weird especially that all other params work efficiently. This admin issue is of great importance, because whithout that feature, I will have to abandon pfc for some other solution. I have until end of the week to bring a solution to this. If not, bad news ;-)

I would be really thankfull to anyone who could help me solve this.

Gudlife
Gudlife
New member
 
Posts: 2
Joined: Tue Sep 25, 2012 9:32 am
Top

Re: $params["admins"]

Postby OldWolf » Tue Sep 25, 2012 4:56 pm

There is often a misunderstanding of the admin system. Creating admin/password combos does not protect the admin username you choose. What it does is makes it possible, if you /nick yourself to that username, to use /identify thepasswordyouchose to gain admin rights.
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

Re: $params["admins"]

Postby Gudlife » Fri Sep 28, 2012 7:56 am

Thanks OldWolf, I indeed misunderstood the functioning of the admin system. Problem solved. Thanks again ;-)
Gudlife
New member
 
Posts: 2
Joined: Tue Sep 25, 2012 9:32 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 18 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