phpfreechat-svn Mailing List for phpFreeChat (Page 18)
Status: Beta
Brought to you by:
kerphi
You can subscribe to this list here.
2006 |
Jan
|
Feb
(2) |
Mar
|
Apr
(61) |
May
(56) |
Jun
(96) |
Jul
(23) |
Aug
(62) |
Sep
(76) |
Oct
(48) |
Nov
(28) |
Dec
(28) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(31) |
Feb
(40) |
Mar
(29) |
Apr
(11) |
May
(6) |
Jun
(18) |
Jul
(18) |
Aug
(108) |
Sep
(24) |
Oct
(6) |
Nov
(21) |
Dec
|
2008 |
Jan
|
Feb
(1) |
Mar
(16) |
Apr
|
May
(3) |
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(3) |
Oct
|
Nov
(3) |
Dec
(2) |
2009 |
Jan
(2) |
Feb
|
Mar
(2) |
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(1) |
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ke...@us...> - 2006-10-29 15:37:49
|
Revision: 852 http://svn.sourceforge.net/phpfreechat/?rev=852&view=rev Author: kerphi Date: 2006-10-29 07:37:32 -0800 (Sun, 29 Oct 2006) Log Message: ----------- [en] Add 'cmd_path' parameter : this parameter is used to give an extra path where pfc will search to find the customized commands [20min] [fr] Ajout du param?\195?\168tre 'cmd_path' : ce parametre est utilis?\195?\169 pour donner un chemin ?\195?\160 pfc pour qu'il y recherche des commandes personnalis?\195?\169es [20min] Modified Paths: -------------- trunk/src/pfccommand.class.php trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfccommand.class.php =================================================================== --- trunk/src/pfccommand.class.php 2006-10-29 14:34:37 UTC (rev 851) +++ trunk/src/pfccommand.class.php 2006-10-29 15:37:32 UTC (rev 852) @@ -71,8 +71,12 @@ $cmd_classname = "pfcCommand_".$name; if (!class_exists($cmd_classname)) { - $cmd_filename = dirname(__FILE__)."/commands/".$cmd_name.".class.php"; - if (file_exists($cmd_filename)) require_once($cmd_filename); + $cmd_paths = array($c->cmd_path_default,$c->cmd_path); + foreach($cmd_paths as $cp) + { + $cmd_filename = $cp."/".$cmd_name.".class.php"; + if (file_exists($cmd_filename)) require_once($cmd_filename); + } } if (class_exists($cmd_classname)) { Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-10-29 14:34:37 UTC (rev 851) +++ trunk/src/pfcglobalconfig.class.php 2006-10-29 15:37:32 UTC (rev 852) @@ -54,6 +54,8 @@ "log" => array("path"=>"")); var $proxies_path = ""; // a custom proxies path var $proxies_path_default = ""; // dirname(__FILE__).'/proxies' + var $cmd_path = ""; // a custom commands path + var $cmd_path_default = ""; // dirname(__FILE__).'/commands' var $title = ""; // default is _pfc("My Chat") var $channels = array(); // the default joined channels when opening the chat var $frozen_channels = array(); // if empty, allows users to create there own channels @@ -64,7 +66,7 @@ var $max_nick_len = 15; var $max_text_len = 400; var $refresh_delay = 5000; // in mili-seconds (5 seconds) - var $max_refresh_delay = 60000; // in mili-seconds (60 seconds) + var $max_refresh_delay = 60000; // in mili-seconds (60 seconds) var $timeout = 20000; // in mili-seconds (20 seconds) var $max_msg = 20; var $quit_on_closedwindow = true; // could be annoying because the reload event is the same as a close event @@ -441,6 +443,9 @@ if ($this->proxies_path != '' && !is_dir($this->proxies_path)) $this->errors[] = _pfc("'%s' directory doesn't exist", $this->proxies_path); + // save the commands path + $this->cmd_path_default = dirname(__FILE__).'/commands'; + // load smileys from file $this->loadSmileyTheme(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-29 14:41:29
|
Revision: 851 http://svn.sourceforge.net/phpfreechat/?rev=851&view=rev Author: kerphi Date: 2006-10-29 06:34:37 -0800 (Sun, 29 Oct 2006) Log Message: ----------- fix a problem with empty nicknames (the nickname was initiated with 'false' string) Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-10-29 11:20:55 UTC (rev 850) +++ trunk/src/pfcglobalconfig.class.php 2006-10-29 14:34:37 UTC (rev 851) @@ -606,7 +606,7 @@ { $nickname = trim($nickname); require_once dirname(__FILE__)."/../lib/utf8/utf8_substr.php"; - $nickname = utf8_substr($nickname, 0, $this->max_nick_len); + $nickname = (string)utf8_substr($nickname, 0, $this->max_nick_len); return $nickname; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-29 11:20:59
|
Revision: 850 http://svn.sourceforge.net/phpfreechat/?rev=850&view=rev Author: kerphi Date: 2006-10-29 03:20:55 -0800 (Sun, 29 Oct 2006) Log Message: ----------- Bug fix : fix an intilite loop when 'frozen_nick' is true and 'nick' length is > 'max_nick_len' Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-10-29 10:42:05 UTC (rev 849) +++ trunk/src/pfcglobalconfig.class.php 2006-10-29 11:20:55 UTC (rev 850) @@ -204,6 +204,11 @@ // now load or save the configuration in the cache $this->synchronizeWithCache(); + + // This is a dirty workaround which fix a infinite loop when: + // 'frozen_nick' is true + // 'nick' length is > 'max_nick_len' + $this->nick = $this->filterNickname($this->nick); } function &Instance( $params = array() ) @@ -596,6 +601,14 @@ else die(_pfc("Error: '%s' could not be found, please check your themepath '%s' and your theme '%s' are correct", $file, $this->themepath, $this->theme)); } + + function filterNickname($nickname) + { + $nickname = trim($nickname); + require_once dirname(__FILE__)."/../lib/utf8/utf8_substr.php"; + $nickname = utf8_substr($nickname, 0, $this->max_nick_len); + return $nickname; + } } ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-29 10:42:18
|
Revision: 849 http://svn.sourceforge.net/phpfreechat/?rev=849&view=rev Author: kerphi Date: 2006-10-29 02:42:05 -0800 (Sun, 29 Oct 2006) Log Message: ----------- [en] Bug fix: when frozen_nick was true and the choosen nickname was allready used, the chat looped forever [2h30] [fr] Bug fix : lorsque frozen_nick ?\195?\169tait ?\195?\160 true et que le pseudonyme choisi ?\195?\169tait d?\195?\169j?\195?\160 utilis?\195?\169 alors le chat bouclait ?\195?\160 l'infini. [2h30] Modified Paths: -------------- trunk/src/client/chat.js.tpl.php trunk/src/client/pfcclient.js trunk/src/commands/nick.class.php trunk/src/proxies/checknickchange.class.php Modified: trunk/src/client/chat.js.tpl.php =================================================================== --- trunk/src/client/chat.js.tpl.php 2006-10-29 10:36:26 UTC (rev 848) +++ trunk/src/client/chat.js.tpl.php 2006-10-29 10:42:05 UTC (rev 849) @@ -77,6 +77,7 @@ "Send", // _pfc "You are not allowed to speak to yourself", // _pfc "Close", // _pfc + "Choosen nickname is not allowed", // _pfc ); foreach($labels_to_load as $l) { Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-29 10:36:26 UTC (rev 848) +++ trunk/src/client/pfcclient.js 2006-10-29 10:42:05 UTC (rev 849) @@ -290,7 +290,7 @@ this.sendRequest("/privmsg", pfc_userprivmsg[i]); } } - + if (resp == "ok" || resp == "notchanged" || resp == "changed" || resp == "connected") { this.el_handle.innerHTML = param; @@ -306,8 +306,21 @@ this.setError(this.res.getLabel('Choosen nickname is allready used'), Array()); this.askNick(param); } - else - alert(cmd + "-"+resp+"-"+param); + else if (resp == "notallowed") + { + // when frozen_nick is true and the nickname is allready used, server will return + // the 'notallowed' status. It will display a message and stop chat update. + // if the chat update is not stopped, this will loop forever + // as long as the forced nickname is not changed + + // display a message + this.setError(this.res.getLabel('Choosen nickname is not allowed'), Array()); + // then stop chat updates + this.updateChat(false); + this.isconnected = false; + this.refresh_loginlogout(); + } + } else if (cmd == "update") { @@ -437,7 +450,7 @@ { var nickid = meta['users']['nickid'][i]; var nick = meta['users']['nick'][i]; - var um = this.getAllUserMeta(nickid); + var um = this.getAllUserMeta(nickid); if (!um) this.sendRequest('/whois2', nick); } Modified: trunk/src/commands/nick.class.php =================================================================== --- trunk/src/commands/nick.class.php 2006-10-29 10:36:26 UTC (rev 848) +++ trunk/src/commands/nick.class.php 2006-10-29 10:42:05 UTC (rev 849) @@ -73,7 +73,8 @@ // new nickname is undefined (not used) and // current nickname (oldnick) is not mine or is undefined // -> this is a first connection - if ($oldnickid != $u->nickid) + if ($newnickid == '' && + $oldnickid != $u->nickid) { // this is a first connection : create the nickname on the server $container->createNick(NULL, $newnick, $u->nickid); Modified: trunk/src/proxies/checknickchange.class.php =================================================================== --- trunk/src/proxies/checknickchange.class.php 2006-10-29 10:36:26 UTC (rev 848) +++ trunk/src/proxies/checknickchange.class.php 2006-10-29 10:42:05 UTC (rev 849) @@ -66,7 +66,7 @@ if ($newnick == $oldnick && $newnickid == $oldnickid) { - $xml_reponse->addScript("pfc.handleResponse('nick', 'notchanged', '".addslashes($newnick)."');"); + $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'notchanged', '".addslashes($newnick)."');"); if ($c->debug) pxlog("/nick ".$newnick." (user just reloded the page so let him keep his nickname without any warnings)", "chat", $c->getId()); return; @@ -74,28 +74,19 @@ // now check the nickname is not yet used (unsensitive case) // 'BoB' and 'bob' must be considered same nicknames - $nick_in_use = false; - $online_users = $container->getOnlineNick(NULL); - if (isset($online_users["nickid"])) - foreach($online_users["nickid"] as $nid) - { - if (preg_match("/^".preg_quote($container->getNickname($nid))."$/i",$newnick)) - { - // the nick match - // just allow the owner to change his capitalised letters - if ($nid != $oldnickid) - $nick_in_use = true; - } - } - if ($nick_in_use || $newnickid != '') + $nick_in_use = $this->_checkNickIsUsed($newnick, $oldnickid); + if ($nick_in_use) { - $xml_reponse->addScript("pfc.handleResponse('nick', 'isused', '".addslashes($newnick)."');"); + if ($c->frozen_nick) + $xml_reponse->addScript("pfc.handleResponse('nick', 'notallowed', '".addslashes($newnick)."');"); + else + $xml_reponse->addScript("pfc.handleResponse('nick', 'isused', '".addslashes($newnick)."');"); if ($c->debug) pxlog("/nick ".$newnick." (wanted nick is allready in use -> wantednickid=".$newnickid.")", "chat", $c->getId()); return; } } - + // allow nick changes only from the parameters array (server side) if ($this->name != 'connect' && // don't check anything on the connect process or it could block the periodic refresh $c->frozen_nick == true && @@ -115,6 +106,24 @@ // forward the command to the next proxy or to the final command $this->next->run($xml_reponse, $p); } + + function _checkNickIsUsed($newnick, $oldnickid) + { + $ct =& $this->c->getContainerInstance(); + $nick_in_use = false; + $online_users = $ct->getOnlineNick(NULL); + if (isset($online_users["nickid"])) + foreach($online_users["nickid"] as $nid) + { + if (preg_match("/^".preg_quote($ct->getNickname($nid))."$/i",$newnick)) + { + // the nick match + // just allow the owner to change his capitalised letters + if ($nid != $oldnickid) + return true; + } + } + } } ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-29 10:36:32
|
Revision: 848 http://svn.sourceforge.net/phpfreechat/?rev=848&view=rev Author: kerphi Date: 2006-10-29 02:36:26 -0800 (Sun, 29 Oct 2006) Log Message: ----------- code cleaning Modified Paths: -------------- trunk/src/commands/connect.class.php trunk/src/commands/join.class.php trunk/src/commands/privmsg.class.php Modified: trunk/src/commands/connect.class.php =================================================================== --- trunk/src/commands/connect.class.php 2006-10-29 10:33:50 UTC (rev 847) +++ trunk/src/commands/connect.class.php 2006-10-29 10:36:26 UTC (rev 848) @@ -81,15 +81,7 @@ // store the customized nick metadata foreach($c->nickmeta as $k => $v) $ct->setUserMeta($nickid, $k, $v); - - // register the user (and his metadata) in the allready joined channel - foreach( $u->channels as $id => $chan ) - $ct->createNick($chan["recipient"], $u->nick, $u->nickid); - foreach( $u->privmsg as $id => $pv ) - $ct->createNick($pv["recipient"], $u->nick, $u->nickid); - $this->forceWhoisReload($u->nick); - // connect to the server $xml_reponse->addScript("pfc.handleResponse('connect', 'ok', '');"); } Modified: trunk/src/commands/join.class.php =================================================================== --- trunk/src/commands/join.class.php 2006-10-29 10:33:50 UTC (rev 847) +++ trunk/src/commands/join.class.php 2006-10-29 10:36:26 UTC (rev 848) @@ -52,11 +52,12 @@ $cmdp["flag"] = 2; $cmd =& pfcCommand::Factory("notice"); $cmd->run($xml_reponse, $cmdp); + } - // register the user (and his metadata) in the channel - $ct =& $c->getContainerInstance(); - $ct->createNick($chanrecip, $u->nick, $u->nickid); - } + // register the user (and his metadata) in the channel + $ct =& $c->getContainerInstance(); + $ct->createNick($chanrecip, $u->nick, $u->nickid); + $this->forceWhoisReload($u->nick); // return ok to the client // then the client will create a new tab Modified: trunk/src/commands/privmsg.class.php =================================================================== --- trunk/src/commands/privmsg.class.php 2006-10-29 10:33:50 UTC (rev 847) +++ trunk/src/commands/privmsg.class.php 2006-10-29 10:36:26 UTC (rev 848) @@ -80,12 +80,13 @@ $from_id_sid = "pfc_from_id_".$c->getId()."_".$clientid."_".$pvrecipientid; $from_id = $container->getLastId($pvrecipient)-$c->max_msg-1; $_SESSION[$from_id_sid] = ($from_id<0) ? 0 : $from_id; - - // register the user (and his metadata) in this pv - $ct =& $c->getContainerInstance(); - $ct->createNick($pvrecipient, $u->nick, $u->nickid); } + // register the user (and his metadata) in this pv + $ct =& $c->getContainerInstance(); + $ct->createNick($pvrecipient, $u->nick, $u->nickid); + $this->forceWhoisReload($u->nick); + // return ok to the client // then the client will create a new tab $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ok', Array('".$pvrecipientid."','".addslashes($pvname)."'));"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-29 10:33:57
|
Revision: 847 http://svn.sourceforge.net/phpfreechat/?rev=847&view=rev Author: kerphi Date: 2006-10-29 02:33:50 -0800 (Sun, 29 Oct 2006) Log Message: ----------- add traces to help debugging Modified Paths: -------------- trunk/src/containers/file.class.php Modified: trunk/src/containers/file.class.php =================================================================== --- trunk/src/containers/file.class.php 2006-10-28 17:03:31 UTC (rev 846) +++ trunk/src/containers/file.class.php 2006-10-29 10:33:50 UTC (rev 847) @@ -74,8 +74,12 @@ function setMeta($group, $subgroup, $leaf, $leafvalue = NULL) { + $c =& $this->c; + + if ($c->debug) + file_put_contents("/tmp/debug", "\nsetMeta(".$group.",".$subgroup.",".$leaf.",".$leafvalue.")", FILE_APPEND); + // create directories - $c =& $this->c; $dir_base = $c->container_cfg_server_dir; $dir = $dir_base.'/'.$group.'/'.$subgroup; if (!is_dir($dir)) mkdir_r($dir); @@ -107,11 +111,14 @@ function getMeta($group, $subgroup = null, $leaf = null, $withleafvalue = false) { + $c =& $this->c; + if ($c->debug) + file_put_contents("/tmp/debug", "\ngetMeta(".$group.",".$subgroup.",".$leaf.",".$withleafvalue.")", FILE_APPEND); + // read data from metadata file $ret = array(); $ret["timestamp"] = array(); $ret["value"] = array(); - $c =& $this->c; $dir_base = $c->container_cfg_server_dir; $dir = $dir_base.'/'.$group; @@ -163,6 +170,9 @@ function rmMeta($group, $subgroup = null, $leaf = null) { $c =& $this->c; + if ($c->debug) + file_put_contents("/tmp/debug", "\nrmMeta(".$group.",".$subgroup.",".$leaf.")", FILE_APPEND); + $dir = $c->container_cfg_server_dir; if ($group == NULL) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-28 17:03:41
|
Revision: 846 http://svn.sourceforge.net/phpfreechat/?rev=846&view=rev Author: kerphi Date: 2006-10-28 10:03:31 -0700 (Sat, 28 Oct 2006) Log Message: ----------- [en] Add traces and error messages for debug [50min] [fr] Ajout de traces et de messages d'erreur pour le debug [50min] Modified Paths: -------------- trunk/src/pfccontainer.class.php trunk/src/pfctools.php Modified: trunk/src/pfccontainer.class.php =================================================================== --- trunk/src/pfccontainer.class.php 2006-10-28 17:01:17 UTC (rev 845) +++ trunk/src/pfccontainer.class.php 2006-10-28 17:03:31 UTC (rev 846) @@ -45,6 +45,11 @@ { $c =& $this->c; + if ($nick == '') + user_error('pfcContainer::createNick nick is empty', E_USER_ERROR); + if ($nickid == '') + user_error('pfcContainer::createNick nickid is empty', E_USER_ERROR); + if ($chan == NULL) $chan = 'SERVER'; $this->setMeta("nickid-to-metadata", $nickid, 'nick', $nick); Modified: trunk/src/pfctools.php =================================================================== --- trunk/src/pfctools.php 2006-10-28 17:01:17 UTC (rev 845) +++ trunk/src/pfctools.php 2006-10-28 17:03:31 UTC (rev 846) @@ -316,7 +316,7 @@ // If we don't have a string, throw an error if (!is_scalar($content)) { - user_error('file_put_contents() The 2nd parameter should be either a string or an array', + user_error('file_put_contents() The 2nd parameter should be either a string or an array ['.$filename.']', E_USER_WARNING); return false; } @@ -336,7 +336,7 @@ // Open the file for writing if (($fh = @fopen($filename, $mode, $use_inc_path)) === false) { - user_error('file_put_contents() failed to open stream: Permission denied', + user_error('file_put_contents() failed to open stream: Permission denied ['.$filename.']', E_USER_WARNING); return false; } @@ -352,7 +352,7 @@ // Write to the file $bytes = 0; if (($bytes = @fwrite($fh, $content)) === false) { - $errormsg = sprintf('file_put_contents() Failed to write %d bytes to %s', + $errormsg = sprintf('file_put_contents() Failed to write %d bytes to %s ['.$filename.']', $length, $filename); user_error($errormsg, E_USER_WARNING); @@ -364,7 +364,7 @@ // Check all the data was written if ($bytes != $length) { - $errormsg = sprintf('file_put_contents() Only %d of %d bytes written, possibly out of free disk space.', + $errormsg = sprintf('file_put_contents() Only %d of %d bytes written, possibly out of free disk space. ['.$filename.']', $bytes, $length); user_error($errormsg, E_USER_WARNING); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-28 17:01:26
|
Revision: 845 http://svn.sourceforge.net/phpfreechat/?rev=845&view=rev Author: kerphi Date: 2006-10-28 10:01:17 -0700 (Sat, 28 Oct 2006) Log Message: ----------- [en] Bug fix: the /init command was broken [1h] [fr] Bug fix : la commande /init ne fonctionnait pas correctement [1h] Modified Paths: -------------- trunk/src/pfcuserconfig.class.php Modified: trunk/src/pfcuserconfig.class.php =================================================================== --- trunk/src/pfcuserconfig.class.php 2006-10-26 08:23:57 UTC (rev 844) +++ trunk/src/pfcuserconfig.class.php 2006-10-28 17:01:17 UTC (rev 845) @@ -79,6 +79,7 @@ $nickid_param = "pfcuserconfig_".$c->getId()./*"_".$this->nickid.*/"_".$p; unset($_SESSION[$nickid_param]); unset($this->$p); + if ($p == 'active') $this->active = false; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-26 08:24:02
|
Revision: 844 http://svn.sourceforge.net/phpfreechat/?rev=844&view=rev Author: kerphi Date: 2006-10-26 01:23:57 -0700 (Thu, 26 Oct 2006) Log Message: ----------- [en] The nicknames in the list are clickable for opening the whois box. [10min] [fr] Les pseudonymes de la liste sont maintenant clickables et ouvrent la boite whois. [10min] Modified Paths: -------------- trunk/src/client/pfcclient.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-25 12:13:20 UTC (rev 843) +++ trunk/src/client/pfcclient.js 2006-10-26 08:23:57 UTC (rev 844) @@ -1030,19 +1030,15 @@ var nick = this.getUserMeta(nickid, 'nick'); var isadmin = this.getUserMeta(nickid, 'isadmin'); if (isadmin == '') isadmin = false; + var li = document.createElement('li'); + li.style.borderBottom = '1px solid #AAA'; - var img = document.createElement('img'); - if (isadmin) - img.setAttribute('src', this.res.getFileUrl('images/user-admin.gif')); - else - img.setAttribute('src', this.res.getFileUrl('images/user.gif')); - img.style.marginRight = '5px'; - img.setAttribute('class', 'pfc_nickbutton'); - img.setAttribute('className', 'pfc_nickbutton'); // for IE6 - img.pfc_nick = nick; - img.pfc_nickid = nickid; - img.onclick = function(evt){ + var a = document.createElement('a'); + a.setAttribute('href','#'); + a.pfc_nick = nick; + a.pfc_nickid = nickid; + a.onclick = function(evt){ var d = pfc.getNickWhoisBox(this.pfc_nickid); document.body.appendChild(d); d.style.display = 'block'; @@ -1052,22 +1048,29 @@ d.style.top = (mousePosY(evt)-5)+'px'; return false; } - li.appendChild(img); + li.appendChild(a); - + + var img = document.createElement('img'); + if (isadmin) + img.setAttribute('src', this.res.getFileUrl('images/user-admin.gif')); + else + img.setAttribute('src', this.res.getFileUrl('images/user.gif')); + img.style.marginRight = '5px'; + img.setAttribute('class', 'pfc_nickbutton'); + img.setAttribute('className', 'pfc_nickbutton'); // for IE6 + a.appendChild(img); + // nobr is not xhtml valid but it's a workeround // for IE which doesn't support 'white-space: pre' css rule var nobr = document.createElement('nobr'); var span = document.createElement('span'); span.setAttribute('class', 'pfc_nickmarker pfc_nick_'+nickid); span.setAttribute('className', 'pfc_nickmarker pfc_nick_'+nickid); // for IE6 - span.pfc_nick = nick; - span.pfc_nickid = nickid; - span.onclick = function(){pfc.insert_text(this.pfc_nick+", ","",false); return false;} span.appendChild(document.createTextNode(nick)); nobr.appendChild(span); - li.appendChild(nobr); - li.style.borderBottom = '1px solid #AAA'; + a.appendChild(nobr); + return li; }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-25 12:13:26
|
Revision: 843 http://svn.sourceforge.net/phpfreechat/?rev=843&view=rev Author: kerphi Date: 2006-10-25 05:13:20 -0700 (Wed, 25 Oct 2006) Log Message: ----------- [en] Bug fix: sometimes the nicknames list was blank [2h30] [fr] Bug fix : quelques fois la liste des pseudo n'?\195?\169tait pas affich?\195?\169 [2h30] Modified Paths: -------------- trunk/src/client/pfcclient.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-25 11:26:01 UTC (rev 842) +++ trunk/src/client/pfcclient.js 2006-10-25 12:13:20 UTC (rev 843) @@ -475,22 +475,34 @@ getAllUserMeta: function(nickid) { - return this.usermeta[nickid]; + if (nickid && this.usermeta[nickid]) + return this.usermeta[nickid]; + else + return null; }, getUserMeta: function(nickid, key) { - return this.usermeta[nickid][key]; + if (nickid && key && this.usermeta[nickid] && this.usermeta[nickid][key]) + return this.usermeta[nickid][key]; + else + return ''; }, getAllChanMeta: function(chanid) { - return this.chanmeta[chanid]; + if (chanid && this.chanmeta[chanid]) + return this.chanmeta[chanid]; + else + return null; }, getChanMeta: function(chanid, key) { - return this.chanmeta[chanid][key]; + if (chanid && key && this.chanmeta[chanid] && this.chanmeta[chanid][key]) + return this.chanmeta[chanid][key]; + else + return ''; }, doSendMessage: function() @@ -901,7 +913,6 @@ for (var i=0; i<nickidlst.length; i++) { var nickid = nickidlst[i]; - var li = this.buildNickItem(nickid); li.setAttribute('class', 'pfc_nickitem_'+nickid); li.setAttribute('className', 'pfc_nickitem_'+nickid); // IE6 @@ -1018,6 +1029,7 @@ { var nick = this.getUserMeta(nickid, 'nick'); var isadmin = this.getUserMeta(nickid, 'isadmin'); + if (isadmin == '') isadmin = false; var li = document.createElement('li'); var img = document.createElement('img'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-25 11:26:11
|
Revision: 842 http://svn.sourceforge.net/phpfreechat/?rev=842&view=rev Author: kerphi Date: 2006-10-25 04:26:01 -0700 (Wed, 25 Oct 2006) Log Message: ----------- Add information to help debugging Modified Paths: -------------- trunk/src/commands/whois.class.php Modified: trunk/src/commands/whois.class.php =================================================================== --- trunk/src/commands/whois.class.php 2006-10-24 16:14:45 UTC (rev 841) +++ trunk/src/commands/whois.class.php 2006-10-25 11:26:01 UTC (rev 842) @@ -63,8 +63,8 @@ $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ok', ".$js.");"); } else - $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ko','');"); + $xml_reponse->addScript("pfc.handleResponse('".$this->name."', 'ko','".$param."');"); } } -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-24 16:14:52
|
Revision: 841 http://svn.sourceforge.net/phpfreechat/?rev=841&view=rev Author: kerphi Date: 2006-10-24 09:14:45 -0700 (Tue, 24 Oct 2006) Log Message: ----------- [en] Bug fix: the 'proxies_cfg' parameter array was badly initialized. [15min] [fr] Bug fix : le tableau de param?\195?\168tre 'proxies_cfg' ?\195?\169tait mal initialis?\195?\169. [15min] Modified Paths: -------------- trunk/src/pfcglobalconfig.class.php Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-10-23 20:03:27 UTC (rev 840) +++ trunk/src/pfcglobalconfig.class.php 2006-10-24 16:14:45 UTC (rev 841) @@ -178,7 +178,13 @@ { // don't replace all the proxy_cfg parameters, just replace the specified ones foreach ( $params["proxies_cfg"] as $k2 => $v2 ) - $this->proxies_cfg[$k2] = $v2; + { + if (is_array($v2)) + foreach( $v2 as $k3 => $v3) + $this->proxies_cfg[$k2][$k3] = $v3; + else + $this->proxies_cfg[$k2] = $v2; + } } else $this->$k = $v; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-23 20:03:43
|
Revision: 840 http://svn.sourceforge.net/phpfreechat/?rev=840&view=rev Author: kerphi Date: 2006-10-23 13:03:27 -0700 (Mon, 23 Oct 2006) Log Message: ----------- [en] Swedish translation update (thanks to zilveer) [10min] [fr] Mise ?\195?\160 jour de la traduction su?\195?\169doise (merci ?\195?\160 zilveer) [10min] Modified Paths: -------------- trunk/i18n/sv_SE/main.php Modified: trunk/i18n/sv_SE/main.php =================================================================== --- trunk/i18n/sv_SE/main.php 2006-10-22 13:23:30 UTC (rev 839) +++ trunk/i18n/sv_SE/main.php 2006-10-23 20:03:27 UTC (rev 840) @@ -24,22 +24,23 @@ * Swedish translation of the messages (utf8 encoded!) * * @author Pär Smårs <par.smars[ a t ]bredband.net> + * @author Isa Acar <zi...@gm...> */ // line 45 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["My Chat"] = "Min Chat"; +$GLOBALS["i18n"]["My Chat"] = "Min chat"; // line 201 in phpfreechatconfig.class.php $GLOBALS["i18n"]["%s not found, %s library can't be found."] = "%s finns inte, %s biblioteksfilen kan inte hittas."; // line 355 in phpfreechat.class.php -$GLOBALS["i18n"]["Please enter your nickname"] = "Ange kortnamn"; +$GLOBALS["i18n"]["Please enter your nickname"] = "Ange alias: "; // line 565 in phpfreechat.class.php -$GLOBALS["i18n"]["Text cannot be empty"] = "Textsträngen kan inte vara tom"; +$GLOBALS["i18n"]["Text cannot be empty"] = "Hallå där, något måste du väl skriva:)"; // line 392 in phpfreechat.class.php -$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s ändrar sitt kortnamn till %s"; +$GLOBALS["i18n"]["%s changes his nickname to %s"] = "%s ändrar sitt alias till %s"; // line 398 in phpfreechat.class.php $GLOBALS["i18n"]["%s is connected"] = "%s är ansluten"; @@ -51,7 +52,7 @@ $GLOBALS["i18n"]["%s disconnected (timeout)"] = "%s bortkopplad (tidsgräns nådd)"; // line 262 in phpfreechat.class.php -$GLOBALS["i18n"]["Unknown command [%s]"] = "Okänt kommando [%s]"; +$GLOBALS["i18n"]["Unknown command [%s]"] = "Ogiltigt kommando [%s]?"; // line 149 in phpfreechatconfig.class.php $GLOBALS["i18n"]["%s doesn't exist: %s"] = "%s finns inte: %s"; @@ -87,13 +88,13 @@ $GLOBALS["i18n"]["%s is not a directory"] = "%s är inte en filkatalog"; // line 23 in chat.html.tpl.php -$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [drivs av phpFreeChat-%s]"; +$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [skapad av phpFreeChat-%s]"; // line 296 in javascript1.js.tpl.php -$GLOBALS["i18n"]["Hide nickname marker"] = "Göm kortnamnsfärger"; +$GLOBALS["i18n"]["Hide nickname marker"] = "Göm aliasfärger"; // line 304 in javascript1.js.tpl.php -$GLOBALS["i18n"]["Show nickname marker"] = "Visa kortnamnsfärger"; +$GLOBALS["i18n"]["Show nickname marker"] = "Visa aliasfärger"; // line 389 in javascript1.js.tpl.php $GLOBALS["i18n"]["Disconnect"] = "Koppla ifrån"; @@ -117,7 +118,7 @@ $GLOBALS["i18n"]["Enter your message here"] = "Skriv ditt meddelande här"; // line 24 in chat.html.tpl.php -$GLOBALS["i18n"]["Enter your nickname here"] = "Skriv ditt kortnamn här"; +$GLOBALS["i18n"]["Enter your nickname here"] = "Skriv ditt alias här"; // line 93 in phpfreechatconfig.class.php $GLOBALS["i18n"]["Error: undefined or obsolete parameter '%s', please correct or remove this parameter"] = "Fel: odefinierad eller förlegad parameter '%s', var god korrigera eller ta bort parametern"; @@ -130,183 +131,183 @@ $GLOBALS["i18n"]["'serverid' parameter is mandatory by default use 'md5(__FILE__)' value"] = ""; // line 512 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["Error: '%s' could not be found, please check your themepath '%s' and your theme '%s' are correct"] = ""; +$GLOBALS["i18n"]["Error: '%s' could not be found, please check your themepath '%s' and your theme '%s' are correct"] = "Var vänlig och kontrollera sökvägen till temat."; // line 33 in chat.html.tpl.php -$GLOBALS["i18n"]["Bold"] = ""; +$GLOBALS["i18n"]["Bold"] = "Fet"; // line 34 in chat.html.tpl.php -$GLOBALS["i18n"]["Italics"] = ""; +$GLOBALS["i18n"]["Italics"] = "Kursiv"; // line 35 in chat.html.tpl.php -$GLOBALS["i18n"]["Underline"] = ""; +$GLOBALS["i18n"]["Underline"] = "Understruken"; // line 36 in chat.html.tpl.php -$GLOBALS["i18n"]["Delete"] = ""; +$GLOBALS["i18n"]["Delete"] = "Radera"; // line 37 in chat.html.tpl.php $GLOBALS["i18n"]["Pre"] = ""; // line 38 in chat.html.tpl.php -$GLOBALS["i18n"]["Mail"] = ""; +$GLOBALS["i18n"]["Mail"] = "Maila"; // line 39 in chat.html.tpl.php -$GLOBALS["i18n"]["Color"] = ""; +$GLOBALS["i18n"]["Color"] = "Färg"; // line 86 in pfcclient.js.tpl.php -$GLOBALS["i18n"]["Hide smiley box"] = ""; +$GLOBALS["i18n"]["Hide smiley box"] = "Göm smileys"; // line 87 in pfcclient.js.tpl.php -$GLOBALS["i18n"]["Show smiley box"] = ""; +$GLOBALS["i18n"]["Show smiley box"] = "Visa smileys"; // line 88 in pfcclient.js.tpl.php -$GLOBALS["i18n"]["Hide online users box"] = ""; +$GLOBALS["i18n"]["Hide online users box"] = "Göm onlineanvändar-listan"; // line 89 in pfcclient.js.tpl.php -$GLOBALS["i18n"]["Show online users box"] = ""; +$GLOBALS["i18n"]["Show online users box"] = "Visa onlineanvändar-listan"; // line 75 in pfccommand.class.php -$GLOBALS["i18n"]["%s must be implemented"] = ""; +$GLOBALS["i18n"]["%s must be implemented"] = "Du måste implementera %s."; // line 343 in phpfreechatconfig.class.php $GLOBALS["i18n"]["'%s' parameter is mandatory by default use '%s' value"] = ""; // line 378 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["'%s' parameter must be a positive number"] = ""; +$GLOBALS["i18n"]["'%s' parameter must be a positive number"] = "%s måste ha ett positivt värde"; // line 386 in phpfreechatconfig.class.php -$GLOBALS["i18n"]["'%s' parameter is not valid. Available values are : '%s'"] = ""; +$GLOBALS["i18n"]["'%s' parameter is not valid. Available values are : '%s'"] = "Parametern '%s' finns inte. Följande värden finns: '%s'"; // line 186 in pfcglobalconfig.class.php $GLOBALS["i18n"]["My room"] = ""; // line 19 in unban.class.php -$GLOBALS["i18n"]["Missing parameter"] = ""; +$GLOBALS["i18n"]["Missing parameter"] = "Parameter fattas."; // line 38 in ban.class.php -$GLOBALS["i18n"]["banished from %s by %s"] = ""; +$GLOBALS["i18n"]["banished from %s by %s"] = "Bannad från %s av %s"; // line 23 in banlist.class.php -$GLOBALS["i18n"]["The banished user's id list is:"] = ""; +$GLOBALS["i18n"]["The banished user's id list is:"] = "Bannade användarid-listan är:"; // line 32 in banlist.class.php -$GLOBALS["i18n"]["Empty"] = ""; +$GLOBALS["i18n"]["Empty"] = "Här var det tomt!"; // line 34 in banlist.class.php -$GLOBALS["i18n"]["'/unban {id}' will unban the user identified by {id}"] = ""; +$GLOBALS["i18n"]["'/unban {id}' will unban the user identified by {id}"] = "'/unban {id}' kommer att unbanna användaren {id}"; // line 35 in banlist.class.php -$GLOBALS["i18n"]["'/unban all' will unban all the users on this channel"] = ""; +$GLOBALS["i18n"]["'/unban all' will unban all the users on this channel"] = "'/unbann all' unbanna alla användaren från rummet."; // line 24 in update.class.php -$GLOBALS["i18n"]["%s quit (timeout)"] = ""; +$GLOBALS["i18n"]["%s quit (timeout)"] = "%s loggades ut (timeout)"; // line 46 in join.class.php -$GLOBALS["i18n"]["%s joins %s"] = ""; +$GLOBALS["i18n"]["%s joins %s"] = "%s loggar in i %s"; // line 31 in kick.class.php -$GLOBALS["i18n"]["kicked from %s by %s"] = ""; +$GLOBALS["i18n"]["kicked from %s by %s"] = "kickad från %s av %s"; // line 38 in send.class.php -$GLOBALS["i18n"]["Can't send the message, %s is offline"] = ""; +$GLOBALS["i18n"]["Can't send the message, %s is offline"] = "Kan inte skicka meddelandet, %s är inte online."; // line 27 in unban.class.php -$GLOBALS["i18n"]["Nobody has been unbanished"] = ""; +$GLOBALS["i18n"]["Nobody has been unbanished"] = "Ingen är unbannad"; // line 42 in unban.class.php -$GLOBALS["i18n"]["%s has been unbanished"] = ""; +$GLOBALS["i18n"]["%s has been unbanished"] = "%s har blivir unbannad"; // line 49 in unban.class.php -$GLOBALS["i18n"]["%s users have been unbanished"] = ""; +$GLOBALS["i18n"]["%s users have been unbanished"] = "%s användare har blivit unbannade"; // line 47 in auth.class.php -$GLOBALS["i18n"]["You are not allowed to run '%s' command"] = ""; +$GLOBALS["i18n"]["You are not allowed to run '%s' command"] = "Du får inte köra kommandot '%s'"; // line 66 in auth.class.php -$GLOBALS["i18n"]["Can't join %s because you are banished"] = ""; +$GLOBALS["i18n"]["Can't join %s because you are banished"] = "Ajaj..kan inte logga in.!"; // line 76 in auth.class.php -$GLOBALS["i18n"]["Can't join %s because the channels list is restricted"] = ""; +$GLOBALS["i18n"]["Can't join %s because the channels list is restricted"] = "Kan inte logga in i %s, rummet är privat."; // line 89 in auth.class.php -$GLOBALS["i18n"]["You are not allowed to change your nickname"] = ""; +$GLOBALS["i18n"]["You are not allowed to change your nickname"] = "Ja du... du får inte ändra ditt alias"; // line 56 in noflood.class.php -$GLOBALS["i18n"]["Please don't post so many message, flood is not tolerated"] = ""; +$GLOBALS["i18n"]["Please don't post so many message, flood is not tolerated"] = "Sluta spamma.. sådant tolererar inte vi."; // line 109 in pfcclient.js.tpl.php -$GLOBALS["i18n"]["Private message"] = ""; +$GLOBALS["i18n"]["Private message"] = "Privat meddelande"; // line 110 in pfcclient.js.tpl.php -$GLOBALS["i18n"]["Close this tab"] = ""; +$GLOBALS["i18n"]["Close this tab"] = "Stäng av tabben"; // line 199 in pfcgui.js.tpl.php -$GLOBALS["i18n"]["Do you really want to leave this room ?"] = ""; +$GLOBALS["i18n"]["Do you really want to leave this room ?"] = "Vill du verkligen lämna rummet?"; // line 169 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["Error: '%s' is a private parameter, you are not allowed to change it"] = ""; +$GLOBALS["i18n"]["Error: '%s' is a private parameter, you are not allowed to change it"] = "Error: '%s' är en privat parameter, du har ingen möjlighet att ändra den"; // line 253 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["'%s' parameter must be an array"] = ""; +$GLOBALS["i18n"]["'%s' parameter must be an array"] = "'%s' parameterna måste vara en array"; // line 265 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["'%s' parameter must be a boolean"] = ""; +$GLOBALS["i18n"]["'%s' parameter must be a boolean"] = "'%s' parametern måste vara av type boolean"; // line 271 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["'%s' parameter must be a charatere string"] = ""; +$GLOBALS["i18n"]["'%s' parameter must be a charater string"] = "'%s' parametern måste vara av typen sträng"; // line 395 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["'%s' must be writable"] = ""; +$GLOBALS["i18n"]["'%s' must be writable"] = "'%s' måste vara skrivbar"; // line 425 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["'%s' directory doesn't exist"] = ""; +$GLOBALS["i18n"]["'%s' directory doesn't exist"] = "'%s' mappen existerar inte"; // line 544 in pfcglobalconfig.class.php -$GLOBALS["i18n"]["Please correct these errors"] = ""; +$GLOBALS["i18n"]["Please correct these errors"] = "Var vänlig och korrigera följande fel"; // line 21 in pfcinfo.class.php -$GLOBALS["i18n"]["Error: the cached config file doesn't exists"] = ""; +$GLOBALS["i18n"]["Error: the cached config file doesn't exists"] = "Error: den cachade config-filen existerar inte"; // line 190 in phpfreechat.class.php -$GLOBALS["i18n"]["Error: the chat cannot be loaded! two possibilities: your browser doesn't support javascript or you didn't setup correctly the server directories rights - don't hesitate to ask some help on the forum"] = ""; +$GLOBALS["i18n"]["Error: the chat cannot be loaded! two possibilities: your browser doesn't support javascript or you didn't setup correctly the server directories rights - don't hesitate to ask some help on the forum"] = "Error: chatten kan inte laddas, detta antingen p.g.a att din webbläsare inte stödjer javascript eller för att inställningarna inte är korrekta. Var vänlig och kontakta admin."; // line 31 in help.class.php -$GLOBALS["i18n"]["Here is the command list:"] = ""; +$GLOBALS["i18n"]["Here is the command list:"] = "Här följer kommando-listan:"; // line 63 in identify.class.php -$GLOBALS["i18n"]["Succesfully identified"] = ""; +$GLOBALS["i18n"]["Succesfully identified"] = "Identifieringen lyckades"; // line 68 in identify.class.php -$GLOBALS["i18n"]["Identification failure"] = ""; +$GLOBALS["i18n"]["Identification failure"] = "identifieringen misslyckades"; // line 25 in send.class.php -$GLOBALS["i18n"]["Your must be connected to send a message"] = ""; +$GLOBALS["i18n"]["Your must be connected to send a message"] = "Du måste vara ansluten för att skicka meddelanden"; // line 87 in chat.js.tpl.php -$GLOBALS["i18n"]["Click here to send your message"] = ""; +$GLOBALS["i18n"]["Click here to send your message"] = "Klicka här för att skicka ditt meddelande"; // line 80 in chat.js.tpl.php -$GLOBALS["i18n"]["Enter the text to format"] = ""; +$GLOBALS["i18n"]["Enter the text to format"] = "Skriv in texten för att formatera"; // line 81 in chat.js.tpl.php -$GLOBALS["i18n"]["Configuration has been rehashed"] = ""; +$GLOBALS["i18n"]["Configuration has been rehashed"] = "Konfigurationen är uppdaterad"; // line 82 in chat.js.tpl.php -$GLOBALS["i18n"]["A problem occurs during rehash"] = ""; +$GLOBALS["i18n"]["A problem occurs during rehash"] = "Ett problem inträffade vid uppdateringen"; // line 83 in chat.js.tpl.php -$GLOBALS["i18n"]["Choosen nickname is allready used"] = ""; +$GLOBALS["i18n"]["Choosen nickname is allready used"] = "Vald alias används"; // line 84 in chat.js.tpl.php -$GLOBALS["i18n"]["phpfreechat current version is %s"] = ""; +$GLOBALS["i18n"]["phpfreechat current version is %s"] = "phpfreechat - chat, version: %s"; // line 85 in chat.js.tpl.php -$GLOBALS["i18n"]["Maximum number of joined channels has been reached"] = ""; +$GLOBALS["i18n"]["Maximum number of joined channels has been reached"] = "Maximalt antal inloggninar i kanaler är nådd"; // line 86 in chat.js.tpl.php -$GLOBALS["i18n"]["Maximum number of private chat has been reached"] = ""; +$GLOBALS["i18n"]["Maximum number of private chat has been reached"] = "Maximalt antal privata fönster är nådd"; // line 88 in chat.js.tpl.php -$GLOBALS["i18n"]["Send"] = ""; +$GLOBALS["i18n"]["Send"] = "Skicka"; -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-22 13:23:38
|
Revision: 839 http://svn.sourceforge.net/phpfreechat/?rev=839&view=rev Author: kerphi Date: 2006-10-22 06:23:30 -0700 (Sun, 22 Oct 2006) Log Message: ----------- [en] Bug fix: when max_msg was set to 0 the first posted message in a PV was lost. [1h30] [fr] Bug fix : lorsque max_msg valait 0 le premier message post?\195?\169 dans un message priv?\195?\169 ?\195?\169tait perdu. [1h30] Modified Paths: -------------- trunk/src/commands/connect.class.php trunk/src/commands/privmsg.class.php Modified: trunk/src/commands/connect.class.php =================================================================== --- trunk/src/commands/connect.class.php 2006-10-20 20:39:06 UTC (rev 838) +++ trunk/src/commands/connect.class.php 2006-10-22 13:23:30 UTC (rev 839) @@ -21,6 +21,7 @@ // i.e. be ready to re-get all last posted messages if ($getoldmsg) { + // reset the channel identifiers require_once(dirname(__FILE__)."/join.class.php"); $channels = array(); if (count($u->channels) == 0) @@ -40,6 +41,21 @@ $oldmsg_sid = "pfc_oldmsg_".$c->getId()."_".$clientid."_".$chanid; $_SESSION[$oldmsg_sid] = true; } + // reset the private messages identifiers + if (count($u->privmsg) > 0) + { + foreach($u->privmsg as $recipientid2 => $pv) + { + $recipient2 = $pv['recipient']; + // reset the fromid flag + $from_id_sid = "pfc_from_id_".$c->getId()."_".$clientid."_".$recipientid2; + $from_id = $ct->getLastId($recipient2)-$c->max_msg; + $_SESSION[$from_id_sid] = ($from_id<0) ? 0 : $from_id; + // reset the oldmsg flag + $oldmsg_sid = "pfc_oldmsg_".$c->getId()."_".$clientid."_".$recipientid2; + $_SESSION[$oldmsg_sid] = true; + } + } } // check if the user is alone on the server, and give it the admin status if yes Modified: trunk/src/commands/privmsg.class.php =================================================================== --- trunk/src/commands/privmsg.class.php 2006-10-20 20:39:06 UTC (rev 838) +++ trunk/src/commands/privmsg.class.php 2006-10-22 13:23:30 UTC (rev 839) @@ -78,7 +78,7 @@ // reset the message id indicator // i.e. be ready to re-get all last posted messages $from_id_sid = "pfc_from_id_".$c->getId()."_".$clientid."_".$pvrecipientid; - $from_id = $container->getLastId($pvrecipient)-$c->max_msg; + $from_id = $container->getLastId($pvrecipient)-$c->max_msg-1; $_SESSION[$from_id_sid] = ($from_id<0) ? 0 : $from_id; // register the user (and his metadata) in this pv This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-20 20:39:28
|
Revision: 838 http://svn.sourceforge.net/phpfreechat/?rev=838&view=rev Author: kerphi Date: 2006-10-20 13:39:06 -0700 (Fri, 20 Oct 2006) Log Message: ----------- [en] Bug fix: the tab notification was broken [25min] [fr] Bug fix : la notification des onglet ne fonctionnait plus tr?\195?\168s bien [25min] Modified Paths: -------------- trunk/src/client/pfcgui.js Modified: trunk/src/client/pfcgui.js =================================================================== --- trunk/src/client/pfcgui.js 2006-10-20 20:15:12 UTC (rev 837) +++ trunk/src/client/pfcgui.js 2006-10-20 20:39:06 UTC (rev 838) @@ -309,6 +309,9 @@ */ notifyTab: function(tabid) { + // first of all be sure the tab highlighting is cleared + this.unnotifyTab(tabid); + var tabpos = indexOf(this.tabids, tabid); var tabtype = this.tabtypes[tabpos]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-20 20:15:35
|
Revision: 837 http://svn.sourceforge.net/phpfreechat/?rev=837&view=rev Author: kerphi Date: 2006-10-20 13:15:12 -0700 (Fri, 20 Oct 2006) Log Message: ----------- [en] Now the client keep in memory the last update timestamp in order to automaticaly reconnect one request is lost. ex: when server is down. (thanks to bcc) [30min] [fr] Maintenant le client garde en m?\195?\169moire la date de la derniere mise ?\195?\160 jour du chat ainsi il se reconnect automatiquement si la connexion vennait ?\195?\160 ?\195?\170tre coup?\195?\169e. (merci ?\195?\160 bcc) [30min] Modified Paths: -------------- trunk/src/client/chat.js.tpl.php trunk/src/client/pfcclient.js trunk/src/pfcglobalconfig.class.php Modified: trunk/src/client/chat.js.tpl.php =================================================================== --- trunk/src/client/chat.js.tpl.php 2006-10-19 07:21:18 UTC (rev 836) +++ trunk/src/client/chat.js.tpl.php 2006-10-20 20:15:12 UTC (rev 837) @@ -10,6 +10,7 @@ var pfc_clientid = <?php echo $json->encode(md5(uniqid(rand(), true))); ?>; var pfc_title = <?php echo $json->encode($title); ?>; var pfc_refresh_delay = <?php echo $json->encode($refresh_delay); ?>; +var pfc_max_refresh_delay = <?php echo $json->encode($max_refresh_delay); ?>; var pfc_start_minimized = <?php echo $json->encode($start_minimized); ?>; var pfc_nickmarker = <?php echo $json->encode($nickmarker); ?>; var pfc_clock = <?php echo $json->encode($clock); ?>; Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-19 07:21:18 UTC (rev 836) +++ trunk/src/client/pfcclient.js 2006-10-20 20:15:12 UTC (rev 837) @@ -41,6 +41,8 @@ this.timeout = null; this.refresh_delay = pfc_refresh_delay; + this.max_refresh_delay = pfc_max_refresh_delay; + this.last_refresh_time = 0; /* unique client id for each windows used to identify a open window * this id is passed every time the JS communicate with server * (2 clients can use the same session: then only the nickname is shared) */ @@ -310,6 +312,11 @@ else if (cmd == "update") { this.canupdatenexttime = true; + // if the first ever refresh request never makes it back then the chat will keep + // trying to refresh as usual + // this only helps if we temporarily lose connection in the middle of an established + // chat session + this.last_refresh_time = new Date().getTime(); } else if (cmd == "version") { @@ -844,13 +851,19 @@ if (start) { var res = true; - if (this.canupdatenexttime) + if (this.canupdatenexttime || (new Date().getTime() - this.last_refresh_time) > this.max_refresh_delay) { res = this.sendRequest('/update'); this.canupdatenexttime = false; // don't update since the 'ok' response is received } // adjust the refresh_delay if the connection was lost - if (res == false) { this.refresh_delay = this.refresh_delay * 2; } + if (res == false) { + this.refresh_delay = this.refresh_delay * 2; + if(this.refresh_delay > this.max_refresh_delay) + { + this.refresh_delay = this.max_refresh_delay; + } + } // setup the next update this.timeout = setTimeout('pfc.updateChat(true)', this.refresh_delay); } Modified: trunk/src/pfcglobalconfig.class.php =================================================================== --- trunk/src/pfcglobalconfig.class.php 2006-10-19 07:21:18 UTC (rev 836) +++ trunk/src/pfcglobalconfig.class.php 2006-10-20 20:15:12 UTC (rev 837) @@ -64,6 +64,7 @@ var $max_nick_len = 15; var $max_text_len = 400; var $refresh_delay = 5000; // in mili-seconds (5 seconds) + var $max_refresh_delay = 60000; // in mili-seconds (60 seconds) var $timeout = 20000; // in mili-seconds (20 seconds) var $max_msg = 20; var $quit_on_closedwindow = true; // could be annoying because the reload event is the same as a close event This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-19 07:22:16
|
Revision: 836 http://svn.sourceforge.net/phpfreechat/?rev=836&view=rev Author: kerphi Date: 2006-10-19 00:21:18 -0700 (Thu, 19 Oct 2006) Log Message: ----------- fix a problem when update command returns false. Modified Paths: -------------- trunk/src/client/pfcclient.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-17 08:06:31 UTC (rev 835) +++ trunk/src/client/pfcclient.js 2006-10-19 07:21:18 UTC (rev 836) @@ -309,10 +309,7 @@ } else if (cmd == "update") { - if (resp == "ok") - { - this.canupdatenexttime = true; - } + this.canupdatenexttime = true; } else if (cmd == "version") { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-17 08:06:37
|
Revision: 835 http://svn.sourceforge.net/phpfreechat/?rev=835&view=rev Author: kerphi Date: 2006-10-17 01:06:31 -0700 (Tue, 17 Oct 2006) Log Message: ----------- add some comments to scrollDown function Modified Paths: -------------- trunk/src/client/pfcgui.js Modified: trunk/src/client/pfcgui.js =================================================================== --- trunk/src/client/pfcgui.js 2006-10-17 07:44:45 UTC (rev 834) +++ trunk/src/client/pfcgui.js 2006-10-17 08:06:31 UTC (rev 835) @@ -22,16 +22,26 @@ }, /** - * scroll down from the posted message height + * Scroll down the message list area by elttoscroll height + * - elttoscroll is a message DOM element which has been appended to the tabid's message list + * - this.elttoscroll is an array containing the list of messages that will be scrolled + * when the corresponding tab will be shown (see setTabById bellow). + * It is necessary to keep in cache the list of hidden (because the tab is inactive) messages + * because the 'scrollTop' javascript attribute + * will not work if the element (tab content) is hidden. */ scrollDown: function(tabid, elttoscroll) { + // check the wanted tabid is the current active one if (this.getTabId() != tabid) { + // no it's not the current active one so just cache the elttoscroll in the famouse this.elttoscroll array if (!this.elttoscroll[tabid]) this.elttoscroll[tabid] = Array(); this.elttoscroll[tabid].push(elttoscroll); return; } + // the wanted tab is active so just scroll down the tab content element + // by elttoscroll element height (use 'offsetHeight' attribute) var content = this.getChatContentFromTabId(tabid); content.scrollTop += elttoscroll.offsetHeight+2; this.scrollpos[tabid] = content.scrollTop; @@ -98,6 +108,7 @@ // on by one for (var i=0; i<this.elttoscroll[tabid].length; i++) this.scrollDown(tabid,this.elttoscroll[tabid][i]); + // empty the cached element list because it has been scrolled this.elttoscroll[tabid] = Array(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-17 07:44:50
|
Revision: 834 http://svn.sourceforge.net/phpfreechat/?rev=834&view=rev Author: kerphi Date: 2006-10-17 00:44:45 -0700 (Tue, 17 Oct 2006) Log Message: ----------- [en] Fix some missing content types in the proxy.php.tpl file. (thanks to bcc) [15min] [fr] Ajout de plusieurs types de fichiers manquants dans le fichier proxy.php.tpl (merci ?\195?\160 bcc) [15min] Modified Paths: -------------- trunk/src/client/proxy.php.tpl Modified: trunk/src/client/proxy.php.tpl =================================================================== --- trunk/src/client/proxy.php.tpl 2006-10-16 18:00:41 UTC (rev 833) +++ trunk/src/client/proxy.php.tpl 2006-10-17 07:44:45 UTC (rev 834) @@ -44,10 +44,18 @@ // output HTTP headers $contenttype = "text/plain"; //$contentlength = filesize($file); -if (preg_match("/.js$/", $file)) +if (preg_match("/\.js$/", $file)) $contenttype = "text/javascript"; -else if (preg_match("/.css$/", $file)) +else if (preg_match("/\.css$/", $file)) $contenttype = "text/css"; +else if (preg_match("/\.gif$/", $file)) + $contenttype = "image/gif"; +else if (preg_match("/\.jpg$/", $file)) + $contenttype = "image/jpeg"; +else if (preg_match("/\.jpeg$/", $file)) + $contenttype = "image/jpeg"; +else if (preg_match("/\.png$/", $file)) + $contenttype = "image/png"; header("Content-Type: ".$contenttype); $contentlength = ob_get_length(); header("Content-Length: ".$contentlength); @@ -57,4 +65,4 @@ ob_end_flush(); ob_start(); -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-16 18:00:49
|
Revision: 833 http://svn.sourceforge.net/phpfreechat/?rev=833&view=rev Author: kerphi Date: 2006-10-16 11:00:41 -0700 (Mon, 16 Oct 2006) Log Message: ----------- [en] Optimize the /update command : a new update command is not sent since the last response is not received. [30min] [fr] Optimisation de la commande /update : une nouvelle command /update n'est pas envoy?\195?\169 tant que la r?\195?\169ponse du pr?\195?\169cedent n'est pas re?\195?\167u. [30min] Modified Paths: -------------- trunk/src/client/pfcclient.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-16 17:31:18 UTC (rev 832) +++ trunk/src/client/pfcclient.js 2006-10-16 18:00:41 UTC (rev 833) @@ -311,6 +311,7 @@ { if (resp == "ok") { + this.canupdatenexttime = true; } } else if (cmd == "version") @@ -845,7 +846,12 @@ clearTimeout(this.timeout); if (start) { - var res = this.sendRequest('/update'); + var res = true; + if (this.canupdatenexttime) + { + res = this.sendRequest('/update'); + this.canupdatenexttime = false; // don't update since the 'ok' response is received + } // adjust the refresh_delay if the connection was lost if (res == false) { this.refresh_delay = this.refresh_delay * 2; } // setup the next update This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-16 17:44:35
|
Revision: 831 http://svn.sourceforge.net/phpfreechat/?rev=831&view=rev Author: kerphi Date: 2006-10-16 10:25:46 -0700 (Mon, 16 Oct 2006) Log Message: ----------- [en] New zilveer theme. I added a new CSS class to the default pfcclient.js which make possible to style odd and even messages : pfc_oddmsg and pfc_evenmsg (thanks to zilveer) [40min] [fr] Nouveau theme zilveer. J'ai ?\195?\169galment ajout?\195?\169 deux nouvelles classes CSS rendant possible le stylage des messages paires et impaires : pfc_oddmsg et pfc_evenmsg (merci ?\195?\160 zilveer) [40min] Modified Paths: -------------- trunk/demo/index.php trunk/src/client/pfcclient.js Added Paths: ----------- trunk/demo/demo51_zilveer_theme.php trunk/themes/zilveer/ trunk/themes/zilveer/images/ trunk/themes/zilveer/images/channels_content_bg.png trunk/themes/zilveer/images/newmsg.png trunk/themes/zilveer/images/oldmsg.png trunk/themes/zilveer/images/pfc_message1.png trunk/themes/zilveer/images/pfc_message2.png trunk/themes/zilveer/images/pfc_online.png trunk/themes/zilveer/images/pfc_send.png trunk/themes/zilveer/images/pfc_words.png trunk/themes/zilveer/images/tab_off.png trunk/themes/zilveer/images/tab_on.png trunk/themes/zilveer/images/tab_remove.gif trunk/themes/zilveer/images/user-me.gif trunk/themes/zilveer/images/user.gif trunk/themes/zilveer/info.php trunk/themes/zilveer/readme.txt trunk/themes/zilveer/style.css Added: trunk/demo/demo51_zilveer_theme.php =================================================================== --- trunk/demo/demo51_zilveer_theme.php (rev 0) +++ trunk/demo/demo51_zilveer_theme.php 2006-10-16 17:25:46 UTC (rev 831) @@ -0,0 +1,38 @@ +<?php + +require_once dirname(__FILE__)."/../src/phpfreechat.class.php"; + +$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat +$params["title"] = "A chat with a customized theme (zilveer theme)"; +$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname +$params["theme"] = "zilveer"; +$chat = new phpFreeChat( $params ); + +?> +<!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>phpFreeChat demo</title> + + <?php $chat->printJavascript(); ?> + <?php $chat->printStyle(); ?> + + </head> + + <body> + <?php $chat->printChat(); ?> + +<?php + // print the current file + echo "<h2>The source code</h2>"; + $filename = __FILE__; + echo "<p><code>".$filename."</code></p>"; + echo "<pre style=\"margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;\">"; + $content = file_get_contents($filename); + echo htmlentities($content); + echo "</pre>"; +?> + + </body> +</html> \ No newline at end of file Modified: trunk/demo/index.php =================================================================== --- trunk/demo/index.php 2006-10-16 15:17:57 UTC (rev 830) +++ trunk/demo/index.php 2006-10-16 17:25:46 UTC (rev 831) @@ -88,6 +88,7 @@ <li><a href="demo28_mini_blune_theme.php">demo28 - use a customized theme (blune theme) - mini</a></li> <li><a href="demo44_green_theme.php">demo44 - use a customized theme (green)</a></li> <li><a href="demo49_msn_smiley_theme.php">demo49 - A chat with a customized smiley theme (msn theme)</a></li> + <li><a href="demo51_zilveer_theme.php">demo51 - A chat with a customized theme (zilveer theme)</a></li> </ul> <h2 id="demo-translations">Translations</h2> Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-10-16 15:17:57 UTC (rev 830) +++ trunk/src/client/pfcclient.js 2006-10-16 17:25:46 UTC (rev 831) @@ -759,6 +759,7 @@ // format and post message var line = ''; line += '<div id="pfc_msg'+ id +'" class="pfc_cmd_'+ cmd +' pfc_message'; + line += (id % 2 == 0) ? ' pfc_evenmsg' : ' pfc_oddmsg'; if (oldmsg == 1) line += ' pfc_oldmsg'; line += '">'; line += '<span class="pfc_date'; Added: trunk/themes/zilveer/images/channels_content_bg.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/channels_content_bg.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/newmsg.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/newmsg.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/oldmsg.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/oldmsg.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/pfc_message1.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/pfc_message1.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/pfc_message2.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/pfc_message2.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/pfc_online.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/pfc_online.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/pfc_send.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/pfc_send.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/pfc_words.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/pfc_words.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/tab_off.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/tab_off.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/tab_on.png =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/tab_on.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/tab_remove.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/tab_remove.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/user-me.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/user-me.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/images/user.gif =================================================================== (Binary files differ) Property changes on: trunk/themes/zilveer/images/user.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/themes/zilveer/info.php =================================================================== --- trunk/themes/zilveer/info.php (rev 0) +++ trunk/themes/zilveer/info.php 2006-10-16 17:25:46 UTC (rev 831) @@ -0,0 +1,6 @@ +<?php +$aka = ""zilveer; +$author = "Name: Isa Acar"; +$date = "10th Oct-2006"; +$mail = "zi...@gm..."; +?> \ No newline at end of file Added: trunk/themes/zilveer/readme.txt =================================================================== --- trunk/themes/zilveer/readme.txt (rev 0) +++ trunk/themes/zilveer/readme.txt 2006-10-16 17:25:46 UTC (rev 831) @@ -0,0 +1,44 @@ +Hi, + +the only changes I have made is that I have added this line in file pfcclient.js. +------------------ +line += (id % 2 == 0) ? '<div class=pfc_message1>' : '<div class=pfc_message2>'; + +--------------------- + +it is in the foor-loop in function "handleComingRequest: function( cmds )" at line 738. + +mine is looking like this: +----------------- + + handleComingRequest: function( cmds ) + { + var msg_html = $H(); + + //alert(cmds.inspect()); + + // var html = ''; + for(var mid = 0; mid < cmds.length ; mid++) + { + var id = cmds[mid][0]; + var date = cmds[mid][1]; + var time = cmds[mid][2]; + var sender = cmds[mid][3]; + var recipientid = cmds[mid][4]; + var cmd = cmds[mid][5]; + var param = cmds[mid][6]; + var fromtoday = cmds[mid][7]; + var oldmsg = cmds[mid][8]; + + // format and post message + + var line = ''; + + //CSS-zilveer + + line += (id % 2 == 0) ? '<div class=pfc_message1>' : '<div class=pfc_message2>'; +------------ +i will also include this file. + + +/regards, Isa Acar (zilveer), send me a mail if you have any questions: zi...@gm... Added: trunk/themes/zilveer/style.css =================================================================== --- trunk/themes/zilveer/style.css (rev 0) +++ trunk/themes/zilveer/style.css 2006-10-16 17:25:46 UTC (rev 831) @@ -0,0 +1,380 @@ +div#pfc_container * { + border: 0px; + margin: 0px; + padding: 0px; + +} + +div#pfc_container { + border: 1px solid #555; + color: #000; + padding: 10px; + min-height: 20px; + background-color: #FFF; + background-image: url("proxy.php?p=default/images/background.gif"); + background-position: right; +/* background-repeat: repeat-xy;*/ + font: 12px Trebuchet MS, Sans-Serif; /* without this rule, the tabs are not correctly display on FF */ + width: 640px; +} + +#pfc_minmax { + cursor: pointer; +} +/*bg of smilies and buttons*/ +div#pfc_content_expandable { + margin-top: 0.2em; + +} + +/*bg of the chat-messages*/ +div#pfc_channels_content { + z-index: 20; + position: relative; + + border-right: 2px solid #555; + border-left: 1px solid #555; + border-bottom: 2px solid #555; + background-color: #FFF; + margin-top: 5px; + + background-image: url("proxy.php?p=zilveer/images/channels_content_bg.png"); + width: 640px; +} +div.pfc_content { + +} + +/* channels tab-panes */ +ul#pfc_channels_list { + list-style-type: none; + display: block; + z-index: 50; + border-bottom: 1px solid #555; + margin-bottom: -5px; +} +ul#pfc_channels_list li { + display: inline; + margin-left: 5px; +} +/*tab-channel OFF*/ +ul#pfc_channels_list li div { + display: inline; + padding: 0 4px 0 4px; + border: 1px solid #555; + background-color: #DDD; + background-image: url("proxy.php?p=zilveer/images/tab_off.png"); + font-size: 11px; + font-weight: bold; + +/*these 2 lines below is to make the tabs looks the same in IE and FF */ + padding-bottom: 6px; + line-height: 26px; +} +/*tab-channel ON*/ +ul#pfc_channels_list li.selected div { + background-color: #FFF; + color: #000; + font-weight: bold; + font-size: 11px; + background-image: url("proxy.php?p=zilveer/images/tab_on.png"); + +/*these 2 lines below is to make the tabs looks the same in IE and FF */ + PADDING-BOTTOM: 6px; + line-height: 26px; +} +ul#pfc_channels_list li > div:hover { + background-color: #FFF; +} +/*tab-channel text*/ +ul#pfc_channels_list li a { + color: #333 ; + text-decoration: none; +} +ul#pfc_channels_list li a.pfc_tabtitle { + cursor: pointer; +} +ul#pfc_channels_list li a.pfc_tabtitle img { + padding-right: 4px; +} +ul#pfc_channels_list li a.pfc_tabclose { + margin-left: 4px; + cursor: pointer; +} + +/*where should the newmsg- and oldmsg pictures be placed? decide it here*/ +div.pfc_chat { + z-index: 100; + position: absolute; + top: 0px; + left: 3px; + right: 0px; + bottom: 3px; + width: 467px; +/* WARNING: do not fix height in % because it will display blank screens on IE6 */ +/* height: 100%;*/ + overflow: auto; +} + +/*usernames-onlinelist*/ +div.pfc_online { + position: absolute; + right: 0px; + top: 0px; + padding: 0px; + overflow: auto; + width: 171px; + border-bottom: 1px solid #555; +/* WARNING: do not fix height in % because it will display blank screens on IE6 */ +/* height: 100%;*/ + color: #000; /* colors can be overriden by js nickname colorization */ + background-color: #FFF; + background-image: url("proxy.php?p=zilveer/images/pfc_online.png"); + background-position: left; + background-repeat: repeat-y; + /* borders are drawn by the javascript routines */ +} +div.pfc_online ul { + list-style-type: none; + margin: 0px; + padding: 0px; + margin-left: 8px; + margin-right: 8px; +} +div.pfc_online li { + font-weight: bold; + font-size: 12px; + cursor: pointer; + /* bottom borders are drawn by the javascript routines */ +} + +h2#pfc_title { + font-size: 110%; +} + +img#pfc_minmax { + float: right; +} + +.pfc_invisible { + display: none; +} + +.pfc_oddmsg { + background-color: #fff; + color: #000; + background-image: url("proxy.php?p=zilveer/images/pfc_message1.png"); +} +.pfc_evenmsg { + background-color: #ccc; + color: #000; + background-image: url("proxy.php?p=zilveer/images/pfc_message2.png"); +} + +div.pfc_message { + background-image: url("proxy.php?p=zilveer/images/newmsg.png"); + background-position: right; + background-repeat: no-repeat; +} + +div.pfc_oldmsg { + background-image: url("proxy.php?p=zilveer/images/oldmsg.png"); + background-position: right; + background-repeat: no-repeat; +} + +span.pfc_heure, span.pfc_date { + color: #333; + font-size: 90%; +} + +span.pfc_nick { + color: #fbac17; + font-weight: bold; + cursor:pointer; +} + +div#pfc_input_container { + margin-top: 5px; + font-size: 12px; +} + +input#pfc_words { + border: 0px; + background-color: #FAFAFA; + width: 520px; + padding: 4px 5px 0px 5px; /*top right bottom left*/ + font-size: 12px; + height: 20Px; + vertical-align: bottom; + background-image: url("proxy.php?p=zilveer/images/pfc_words.png"); + font: 12px Trebuchet MS; + +} + +input#pfc_send { + display: block; + margin-left: 5px; + padding-top: 2px; + width: 100px; + border: 0px; + background-color: #ccc; + font: 12px Trebuchet MS; + color: #333; + height: 24px; + cursor: pointer; + background-image: url("proxy.php?p=zilveer/images/pfc_send.png"); + cursor: pointer; +} + + + +div#pfc_cmd_container { + position: relative; + margin-top: 5px; + margin-bottom: 5px; + width: 100%; +} +div#pfc_cmd_container * { + margin-right: 2px; +} + +p#pfc_handle { + display: inline; + cursor: pointer; + border: 1px solid #555; + padding: 2px 10px 2px 10px; + color: black; + margin-bottom: 5px; + font-weight: bold; + background-color: #EEE; + font-size: 70%; /* these two line fix a display problem in IE6 : */ + vertical-align: middle; /* the nickname box bottom border is hidden without these lines */ + +} + +a#pfc_logo { + position: absolute; + right: 0px; + top: 0px; +} + +div.pfc_btn { + display: inline; + cursor: pointer; +} +div.pfc_btn img { + /* doesn't work */ + /* border: 1px solid #393;*/ /* same as container color */ +} +div.pfc_btn img:hover { + /* doesn't work */ + /* border: 1px solid #000;*/ +} + +div#pfc_bbcode_container * { + margin-right: 2px; +} + +div#pfc_errors { + display: none; + padding: 5px; + border: 1px solid #555; + color: #EC4B0F; + background-color: #FFBB77; + font-style: italic; + font-family: monospace; + font-size: 90%; +} + +/* commands */ +.pfc_cmd_msg { + color: black; +} +.pfc_cmd_me { + font-style: italic; + color: black; +} +/*notice messages, login,logout,timed out etc..*/ +.pfc_cmd_notice { + font-style: italic; + color: #333; +} + +/* commands info */ +.pfc_info { + color: #fefefe; + + /* to fix IE6 display bug */ + /* http://sourceforge.net/tracker/index.php?func=detail&aid=1545403&group_id=158880&atid=809601 */ + font-family: sans-serif; /* do NOT setup monospace font or it will not work in IE6 */ + font-style: italic; + background-color: #EEE; + font-size: 80%; +} + + +div#pfc_colorlist { + display: none; +} +img.pfc_color { + padding: 1px; + cursor: pointer; +} + +.pfc_nickmarker { + white-space: pre; + +} + +div#pfc_smileys { + display: none; /* will be shown by javascript routines */ + background-color: #FFF; + border: 1px solid #555; + padding: 4px; + margin-top: 4px; +} +div#pfc_smileys * { + margin-right: 2px; +} + +div#pfc_smileys img { + cursor: pointer; +} + + + +div.pfc_nickwhois * { padding: 0; margin: 0; } +div.pfc_nickwhois a img { border: none; } +div.pfc_nickwhois { + border: 1px solid #444; + background-color: #FFF; + font-size: 75%; +} +div.pfc_nickwhois ul { + list-style-type: none; + background-color: #EEE; + border-bottom: 1px solid #444; +} +div.pfc_nickwhois li { + display: inline; + margin-right: 4px; + padding: 2px; +} +td.pfc_nickwhois_c1 { + font-weight: bold; +} +li.pfc_nickwhois_pv { + padding-left: 2px; + border-left: 1px solid #444; +} +li.pfc_nickwhois_pv a { + text-decoration: none; +} + +ul.pfc_nicklist span.pfc_nickmarker { +} + +img.pfc_nickbutton { + cursor: pointer; +} \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-16 17:44:35
|
Revision: 832 http://svn.sourceforge.net/phpfreechat/?rev=832&view=rev Author: kerphi Date: 2006-10-16 10:31:18 -0700 (Mon, 16 Oct 2006) Log Message: ----------- cleaning Removed Paths: ------------- trunk/themes/zilveer/readme.txt Deleted: trunk/themes/zilveer/readme.txt =================================================================== --- trunk/themes/zilveer/readme.txt 2006-10-16 17:25:46 UTC (rev 831) +++ trunk/themes/zilveer/readme.txt 2006-10-16 17:31:18 UTC (rev 832) @@ -1,44 +0,0 @@ -Hi, - -the only changes I have made is that I have added this line in file pfcclient.js. ------------------- -line += (id % 2 == 0) ? '<div class=pfc_message1>' : '<div class=pfc_message2>'; - ---------------------- - -it is in the foor-loop in function "handleComingRequest: function( cmds )" at line 738. - -mine is looking like this: ------------------ - - handleComingRequest: function( cmds ) - { - var msg_html = $H(); - - //alert(cmds.inspect()); - - // var html = ''; - for(var mid = 0; mid < cmds.length ; mid++) - { - var id = cmds[mid][0]; - var date = cmds[mid][1]; - var time = cmds[mid][2]; - var sender = cmds[mid][3]; - var recipientid = cmds[mid][4]; - var cmd = cmds[mid][5]; - var param = cmds[mid][6]; - var fromtoday = cmds[mid][7]; - var oldmsg = cmds[mid][8]; - - // format and post message - - var line = ''; - - //CSS-zilveer - - line += (id % 2 == 0) ? '<div class=pfc_message1>' : '<div class=pfc_message2>'; ------------- -i will also include this file. - - -/regards, Isa Acar (zilveer), send me a mail if you have any questions: zi...@gm... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-16 15:18:23
|
Revision: 830 http://svn.sourceforge.net/phpfreechat/?rev=830&view=rev Author: kerphi Date: 2006-10-16 08:17:57 -0700 (Mon, 16 Oct 2006) Log Message: ----------- add commented traces Modified Paths: -------------- trunk/src/commands/privmsg.class.php trunk/src/commands/send.class.php trunk/src/commands/who2.class.php Modified: trunk/src/commands/privmsg.class.php =================================================================== --- trunk/src/commands/privmsg.class.php 2006-10-16 15:17:20 UTC (rev 829) +++ trunk/src/commands/privmsg.class.php 2006-10-16 15:17:57 UTC (rev 830) @@ -29,6 +29,8 @@ return; } + //$this->trace($xml_reponse, $this->name, $sender); + // error: can't speak to unknown if ($pvnickid == '') { Modified: trunk/src/commands/send.class.php =================================================================== --- trunk/src/commands/send.class.php 2006-10-16 15:17:20 UTC (rev 829) +++ trunk/src/commands/send.class.php 2006-10-16 15:17:57 UTC (rev 830) @@ -27,9 +27,9 @@ $cmd->run($xml_reponse, $cmdp); return; } - - // $offline = $container->getMeta("offline", "nickname", $u->privmsg[$recipientid]["name"]); + + // $offline = $container->getMeta("offline", "nickname", $u->privmsg[$recipientid]["name"]); // if this channel is a pv (one to one channel), // first of all, check if the other user is connected Modified: trunk/src/commands/who2.class.php =================================================================== --- trunk/src/commands/who2.class.php 2006-10-16 15:17:20 UTC (rev 829) +++ trunk/src/commands/who2.class.php 2006-10-16 15:17:57 UTC (rev 830) @@ -45,6 +45,9 @@ $chanmeta = $this->_getChanMeta($recipient, $recipientid); + //if (preg_match("/^pv_/", $recipient)) + //$this->trace($xml_reponse, 'who2', $recipient); + // check if info didn't change since last call $sid = "pfc_who2_".$c->getId()."_".$clientid."_".$recipientid; if (isset($_SESSION[$sid]) && $chanmeta == $_SESSION[$sid]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-16 15:17:33
|
Revision: 829 http://svn.sourceforge.net/phpfreechat/?rev=829&view=rev Author: kerphi Date: 2006-10-16 08:17:20 -0700 (Mon, 16 Oct 2006) Log Message: ----------- [en] Bug fix: private messages + quit command makes problems with the displayed user's list [1h] [fr] Bug fix : lorsqu'on est en PV et que l'on quitte le chat intentionnellement, le nick est deconnect?\195?\169 de tous les channels sauf des messages prives. [1h] Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-10-16 14:46:26 UTC (rev 828) +++ trunk/src/phpfreechat.class.php 2006-10-16 15:17:20 UTC (rev 829) @@ -365,6 +365,7 @@ // @todo: move this code in a proxy if ($rawcmd != "update" && $rawcmd != "leave" && // do not open the pv tab when other user close the tab + $rawcmd != "quit" && $rawcmd != "privmsg2") { // alert the other from the new pv This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-10-16 14:46:36
|
Revision: 828 http://svn.sourceforge.net/phpfreechat/?rev=828&view=rev Author: kerphi Date: 2006-10-16 07:46:26 -0700 (Mon, 16 Oct 2006) Log Message: ----------- [en] Add pfcCommand::trace(...) function used for debug [30min] [fr] Ajout de la fonction pfcCommand::trace(...) utilis?\195?\169e pour le debug [30min] Modified Paths: -------------- trunk/src/client/chat.js.tpl.php trunk/src/pfccommand.class.php trunk/themes/default/style.css Modified: trunk/src/client/chat.js.tpl.php =================================================================== --- trunk/src/client/chat.js.tpl.php 2006-10-08 19:02:16 UTC (rev 827) +++ trunk/src/client/chat.js.tpl.php 2006-10-16 14:46:26 UTC (rev 828) @@ -160,6 +160,6 @@ color = '#DDD'; pfc_debug_color = true; } - $('pfc_debug').innerHTML += '<p style="margin:0;border-bottom:1px solid #555;background-color:'+color+'">' + text + '</p>'; + $('pfc_debug').innerHTML = '<p style="margin:0;border-bottom:1px solid #555;background-color:'+color+'">' + text + '</p>' + $('pfc_debug').innerHTML ; } <?php } ?> Modified: trunk/src/pfccommand.class.php =================================================================== --- trunk/src/pfccommand.class.php 2006-10-08 19:02:16 UTC (rev 827) +++ trunk/src/pfccommand.class.php 2006-10-16 14:46:26 UTC (rev 828) @@ -131,7 +131,7 @@ { die(_pfc("%s must be implemented", get_class($this)."::".__FUNCTION__)); } - + /** * Force whois reloading */ @@ -172,8 +172,21 @@ } } } + + function trace(&$xml_reponse, $msg, $data = NULL) + { + if ($data != NULL) + { + require_once(dirname(__FILE__)."/../lib/json/JSON.php"); + $json = new Services_JSON(); + $js = $json->encode($data); + $xml_reponse->addScript("trace('".$msg." -> ".$js."');"); + } + else + $xml_reponse->addScript("trace('".$msg."');"); + + } - } ?> Modified: trunk/themes/default/style.css =================================================================== --- trunk/themes/default/style.css 2006-10-08 19:02:16 UTC (rev 827) +++ trunk/themes/default/style.css 2006-10-16 14:46:26 UTC (rev 828) @@ -338,4 +338,8 @@ img.pfc_nickbutton { cursor: pointer; +} + +div#pfc_debug { + font-size: 11px; } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |