summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 19d23c3)
raw | patch | inline | side by side (parent: 19d23c3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 11:18:28 +0000 (11:18 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 11:18:28 +0000 (11:18 +0000) |
include/functions_helpviewer.inc | patch | blob | history |
index e37e3ae5a65ed19614a6f5be8bac69b6f19d8eaa..ee03d28c92d42c264d2913576412627506755922 100644 (file)
/*Converts the all links to specified path, is needed to get simple navigation */
function linkwrapper($str,$link)
{
-// $str = preg_replace("'<HREF.*>'","href=\"".$link."?pg=",$str);
- $str=str_replace("HREF=\"","href=\"".$link."?pg=",$str);
+ $str = preg_replace("/HREF=\"http/i","target=\"_blank\" href=\"http",$str);
+ $str = preg_replace("/HREF=\"/","href=\"".$link."?pg=",$str);
+// $str=str_replace("HREF=\"","href=\"".$link."?pg=",$str);
return($str);
}