Thread: [Phpfreechat-svn] SF.net SVN: phpfreechat: [448] branches/0.x/src
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-18 08:37:23
|
Revision: 448 Author: kerphi Date: 2006-04-18 01:37:11 -0700 (Tue, 18 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=448&view=rev Log Message: ----------- Bug fix: the oldmsg style was not set correctly to old message elements (limit is set with max_msg) Modified Paths: -------------- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php branches/0.x/src/pfccommand_getnewmsg.class.php Modified: branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php =================================================================== --- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-17 19:45:09 UTC (rev 447) +++ branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-18 08:37:11 UTC (rev 448) @@ -7,6 +7,9 @@ color: black; margin: auto; } +div#<?php echo $prefix; ?>chat { + background-color: #FFF; +} div#<?php echo $prefix; ?>content { border: none; @@ -52,3 +55,12 @@ border: 1px solid #000; background-color: #CCC; } + + +/* commands */ +.<?php echo $prefix; ?>cmd_notice { + color: red; +} +.<?php echo $prefix; ?>cmd_msg { + color: #555; +} \ No newline at end of file Modified: branches/0.x/src/pfccommand_getnewmsg.class.php =================================================================== --- branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-17 19:45:09 UTC (rev 447) +++ branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-18 08:37:11 UTC (rev 448) @@ -48,7 +48,7 @@ $m_cmd = "cmd_me"; } - $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($from_id == 0? 1 : 0)."),"; + $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($from_id <= 0? 1 : 0)."),"; $msg_sent = true; } if ($js != "") @@ -69,4 +69,4 @@ } } -?> \ 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-04-19 12:11:33
|
Revision: 453 Author: kerphi Date: 2006-04-19 05:11:17 -0700 (Wed, 19 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=453&view=rev Log Message: ----------- Bug fix: the oldmsg CSS class was not set in some cases Modified Paths: -------------- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php branches/0.x/src/pfccommand_connect.class.php branches/0.x/src/pfccommand_getnewmsg.class.php Modified: branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php =================================================================== --- branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-19 07:28:12 UTC (rev 452) +++ branches/0.x/demo/demo5_customized_style_data/mytheme/templates/style.css.tpl.php 2006-04-19 12:11:17 UTC (rev 453) @@ -24,6 +24,7 @@ div.<?php echo $prefix; ?>oldmsg { background-image: url(<?php echo $c->getFileUrlFromTheme('images/oldmsg.gif'); ?>); + background-color: #EEE; } span.<?php echo $prefix; ?>heure { @@ -63,4 +64,4 @@ } .<?php echo $prefix; ?>cmd_msg { color: #555; -} \ No newline at end of file +} Modified: branches/0.x/src/pfccommand_connect.class.php =================================================================== --- branches/0.x/src/pfccommand_connect.class.php 2006-04-19 07:28:12 UTC (rev 452) +++ branches/0.x/src/pfccommand_connect.class.php 2006-04-19 12:11:17 UTC (rev 453) @@ -12,6 +12,8 @@ // i.e. be ready to re-get all last posted messages $container =& $c->getContainerInstance(); $_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid] = $container->getLastMsgId()-$c->max_msg; + // initialize the number of new read messages in order to be able to know how old a message is + $_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid] = 0; // reset the nickname cache $_SESSION[$c->prefix."nicklist_".$c->getId()."_".$clientid] = NULL; @@ -58,4 +60,4 @@ } } -?> \ No newline at end of file +?> Modified: branches/0.x/src/pfccommand_getnewmsg.class.php =================================================================== --- branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-19 07:28:12 UTC (rev 452) +++ branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-19 12:11:17 UTC (rev 453) @@ -24,6 +24,7 @@ $container =& $c->getContainerInstance(); $from_id = isset($_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid]) ? $_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid] : $container->getLastMsgId()-$c->max_msg; + $nbnewmsg = isset($_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid]) ? $_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid] : 0; $new_msg = $container->readNewMsg($from_id); $new_from_id = $new_msg["new_from_id"]; @@ -48,7 +49,7 @@ $m_cmd = "cmd_me"; } - $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($from_id <= 0? 1 : 0)."),"; + $js .= "Array(".$m_id.",'".addslashes($m_date)."','".addslashes($m_heure)."','".addslashes($m_nick)."','".addslashes($m_words)."','".addslashes($m_cmd)."',".(date("d/m/Y") == $m_date ? 1 : 0).",".($nbnewmsg == 0 ? 1 : 0)."),"; $msg_sent = true; } if ($js != "") @@ -62,6 +63,7 @@ { // store the new msg id $_SESSION[$c->prefix."from_id_".$c->getId()."_".$clientid] = $new_from_id; + $_SESSION[$c->prefix."nbreadmsg_".$c->getId()."_".$clientid] = $nbnewmsg + count($messages); } // remove the lock This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2006-04-28 22:26:33
|
Revision: 480 Author: kerphi Date: 2006-04-28 13:12:16 -0700 (Fri, 28 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=480&view=rev Log Message: ----------- add license header Modified Paths: -------------- branches/0.x/src/pfccommand_asknick.class.php branches/0.x/src/pfccommand_connect.class.php branches/0.x/src/pfccommand_error.class.php branches/0.x/src/pfccommand_getnewmsg.class.php branches/0.x/src/pfccommand_getonlinenick.class.php branches/0.x/src/pfccommand_init.class.php branches/0.x/src/pfccommand_me.class.php branches/0.x/src/pfccommand_nick.class.php branches/0.x/src/pfccommand_notice.class.php branches/0.x/src/pfccommand_quit.class.php branches/0.x/src/pfccommand_send.class.php branches/0.x/src/pfccommand_update.class.php branches/0.x/src/pfccommand_updatemynick.class.php Modified: branches/0.x/src/pfccommand_asknick.class.php =================================================================== --- branches/0.x/src/pfccommand_asknick.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_asknick.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_connect.class.php =================================================================== --- branches/0.x/src/pfccommand_connect.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_connect.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_error.class.php =================================================================== --- branches/0.x/src/pfccommand_error.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_error.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_getnewmsg.class.php =================================================================== --- branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_getnewmsg.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_getonlinenick.class.php =================================================================== --- branches/0.x/src/pfccommand_getonlinenick.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_getonlinenick.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_init.class.php =================================================================== --- branches/0.x/src/pfccommand_init.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_init.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_me.class.php =================================================================== --- branches/0.x/src/pfccommand_me.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_me.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_nick.class.php =================================================================== --- branches/0.x/src/pfccommand_nick.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_nick.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_notice.class.php =================================================================== --- branches/0.x/src/pfccommand_notice.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_notice.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_quit.class.php =================================================================== --- branches/0.x/src/pfccommand_quit.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_quit.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_send.class.php =================================================================== --- branches/0.x/src/pfccommand_send.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_send.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_update.class.php =================================================================== --- branches/0.x/src/pfccommand_update.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_update.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); Modified: branches/0.x/src/pfccommand_updatemynick.class.php =================================================================== --- branches/0.x/src/pfccommand_updatemynick.class.php 2006-04-27 11:49:10 UTC (rev 479) +++ branches/0.x/src/pfccommand_updatemynick.class.php 2006-04-28 20:12:16 UTC (rev 480) @@ -1,4 +1,24 @@ <?php +/** + * phpfreechat.class.php + * + * Copyright © 2006 Stephane Gully <ste...@gm...> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301 USA + */ require_once(dirname(__FILE__)."/pfccommand.class.php"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |