Hola!
| Name | Pete Goldsmith |
| Location | Sydney, Australia |
| tavi @ sifnt.net | |
| Found Tavi | |
| Using Tavi | On a corporate intranet |
-
Change the UrlPtn? in lib/defaults.php to add the file: prefix as an allowable prefix:
$UrlPtn = "(http:|mailto:|https:|ftp:|gopher:|news:|file:)" .
"([^ \\/\"\']*\\/)*[^ \\t\\n\\/\"\']*[A-Za-z0-9\\/?=&~]";
I put the line into config.php, so as to provide for easy upgrades later
-
I modified parse/html.php and added target=_blank to the following section
function html_url($url, $text)
{
if($url == $text
&& preg_match('/(.jpe?g|.png|.gif|.bmp)$/i', $text))
{
return "<img src=\"$url\" alt=\"" . basename($url) . "\" />";
}
return "<a href=\"$url\" target=_blank>$text</a>";
}
-
Modified template/common.php and added <meta http-equiv="pragma" content="no-cache" /> in the file as follows;
<meta name="KEYWORDS" content="<?php print $MetaKeywords; ?>" />
<meta name="DESCRIPTION" content="<?php print $MetaDescription; ?>" />
<meta http-equiv="pragma" content="no-cache" />
<?php
if($args['norobots'])
{