[Phpfreechat-svn] SF.net SVN: phpfreechat: [795] trunk/src
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-26 16:35:40
|
Revision: 795 http://svn.sourceforge.net/phpfreechat/?rev=795&view=rev Author: kerphi Date: 2006-09-26 09:35:31 -0700 (Tue, 26 Sep 2006) Log Message: ----------- [en] New 'firstisadmin' parameter : this parameter is used to give admin rights to the first connected users on the server. [fr] Nouveau param?\195?\168tre 'firstisadmin' qui permet de donner les droits administrateurs a la premiere personne connect?\195?\169e sur le serveur. 45min Modified Paths: -------------- trunk/src/commands/connect.class.php trunk/src/pfcglobalconfig.class.php Modified: trunk/src/commands/connect.class.php =================================================================== --- trunk/src/commands/connect.class.php 2006-09-24 20:56:41 UTC (rev 794) +++ trunk/src/commands/connect.class.php 2006-09-26 16:35:31 UTC (rev 795) @@ -44,7 +44,7 @@ // check if the user is alone on the server, and give it the admin status if yes $isadmin = $c->isadmin; - if (!$isadmin) + if ($c->firstisadmin && !$isadmin) { $users = $ct->getOnlineNick(NULL); if (isset($users["nickid"]) && Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-09-24 20:56:41 UTC (rev 794) +++ trunk/src/pfcglobalconfig.class.php 2006-09-26 16:35:31 UTC (rev 795) @@ -34,8 +34,10 @@ // these parameters are dynamic (not cached) var $nick = ""; // the initial nickname ("" means the user will be queried) + var $isadmin = false; var $admins = array("admin" => ""); // the key is the nickname, the value is the password + var $firstisadmin = true; // give admin rights to the first connected user on the server var $islocked = false; // set this parameter to true to lock the chat for all users var $lockurl = "http://www.phpfreechat.net"; // this is the url where the users must be redirected when the chat is locked This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |