From: Lo?c C. <lo...@us...> - 2001-03-24 11:29:13
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat In directory usw-pr-cvs1:/tmp/cvs-serv1938/chat Modified Files: input.php3 handle_inputH.php3 Log Message: url without prefix (www.myurl.myext) are now recognized as links ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/input.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** input.php3 2001/03/23 18:47:28 1.4 --- input.php3 2001/03/24 11:29:06 1.5 *************** *** 130,137 **** // URL ! $M = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#\?/&=])", "<a href=\"\\1://\\2\\3\" target=\"_blank\">\\1://\\2\\3</a>", $M); // e-mail addresses ! $M = eregi_replace("([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)", "<a href=\"mailto:\\1\">\\1</a>", $M); // Smilies --- 130,138 ---- // URL ! $M = eregi_replace('([[:space:]]|^)(www)', '\\1http://\\2', $M); // no prefix (www.myurl.ext) ! $M = eregi_replace('([[:alpha:]]+)://([^[:space:]]*)([[:alnum:]#\?/&=])', '<a href="\\1://\\2\\3" target="_blank">\\1://\\2\\3</a>', $M); // e-mail addresses ! $M = eregi_replace('([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)', '<a href="mailto:\\1">\\1</a>', $M); // Smilies Index: handle_inputH.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/handle_inputH.php3,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** handle_inputH.php3 2001/02/25 18:26:35 1.1.1.1 --- handle_inputH.php3 2001/03/24 11:29:06 1.2 *************** *** 134,141 **** // URL ! $M = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#\?/&=])", "<a href=\"\\1://\\2\\3\" target=\"_blank\">\\1://\\2\\3</a>", $M); // e-mail addresses ! $M = eregi_replace("([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)", "<a href=\"mailto:\\1\">\\1</a>", $M); // Smilies --- 134,142 ---- // URL ! $M = eregi_replace('([[:space:]]|^)(www)', '\\1http://\\2', $M); // no prefix (www.myurl.ext) ! $M = eregi_replace('([[:alpha:]]+)://([^[:space:]]*)([[:alnum:]#\?/&=])', '<a href="\\1://\\2\\3" target="_blank">\\1://\\2\\3</a>', $M); // e-mail addresses ! $M = eregi_replace('([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)', '<a href="mailto:\\1">\\1</a>', $M); // Smilies |