X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Fmodifier.preview.php;fp=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Fmodifier.preview.php;h=0ab2c373d809371e473e9f6fc0b41a02aff410a2;hb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;hp=0000000000000000000000000000000000000000;hpb=dcee763368a1e3f380d07320a5254d91a09304e6;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/modifier.preview.php b/wwwroot/inc/smarty/node_methodz/modifier.preview.php new file mode 100644 index 0000000..0ab2c37 --- /dev/null +++ b/wwwroot/inc/smarty/node_methodz/modifier.preview.php @@ -0,0 +1,35 @@ + $error "; + return false; + } + + $node_content = EregI_Replace("((( )|(\n)|(^))+)(http://|ftp://|https://)([[:alnum:]][^,[:space:]]*)","\\2\\6\\7",$node_content); + $node_content=strip_tags($node_content,'

'); + $node_content=str_replace("\n","
",$node_content); + return $node_content; + +} + +/* vim: set expandtab: */ + +?>