• 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

Others can use admin\'s and mod\'s name WHY?

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

Post a reply
13 posts • Page 1 of 1

Postby zooky » Fri Sep 15, 2006 6:28 pm

I have installed everything but, when other type my admin name they can get it too. How can i prevent this?

I tired (kerphi) but i coulnt take the name, i think there is someting i don know...


PLS HELP....
zooky
Member
 
Posts: 60
Joined: Wed Sep 13, 2006 9:09 am
Top

Postby phpfreechat » Fri Sep 15, 2006 7:18 pm

just add a password to your admin user :
$params["admins"] = array("admin"=>"yourpassword");

(don't forget to rehash)
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby zooky » Fri Sep 15, 2006 7:26 pm

kerphi wrote:just add a password to your admin user :
$params["admins"] = array("admin"=>"yourpassword");

(don't forget to rehash)

in which file should i add this code?

and when i /rehash an error message comes like this

http://img125.imageshack.us/img125/8355 ... ed1be1.jpg

how can i overcome this...
zooky
Member
 
Posts: 60
Joined: Wed Sep 13, 2006 9:09 am
Top

Postby phpfreechat » Fri Sep 15, 2006 8:34 pm

in your script chat.
maybe index.php if you use the default installation script.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby zooky » Sat Sep 16, 2006 12:26 am

kerphi wrote:in your script chat.
maybe index.php if you use the default installation script.

in demo40_in_turkish.php i added the code below, but it does not work :(

everbody can change or get my nick, and also another problem is, guests can also have priviliges of using /kick, /ban.... there is no warning like, you are not authorized to use this command...

I also enabled authentication from admin panel and the information in the admin panel and this $params["admins"] = array("jack"=>"123456"); is the same...

pls HELP...



<?php

require_once dirname(__FILE__)."/../src/phpfreechat.class.php";

$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["nick"] = "okuogren".rand(1,10); // setup the intitial nickname
$params["isadmin"] = true; // just for debug ;)
$params["admins"] = array("jack"=>"123456");
$params["language"] = "tr_TR";
$params["channels"] = array('Türkçe','English');
$params["refresh_delay"] = 2000; // 2000ms = 2s
$chat = new phpFreeChat( $params );

?>
zooky
Member
 
Posts: 60
Joined: Wed Sep 13, 2006 9:09 am
Top

Postby eretard » Sat Sep 16, 2006 2:04 pm

Thanks Kerphi,

I learn something new everyday, and this worked percetly in beta 5.
Now in theory, i can change the name of admin in the array to any name that I want the admin to be, correct ?

Tom
eretard
Member
 
Posts: 21
Joined: Sat Sep 09, 2006 12:46 pm
Top

Postby eretard » Sat Sep 16, 2006 2:08 pm

Be careful all, it just found out that this IS case sensitive. :)

Tom
eretard
Member
 
Posts: 21
Joined: Sat Sep 09, 2006 12:46 pm
Top

Postby phpfreechat » Sat Sep 16, 2006 3:03 pm

zooky, this parameter make everybody admin :
$params["isadmin"] = true;

So remove it !
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby zooky » Sat Sep 16, 2006 5:21 pm

kerphi, i did exactly what u said, but still i have problem with keeping only for me and my moderators nicks...

Everything works well, I use beta 4 and others can change and get my nickname, so they have control. I don't know how you can log in your DEMO CHAT, when i try "kerphi" it always says "_Choosen nickname is allready used_" but u cannot be in the chat always, there is no username and password box, is there anyone who can successfully done this exept kerphi_?

this is the latest code i includedin index.php, I also identify the same nick and the password in the admin panel.


<?php

require_once dirname(__FILE__)."/../src/phpfreechat.class.php";
$params["title"] = "doesnt work";
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["admins"] = array("jack"=>"123456");
$params["language"] = "tr_TR";
$params["channels"] = array('Türkçe','English');
$params["refresh_delay"] = 2000; // 2000ms = 2s
$chat = new phpFreeChat( $params );
?>
zooky
Member
 
Posts: 60
Joined: Wed Sep 13, 2006 9:09 am
Top

Postby zooky » Sat Sep 16, 2006 6:36 pm

sorry for bothering, i forgot to do /identify password...

i am really very sorry :(
zooky
Member
 
Posts: 60
Joined: Wed Sep 13, 2006 9:09 am
Top

Postby madmumbler » Sun Oct 01, 2006 1:27 am

Okay, I figured out the part of this thread dealing with password protecting the admin names and setting the isadmin parameter to false. I've got that. But I'm still lost how to "reserve" certain names so no one else can take them in the first place. I realize they can't actually do admin functions unless they do the identify command first and put in a password, but when they choose their username, how can I "reserve" certain names so if they try to take the name without putting in a password then, they can't?

Thanks!
Lesli.
Lesli in SWFL.
http://www.madmumbler.net/main/shop

Have YOU donated to the phpFreeChat project yet? Look for the PayPal button in the right column!
madmumbler
Member
 
Posts: 29
Joined: Sat Sep 30, 2006 9:57 pm
Location: SWFL
  • Website
Top

Postby phpfreechat » Sun Oct 01, 2006 4:22 pm

Nickname reservation is not yet possible.
The workaround is : play with 'nick' and 'frozen_nick' parameters + an external authentification system in order to be sure the nicks are taken by the rights persons.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby madmumbler » Sun Oct 01, 2006 4:49 pm

Ah, okay. I wanted to make sure I wasn't missing anything. :)

I'll play with that and see if I can get it working for Joomla. Will take me a while though. *LOL* If I can make it work for Joomla, I can write a flow chart for others to follow to try to tailor it for their own system.

Thanks!
Lesli.
Lesli in SWFL.
http://www.madmumbler.net/main/shop

Have YOU donated to the phpFreeChat project yet? Look for the PayPal button in the right column!
madmumbler
Member
 
Posts: 29
Joined: Sat Sep 30, 2006 9:57 pm
Location: SWFL
  • Website
Top


Post a reply
13 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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