Zeile 130 | Zeile 130 |
---|
{ global $lang; $message = preg_replace('#^/me (.*)$#im', "<span style=\"color: red;\">* $username \\1</span>", $message);
|
{ global $lang; $message = preg_replace('#^/me (.*)$#im', "<span style=\"color: red;\">* $username \\1</span>", $message);
|
| $username = str_replace("'", "\\'", $username);
|
$message = preg_replace('#^/slap (.*)#iem', "'<span style=\"color: red;\">* $username $lang->slaps '.str_replace('<br />', '', '\\1').' $lang->with_trout</span><br />'", $message); return $message; }
| $message = preg_replace('#^/slap (.*)#iem', "'<span style=\"color: red;\">* $username $lang->slaps '.str_replace('<br />', '', '\\1').' $lang->with_trout</span><br />'", $message); return $message; }
|
Zeile 203 | Zeile 204 |
---|
function doshorturl($url, $name="") {
|
function doshorturl($url, $name="") {
|
$fullurl = $url;
| |
// attempt to make a bit of sense out of their url if they dont type it properly
|
// attempt to make a bit of sense out of their url if they dont type it properly
|
if(strpos($url, "www.") === 0)
| if(!preg_match("#[a-z0-9]+://#i", $url))
|
{
|
{
|
$fullurl = "http://".$fullurl; } if(strpos($url, "ftp.") === 0) { $fullurl = "ftp://".$fullurl;
| $url = "http://".$url;
|
}
|
}
|
if(strpos($fullurl, "://") === false) { $fullurl = "http://".$fullurl; }
| $fullurl = $url;
|
if(!$name) { $name = $url;
| if(!$name) { $name = $url;
|