• 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

Strange behavior on random nicks

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

Post a reply
5 posts • Page 1 of 1

Postby Rory » Sun Mar 25, 2007 9:57 pm

Hello!

$params["nick"] = "Guest".rand(1,100);

followed by

$params["frozen_nick"] = TRUE;

brings to

25/03/2007 23:53:29 * Guest90 changes his/her nickname to Guest25
25/03/2007 23:53:30 * Guest25 changes his/her nickname to Guest100
25/03/2007 23:53:31 * Guest100 changes his/her nickname to Guest15
25/03/2007 23:53:32 * Guest15 changes his/her nickname to Guest26
25/03/2007 23:53:33 * Guest26 changes his/her nickname to Guest80
25/03/2007 23:53:37 * Guest80 changes his/her nickname to Guest45
25/03/2007 23:53:42 * Guest45 changes his/her nickname to Guest96

i.e. script forces Guest to change nick every second with no user interference.

:(
Rory
New member
 
Posts: 7
Joined: Sun Mar 25, 2007 9:50 pm
Top

Postby Rory » Sun Mar 25, 2007 11:22 pm

Must add this text appears only after $params["frozen_nick"] hot changing from TRUE to FALSE, without chat reload.
Thus far only "You are not allowed to change your nickname" dispays every second and nick is changing to newly generated one on the left from the input string.
Last edited by Rory on Sun Mar 25, 2007 11:22 pm, edited 1 time in total.
Rory
New member
 
Posts: 7
Joined: Sun Mar 25, 2007 9:50 pm
Top

Postby phpfreechat » Mon Mar 26, 2007 9:18 am

Try something like that :
Code: Select all
<?php
session_start();
$nick = '';
if (isset($_SESSION['nick']))
  $nick = $_SESSION['nick'];
else
{
  $nick = "Guest".rand(1,100);
  $_SESSION['nick'] = $nick;
}
$params = array();
$params["nick"] = $nick;
$params["frozen_nick"] = true;
...
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby DarkMaurice » Tue Mar 27, 2007 4:55 am

Hi to all, this is my first post. This happend to me when i change the index.php for other name, like index2.php, i dont know if that could help u. cya
DarkMaurice
New member
 
Posts: 2
Joined: Tue Mar 27, 2007 4:52 am
Top

Postby Rory » Wed Mar 28, 2007 3:33 pm

DarkMaurice
Definitely I didn't change the name of index.php, but i did rename chat folder name.
kerphi
Thank you, I'll try.
Rory
New member
 
Posts: 7
Joined: Sun Mar 25, 2007 9:50 pm
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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