Update of /cvsroot/webnotes/webnotes/core
In directory usw-pr-cvs1:/tmp/cvs-serv9697/core
Modified Files:
string_api.php
Log Message:
- Detecting icq://999999 in the e-mail and note and adding next to them the
online status indicator. This is also hyper-linked to the unified messaging
page of the user with the specified icq number.
Index: string_api.php
===================================================================
RCS file: /cvsroot/webnotes/webnotes/core/string_api.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- string_api.php 30 Sep 2002 01:32:14 -0000 1.11
+++ string_api.php 30 Sep 2002 02:40:51 -0000 1.12
@@ -103,10 +103,15 @@
return ($p_note_string);
}
### --------------------
+ function string_icq_status( $p_note_string ) {
+ return (preg_replace("/icq:\/\/([0-9]+)/", "<a href=\"http://web.icq.com/wwp?Uin=\\1\">\\0<img src=\"http://web.icq.com/whitepages/online?icq=\\1&img=5\" width=\"18\" height=\"18\" /></a>", $p_note_string ));
+ }
+ ### --------------------
function string_prepare_note_for_viewing( $p_note_string, $p_url = null ) {
$p_note_string = htmlspecialchars( $p_note_string );
$p_note_string = string_preserve_spaces_at_bol( $p_note_string );
$p_note_string = string_hyperlink( $p_note_string );
+ $p_note_string = string_icq_status( $p_note_string );
if ( null !== $p_url ) {
$p_note_string = string_add_note_links( $p_url, $p_note_string );
}
|