Please feel free to grab the update to V2.05 (see top post) for Rockingham support
Warning: unpack(): Type i: not enough input, need 4, have 0 in /mnt/storage/www/mpres/includes/functions.php on line 482
Warning: Invalid argument supplied for foreach() in /mnt/storage/www/mpres/includes/functions.php on line 487
Warning: Cannot modify header information - headers already sent by (output started at /mnt/storage/www/mpres/includes/functions.php:487) in /mnt/storage/www/mpres/tpl/header.tpl.php on line 12
RewriteEngine On
RewriteCond %{HTTP_HOST} ^tulokset.srtfinland.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.tulokset.srtfinland.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://tulokset.srtfinland.com/$1 [R=301,L]
<?php
### get colored names for html-output ###
#function namecolored($name) {
# return stripslashes(preg_replace("/(\^([0-9]))+([^\^]*((\^\^)+[^\^]*)*)/e",'"<span style=\"color:".getColorCode($2).";\">$3</span>"',htmlspecialchars($name)));
#}
function namecolored($name) {
return stripslashes(preg_replace("/(\^([0-9]))+([^\^]*((\^\^)+[^\^]*)*)/",'$3',htmlspecialchars($name)));
}
#function namecolored($name) {
# return stripslashes(preg_replace("/\^([0-9])(.[^\^]*)/e",'"<span style=\"color:".getColorCode($1).";\">$2</span>"',htmlspecialchars($name)));
#}
?>
<?php
### get colored names for html-output ###
function namecolored($name) {
return stripslashes(preg_replace_callback("/(\^([0-9]))+([^\^]*((\^\^)+[^\^]*)*)/",function($m) {return '<span style="color:'.getColorCode($m[2]).';">'.$m[3].'</span>';},htmlspecialchars($name)));
}
?>