Thread: [Phpfreechat-svn] SF.net SVN: phpfreechat: [487] trunk/src/phpfreechat.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-05-11 15:11:42
|
Revision: 487 Author: kerphi Date: 2006-05-11 08:11:34 -0700 (Thu, 11 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=487&view=rev Log Message: ----------- bug fix: do not open the pv tab when other user close the tab Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-05-05 15:46:21 UTC (rev 486) +++ trunk/src/phpfreechat.class.php 2006-05-11 15:11:34 UTC (rev 487) @@ -343,7 +343,8 @@ { $recipient = $u->privmsg[$recipientid]["recipient"]; - if ($rawcmd != "update") + if ($rawcmd != "update" && + $rawcmd != "leave") // do not open the pv tab when other user close the tab { // alert the other from the new pv // (warn other user that someone talk to him) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-05-28 17:09:04
|
Revision: 527 Author: kerphi Date: 2006-05-28 10:08:53 -0700 (Sun, 28 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=527&view=rev Log Message: ----------- remove useless code Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-05-28 17:08:25 UTC (rev 526) +++ trunk/src/phpfreechat.class.php 2006-05-28 17:08:53 UTC (rev 527) @@ -385,7 +385,7 @@ if ($cmdtmp != NULL) { // store the new cmdtoplay list (-1 item) - $cmdtoplay = $container->setMeta(serialize($cmdtoplay), "cmdtoplay", "nickname", $nickid); + $container->setMeta(serialize($cmdtoplay), "cmdtoplay", "nickname", $nickid); // play the command $cmd =& pfcCommand::Factory($cmdtmp[0]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-06-08 19:33:14
|
Revision: 555 Author: kerphi Date: 2006-06-08 12:33:09 -0700 (Thu, 08 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=555&view=rev Log Message: ----------- remove unused code Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-06-08 19:32:39 UTC (rev 554) +++ trunk/src/phpfreechat.class.php 2006-06-08 19:33:09 UTC (rev 555) @@ -201,9 +201,6 @@ // output css pfcI18N::SwitchOutputEncoding(); $output = "<style type=\"text/css\">\n".$output."\n</style>\n"; - - // tabpane - $output .= '<link id="luna-tab-style-sheet" type="text/css" rel="stylesheet" href="'.$c->data_public_url.'/tabpane/css/luna/tab.css" />'; if($return) return $output; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-06-16 15:12:26
|
Revision: 601 Author: kerphi Date: 2006-06-16 08:12:20 -0700 (Fri, 16 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=601&view=rev Log Message: ----------- Bandwidth optimization : do not send any responses when nothing have to be updated (this code is under commentary because it doesn't work with the current xajax version) Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-06-16 15:09:56 UTC (rev 600) +++ trunk/src/phpfreechat.class.php 2006-06-16 15:12:20 UTC (rev 601) @@ -443,6 +443,9 @@ pxlog("HandleRequest: content=".$data, "chat", $c->getId()); ob_end_clean(); } + + // do nothing else if the xml response is empty + //if ($xml_reponse->xml == "") die(); return $xml_reponse->getXML(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-02 14:14:55
|
Revision: 669 Author: kerphi Date: 2006-08-02 07:14:46 -0700 (Wed, 02 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=669&view=rev Log Message: ----------- Bug fix: When /rehash command was run, sometime a js alert showing php errors poped up. Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-08-02 09:54:10 UTC (rev 668) +++ trunk/src/phpfreechat.class.php 2006-08-02 14:14:46 UTC (rev 669) @@ -60,14 +60,18 @@ return phpFreeChat::HandleRequest($request); } // then init xajax engine - if (!class_exists("xajax")) require_once $c->xajaxpath."/xajax.inc.php"; - $this->xajax = new xajax($c->server_script_url.(isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "" ? "?".$_SERVER["QUERY_STRING"] : ""), $c->prefix); - if ($c->debugxajax) $this->xajax->debugOn(); - $this->xajax->waitCursorOff(); // do not show a wait cursor during chat updates - $this->xajax->cleanBufferOff(); - $this->xajax->errorHandlerOn(); // used to have verbose error logs - $this->xajax->registerFunction("handleRequest"); - $this->xajax->processRequests(); + if (!class_exists("xajax")) + if (file_exists($c->xajaxpath."/xajax.inc.php")) + { + require_once $c->xajaxpath."/xajax.inc.php"; + $this->xajax = new xajax($c->server_script_url.(isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "" ? "?".$_SERVER["QUERY_STRING"] : ""), $c->prefix); + if ($c->debugxajax) $this->xajax->debugOn(); + $this->xajax->waitCursorOff(); // do not show a wait cursor during chat updates + $this->xajax->cleanBufferOff(); + $this->xajax->errorHandlerOn(); // used to have verbose error logs + $this->xajax->registerFunction("handleRequest"); + $this->xajax->processRequests(); + } } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-08-23 08:05:17
|
Revision: 696 Author: kerphi Date: 2006-08-23 01:05:09 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=696&view=rev Log Message: ----------- Bug fix: the height parameter was broken Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-08-22 14:34:33 UTC (rev 695) +++ trunk/src/phpfreechat.class.php 2006-08-23 08:05:09 UTC (rev 696) @@ -150,6 +150,14 @@ $output .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"".$c->getFileUrlByProxy("style.css")."\" />\n"; } + // since php can't be embeded into the css themes files, special styles parameter must be setup here + if ($c->height != "") + { + $output .= "<style type=\"text/css\">"; + $output .= "div#pfc_channels_content { height: ".$c->height."; }"; + $output .= "</style>\n"; + } + if($return) return $output; else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-09-02 20:38:51
|
Revision: 724 http://svn.sourceforge.net/phpfreechat/?rev=724&view=rev Author: kerphi Date: 2006-09-02 13:38:40 -0700 (Sat, 02 Sep 2006) Log Message: ----------- Bug fix: if preg_* module is not compiled with utf8 support, a warning occurs Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-02 20:14:57 UTC (rev 723) +++ trunk/src/phpfreechat.class.php 2006-09-02 20:38:40 UTC (rev 724) @@ -228,7 +228,7 @@ $c =& pfcGlobalConfig::Instance(); //$nickname = str_replace("\\", "", $nickname); // '\' is a forbidden charactere for nicknames $nickname = trim($nickname); - $nickname = utf8_substr($nickname, 0, $c->max_nick_len); + $nickname = @utf8_substr($nickname, 0, $c->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-09-03 16:22:40
|
Revision: 730 http://svn.sourceforge.net/phpfreechat/?rev=730&view=rev Author: kerphi Date: 2006-09-03 09:22:24 -0700 (Sun, 03 Sep 2006) Log Message: ----------- Bug fix: the xajax server url script was not correctly calculated Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-03 13:34:14 UTC (rev 729) +++ trunk/src/phpfreechat.class.php 2006-09-03 16:22:24 UTC (rev 730) @@ -63,7 +63,7 @@ if (!class_exists("xajax")) if (file_exists($c->xajaxpath."/xajax.inc.php")) { - require_once $c->xajaxpath."/xajax.inc.php"; + require_once $c->xajaxpath."/xajax.inc.php"; $this->xajax = new xajax($c->server_script_url.(isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "" ? "?".$_SERVER["QUERY_STRING"] : ""), $c->prefix); if ($c->debugxajax) $this->xajax->debugOn(); $this->xajax->waitCursorOff(); // do not show a wait cursor during chat updates @@ -88,7 +88,7 @@ $u =& pfcUserConfig::Instance(); $output .= '<script type="text/javascript"> -var xajaxRequestUri="'.$c->server_script_url.'"; +var xajaxRequestUri="'.$c->server_script_url.(isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "" ? "?".$_SERVER["QUERY_STRING"] : "").'"; var xajaxDebug=false; var xajaxStatusMessages=false; var xajaxWaitCursor=false; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-09-04 20:41:59
|
Revision: 733 http://svn.sourceforge.net/phpfreechat/?rev=733&view=rev Author: kerphi Date: 2006-09-04 13:41:46 -0700 (Mon, 04 Sep 2006) Log Message: ----------- more explicite message Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-04 19:46:27 UTC (rev 732) +++ trunk/src/phpfreechat.class.php 2006-09-04 20:41:46 UTC (rev 733) @@ -184,7 +184,7 @@ // or keep a backling to http://www.phpfreechat on your partner page // it helps phpfreechat promotion over the Web. // (remember it's a free program) - $output .= "<p>"._pfc("Error: the chat cannot be loaded, check the public directory rights or ask some help on the forum")." <a href=\"http://www.phpfreechat.net/forum/\">www.phpfreechat.net/forum</a></p>"; + $output .= "<p>"._pfc("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")." <a href=\"http://www.phpfreechat.net/forum/\">www.phpfreechat.net/forum</a></p>"; $output .= "<a href=\"http://www.phpfreechat.net\"><img src=\"http://www.phpfreechat.net/pub/logo_80x15.gif\" alt=\"PHP FREE CHAT [powered by phpFreeChat-".$c->version."]\" title=\"PHP FREE CHAT [powered by phpFreeChat-".$c->version."]\" /></a>"; $output .= "</div>"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-09-12 14:17:19
|
Revision: 755 http://svn.sourceforge.net/phpfreechat/?rev=755&view=rev Author: kerphi Date: 2006-09-12 07:14:00 -0700 (Tue, 12 Sep 2006) Log Message: ----------- [en] Bug fix: the max_text_len parameter didn't work with utf8 (non us-ascii) strings. [fr] Bug fix : le parametre max_text_len ne fonctionnait pas avec des chaines utf8 (non us-ascii). Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-12 13:12:59 UTC (rev 754) +++ trunk/src/phpfreechat.class.php 2006-09-12 14:14:00 UTC (rev 755) @@ -270,7 +270,7 @@ function PreFilterMsg($msg) { $c =& pfcGlobalConfig::Instance(); - $msg = substr($msg, 0, $c->max_text_len); + $msg = utf8_substr($msg, 0, $c->max_text_len); $msg = phpFreeChat::FilterSpecialChar($msg); // $msg = phpFreeChat::FilterSmiley($msg); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-09-20 20:24:36
|
Revision: 777 http://svn.sourceforge.net/phpfreechat/?rev=777&view=rev Author: kerphi Date: 2006-09-20 13:24:30 -0700 (Wed, 20 Sep 2006) Log Message: ----------- Bug fix: the params type was considered as array but it can be an object if a pfcglobalconfig instance is passed Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-09-20 20:14:04 UTC (rev 776) +++ trunk/src/phpfreechat.class.php 2006-09-20 20:24:30 UTC (rev 777) @@ -38,7 +38,9 @@ function phpFreeChat( &$params ) { - if (isset($params["debug"]) && $params["debug"]) + if (!is_object($params) && + isset($params["debug"]) && + $params["debug"]) require_once dirname(__FILE__)."/../debug/log.php"; // check if the given parameters is a simple array 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...> - 2007-02-14 16:55:54
|
Revision: 951 http://svn.sourceforge.net/phpfreechat/?rev=951&view=rev Author: kerphi Date: 2007-02-14 08:55:52 -0800 (Wed, 14 Feb 2007) Log Message: ----------- Bug fix: encoding problem http://www.phpfreechat.net/forum/viewtopic.php?id=1184 Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2007-02-14 16:54:55 UTC (rev 950) +++ trunk/src/phpfreechat.class.php 2007-02-14 16:55:52 UTC (rev 951) @@ -542,7 +542,7 @@ $html = ''; - pfcI18N::SwitchOutputEncoding($c->output_encoding); + // pfcI18N::SwitchOutputEncoding($c->output_encoding); $path = $c->getFilePathFromTheme('chat.html.tpl.php'); $t = new pfcTemplate($path); @@ -550,7 +550,7 @@ $t->assignObject($c,"c"); $html .= $t->getOutput(); - pfcI18N::SwitchOutputEncoding(); + // pfcI18N::SwitchOutputEncoding(); $xml_reponse->remove("pfc_loader"); // to hide the loading box $xml_reponse->assign("pfc_container", "innerHTML", $html); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2007-02-16 20:49:31
|
Revision: 964 http://svn.sourceforge.net/phpfreechat/?rev=964&view=rev Author: kerphi Date: 2007-02-16 12:49:27 -0800 (Fri, 16 Feb 2007) Log Message: ----------- load customize.js.php during the ajax loading process Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2007-02-16 20:44:05 UTC (rev 963) +++ trunk/src/phpfreechat.class.php 2007-02-16 20:49:27 UTC (rev 964) @@ -424,6 +424,13 @@ $js = ''; + // load customize.js.php + $path = $c->getFilePathFromTheme('customize.js.php'); + $t = new pfcTemplate($path); + $t->assignObject($c,"c"); + $js .= $t->getOutput(); + + // load translations require_once dirname(__FILE__).'/pfcjson.class.php'; $json = new pfcJSON(); @@ -472,7 +479,8 @@ { $js .= "pfc.res.setLabel(".$json->encode($l).",".$json->encode(_pfc2($l)).");\n"; } - + + // load ressources $fileurl_to_load = array( 'images/ch.gif', 'images/pv.gif', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gpi...@us...> - 2007-08-29 16:16:44
|
Revision: 1160 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1160&view=rev Author: gpinzone Date: 2007-08-29 09:16:46 -0700 (Wed, 29 Aug 2007) Log Message: ----------- Added female icons to phpfreechat.class.php. Fixed mistake from last commit. Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2007-08-29 14:59:02 UTC (rev 1159) +++ trunk/src/phpfreechat.class.php 2007-08-29 16:16:46 UTC (rev 1160) @@ -476,6 +476,8 @@ 'images/pv-active.gif', 'images/user.gif', 'images/user-me.gif', + 'images/user_female.gif', + 'images/user_female-me.gif', 'images/color-on.gif', 'images/color-off.gif', 'images/clock-on.gif', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |