$convert_patterns[] = "/([\w]+):\/\/([a-z0-9\-\.]+[a-z]{2,4}([$url_chars$url_chars_within]*[$url_chars])?)/ie";
$convert_replaces[] = "rcmail_str_replacement('<a href=\"\\1://\\2\" target=\"_blank\">\\1://\\2</a>', \$replace_strings)";
$convert_patterns[] = "/([^\/:]|\s)(www\.)([a-z0-9\-]{2,}[a-z]{2,4}([$url_chars$url_chars_within]*[$url_chars])?)/ie";
$convert_replaces[] = "rcmail_str_replacement('\\1<a href=\"[url]http://\\2\\3\"[/url] target=\"_blank\">\\2\\3</a>', \$replace_strings)";
Replace:$convert_patterns[] = "/([\w]+):\/\/([a-z0-9\-\.]+[a-z]{2,4}([$url_chars$url_chars_within]*[$url_chars])?)/ie";
$convert_replaces[] = "rcmail_str_replacement('\\1://\\2', \$replace_strings)";
$convert_patterns[] = "/([^\/:]|\s)(www\.)([a-z0-9\-]{2,}[a-z]{2,4}([$url_chars$url_chars_within]*[$url_chars])?)/ie";
$convert_replaces[] = "rcmail_str_replacement('\\1\\2\\3', \$replace_strings)";
function tpl ($template)
{
if (file_exists ('tpl/' . $template . '.html'))
{
include 'tpl/' . $template . '.html';
}
}
function logfile ()
{
global $link_url;
global $config;
if ($config['log'] == 1)
{
$fp = fopen ('log/logfile.txt', 'a');
fwrite($fp, "$link_url");
fwrite($fp, "\n");
fclose ($fp);
}
}
$config['prcl'] = 'http';
$config['time'] = 0;
$config['log'] = 1;
$link_url = urldecode($_SERVER['QUERY_STRING']);
if ($link_url != '')
{
/* Not nessesary because roundcube change the links itselve)
if (substr($link_url, 0, 7)!='[url]http://'[/url]) || substr($link_url, 0, 8)!='[url]https://'[/url] || substr($link_url, 0, 6)!='[url]ftp://'[/url]
{
$link_url = $config['prcl'] . '://' . $link_url;
}
*/
$link_head = $link_url;
$link_time = $config['time'];
logfile ();
tpl ('page_redirect');
exit ();
}
tpl ('page');
exit ();
?>
deref/tpl/page_redirect.html
global $link_head;
global $link_time;
?>
[/url]
Willkommen[/url] bei RoundCube Webmail
Weiterleitung
[/url]
; URL==$link_head?>">

Bitte warte =$link_time?> Sekunden
Umleitung auf: ">=$link_head?>
SetEnvIfNoCase Referer "^https?://domain.tld/" ref //will not work, because ssl don't reffer the source page
SetEnvIfNoCase Referer "^http://(www.)?domain.tld/" ref
Order Deny,Allow
Deny from all
Allow from env=ref
Quote from: igor why all this?
to Protect userdetails (linke e-mail-nr and so on) from other webmasters (on destinationpages)