• 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

Cant\'t add new admin

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

Post a reply
6 posts • Page 1 of 1

Postby SilentMan » Sat Jun 23, 2007 8:06 pm

Hello!
My problem is that I can't add new admin. I added parameters to index.php and ran /rehash, but it does not works. I get identification failue.
My chat version is 1.0-beta10
Here comes my index.php, maybe something wrong with it.
Code: Select all
<?php

require_once "src/phpfreechat.class.php"; // adjust to your own path
$params["serverid"] = md5(__FILE__); // used to identify the chat
$chat = new phpFreeChat($params);
$params['admins'] = array('SilentMan'  => 'xxxx',
                          'boby' => 'boby1');
$params['channels'] = array('DPK Chat','Offtop');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>DPK Chat</title>
    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>
  </head>
  <body>
    <?php $chat->printChat(); ?>
  </body>
</html>

Adding new channels also not works. I tried deleting hash, it didnt worked.

Help please :)
SilentMan
New member
 
Posts: 4
Joined: Sat Jun 23, 2007 7:58 pm
Top

Postby King Moonraiser » Sat Jun 23, 2007 8:15 pm

When you do the identify command, are you also including the password? In the example you gave, you should be doing:

/nick SilentMan
/identify xxxx
Last edited by King Moonraiser on Sat Jun 23, 2007 8:15 pm, edited 1 time in total.
King Moonraiser
Member
 
Posts: 98
Joined: Fri Jun 22, 2007 9:42 pm
  • Website
Top

Postby SilentMan » Sat Jun 23, 2007 8:24 pm

Yes, I include it. Does not works.
This all seems like chat does not recieves parameters.
SilentMan
New member
 
Posts: 4
Joined: Sat Jun 23, 2007 7:58 pm
Top

Postby phpfreechat » Sat Jun 23, 2007 10:18 pm

SilentMan, your code is wrong.

Why do you initialize the parameter array after the phpfreechat instantiation ("new phpFreeChat($params)" line) ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby SilentMan » Sun Jun 24, 2007 9:34 am

Ohh...
They may be before? I'll try now :)
Last edited by SilentMan on Sun Jun 24, 2007 9:34 am, edited 1 time in total.
SilentMan
New member
 
Posts: 4
Joined: Sat Jun 23, 2007 7:58 pm
Top

Postby SilentMan » Sun Jun 24, 2007 9:36 am

Yea! It works :D
Thanks :)
SilentMan
New member
 
Posts: 4
Joined: Sat Jun 23, 2007 7:58 pm
Top


Post a reply
6 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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