Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / modules / messages [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
27 Jul 2002 21:40:21postnuke_official/html/modules/messagesreplypmsg.php,1.38.2.2,1.38.2.3Andreas Krapohl
 fix for <br> bug in php 4.2.x and some ml-fixes within quote

Update of /home/cvsroot/postnuke_official/html/modules/messages
In directory ns7.hostnuke.net:/tmp/cvs-serv25128/postnuke_official/html/modules/messages

Modified Files:
      Tag: PostNuke_71
	replypmsg.php 
Log Message:
fix for <br> bug in php 4.2.x and some ml-fixes within quote


Index: replypmsg.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/messages/Attic/replypmsg.php,v
retrieving revision 1.38.2.2
retrieving revision 1.38.2.3
diff -C2 -d -r1.38.2.2 -r1.38.2.3
*** replypmsg.php	24 Jul 2002 21:20:54 -0000	1.38.2.2
--- replypmsg.php	27 Jul 2002 21:40:19 -0000	1.38.2.3
***************
*** 107,111 ****
      }
  
!     $message = str_replace("\n", "<br>", $message);
  
      if(!isset($smile)) {
--- 107,111 ----
      }
  
!     $message = nl2br($message);
  
      if(!isset($smile)) {
***************
*** 353,360 ****
              $result->MoveNext();
              $text = desmile($row['msg_text']);
!             $text = str_replace("<BR>", "\n", $text);
              $text = pnVarPrepHTMLDisplay($text);
              $text = pn_bbdecode($text);
!             $reply = "[quote]\n"._ON." $row[msg_time], $row[uname] "._WROTE.":\n$text\n[/quote]";
          }
      }
--- 353,367 ----
              $result->MoveNext();
              $text = desmile($row['msg_text']);
!             $text = preg_replace('/(<br[ \/]*?>)/i', "", $text);
              $text = pnVarPrepHTMLDisplay($text);
              $text = pn_bbdecode($text);
!     		$row['msg_time'] = mktime( substr($row['msg_time'], 11, 2),     // hour
!                                         substr($row['msg_time'], 14, 2),    // minute
!                                         '0',                                // second
!                                         substr($row['msg_time'], 5, 2),     // month
!                                         substr($row['msg_time'], 8, 2),     // day
!                                     	substr($row['msg_time'], 0, 4));    // year
! 
!             $reply = "[quote]\n$row[uname] "._WROTE." "._ON." ". ml_ftime(_DATETIMEBRIEF, GetUserTime($row[msg_time])) .":\n$text\n[/quote]";
          }
      }


Directory filter : [ all ] / postnuke_official / html / modules / messages [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3