Code:
$text = preg_replace('#(?<![">])((http|ftp)s?://[^<>\s]+)#i', '<a href="\\0" target="_blank">\\0</a>', $text );
Thanks
$text = preg_replace('#(?<![">])((http|ftp)s?://[^<>\s]+)#i', '<a href="\\0" target="_blank">\\0</a>', $text );
function make_clickable_urls($text) {
$text = preg_replace("/(?<!<a href=\")((http|ftp)+(s)?:\/\/[^<>\s]+)/i", "<a href=\"\\0\" target=\"_blank\">\\0</a>", $text );
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
<?php
function fill_online() {
global $USER, GET_CONFIG;
$query = "SELECT * FROM online WHERE `session_id` = '" . session_id() . "'";
$result = mysql_query( $query );
$ip = $_SERVER['REMOTE_ADDR'];
$page = $_SERVER['REQUEST_URI'];
$browser = $_SERVER['HTTP_USER_AGENT'];
if( $result &&
$a = mysql_query("INSERT INTO online(session_id,odate) VALUES('$sess','NOW()')");
@mysql_free_result($a);
Leave a comment: