• 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

clearing sessions to test parameters

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

Post a reply
10 posts • Page 1 of 1

Postby jaco » Thu Nov 16, 2006 11:13 am

recently installed phpFreeChat 1.0 beta 7 - just having problems testing my parameter sessions. how do i clear the sessions so that when i refresh my page that i can test my new settings?

here is the parameters i used:

$params["title"] = "Some website I am using on";
$params["nick"] = $_SESSION['a_session_that_indicates_the)user']; // setup the intitial nickname
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["frozen_nick"] = true;
$params["height"] = "200px";

however i have refreshed like plenty of times but the height is still the same, this worked yesterday when i had an older version but had the same refresh problem
jaco
Member
 
Posts: 13
Joined: Wed Nov 15, 2006 4:39 pm
Location: south africa
Top

Postby phpfreechat » Thu Nov 16, 2006 11:58 am

you have to rehash your chat : http://www.phpfreechat.net/faq.en.html#rehash
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jaco » Thu Nov 16, 2006 6:05 pm

Hello Stephane

i successfully refreshed but because i have $params["frozen_nick"] = true; - i cant change back to the admin: You are not allowed to change your nickname

while i do administrator functions do i need to have $params["frozen_nick"] = false in order to get back into admin?

is there another way to log in as a administrator? so when you go into the chat you dont need to change your nickname?
jaco
Member
 
Posts: 13
Joined: Wed Nov 15, 2006 4:39 pm
Location: south africa
Top

Postby phpfreechat » Thu Nov 16, 2006 6:29 pm

you can change the admin password or add other user as admin, just read that : http://www.phpfreechat.net/faq.en.html#setup-admins
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jaco » Tue Nov 21, 2006 11:42 am

hello

was wondering how to do the following.

i set up admins parameters on the index page, but because $params["frozen_nick"] = true, I cannot login as an administrator.

and what is the syntax for using a password:

/nick adminname adminpasswrd?

the reason I want to keep frozen_nick true is because im using users from a database so if they do misbehave I can easily track them and warn them.

also is my parameter correct? > $params["nick"] = iconv("ISO-8859-1", "UTF-8", $_SESSION['user_name']); - used to work in the older version as: $params["nick" = $_SESSION['user_name'] but doesnt seem to work in the newer version.

or would the easiest way to do this be to create the admins the same name as my login names, so for example lets say I login as S_SESSION['user_name'] = 'someGuyAtSomeWebsite' and this is written to the session user_name.

now on my main chat page i have:

$params["nick"] = iconv("ISO-8859-1", "UTF-8", $_SESSION['user_name']); // setup the intitial nickname
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["frozen_nick"] = false;

$params['admins'] = array ('someGuyAtSomeWebsite' => 'somePwd'); - where would i put in the password?

only thing that im not sure about is how do i input the password?

ok so now i have logged in on the website i navigate to the chat room and it logs me in as an administrator i.e someGuyAtSomeWebsite , could this work?
jaco
Member
 
Posts: 13
Joined: Wed Nov 15, 2006 4:39 pm
Location: south africa
Top

Postby phpfreechat » Tue Nov 21, 2006 12:42 pm

you have to use the /identify command to identify your user as admin.
ex:
/identify yourpassword
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jaco » Tue Nov 21, 2006 12:51 pm

hello

can i still change users even if nick_frozen = true, cause i try /nick admin but keep getting "You are not allowed to change your nickname"
jaco
Member
 
Posts: 13
Joined: Wed Nov 15, 2006 4:39 pm
Location: south africa
Top

Postby phpfreechat » Tue Nov 21, 2006 1:11 pm

If you use frozen_nick then I think you have an external user database.
So just create a admin user and log into the chat with this admin user.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby jaco » Tue Nov 21, 2006 1:33 pm

cool!

everything is working no I forgot to put my session_start() { how silly of me } in front of the page, so obviuosly i didn't find anything (session variables) and the nickname kept popping up.

everything seems in order now have already kicked someone out as part of the admin exercise.

what other commands are available besides kick?
jaco
Member
 
Posts: 13
Joined: Wed Nov 15, 2006 4:39 pm
Location: south africa
Top

Postby phpfreechat » Tue Nov 21, 2006 2:25 pm

/ban
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
10 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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