📄 autofilter.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: AutoFilter.java
package com.laoer.bbscs.sys;
// Referenced classes of package com.laoer.bbscs.sys:
// RegexFilter
public class AutoFilter extends RegexFilter
{
public AutoFilter(String source)
{
super(source);
String picurl = "pic/";
String abgcolor = "#000000";
String FontSize = "9";
String FontHeight = "9";
regex = "(\\[IMG\\])(http://.[^\\[]*)(\\[\\/IMG\\])";
rpStr = "<p><IMG SRC=\"$2\" border=0 onload=\"javascript:if(this.width>screen.width*.50)this.width=screen.width*.50\"></p>";
doFiltration();
regex = "(\\[URL\\])(.[^\\[]*)(\\[\\/URL\\])";
rpStr = "<A HREF=\"$2\" TARGET=_blank>$2</A>";
doFiltration();
regex = "(\\[URL=(.[^\\[]*)\\])(.[^\\[]*)(\\[\\/URL\\])";
rpStr = "<A HREF=\"$2\" TARGET=_blank>$3</A>";
doFiltration();
regex = "(\\[EMAIL\\])(.[^\\[]*)(\\[\\/EMAIL\\])";
rpStr = "<A HREF=\"mailto:$2\">$2</A>";
doFiltration();
regex = "(\\[EMAIL=(.[^\\[]*)\\])(.[^\\[]*)(\\[\\/EMAIL\\])";
rpStr = "<A HREF=\"mailto:$2\" TARGET=_blank>$3</A>";
doFiltration();
regex = "^(http://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "(http://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)$";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "[^>=\"](http://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "^(ftp://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "(ftp://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)$";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "[^>=\"](ftp://[A-Za-z0-9\\.\\/=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "^(rtsp://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "(rtsp://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)$";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "[^>=\"](rtsp://[A-Za-z0-9\\.\\/=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "^(mms://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "(mms://[A-Za-z0-9\\./=\\?%\\-&_~`@':+!]+)$";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "[^>=\"](mms://[A-Za-z0-9\\.\\/=\\?%\\-&_~`@':+!]+)";
rpStr = "<a target=_blank href=$1>$1</a>";
doFiltration();
regex = "(\\[HTML\\])(.[^\\[]*)(\\[\\/HTML\\])";
rpStr = "<table width='100%' border='0' cellspacing='0' cellpadding='6' bgcolor='" + abgcolor + "'><td><b>以下内容为程序代码:</b><br>$2</td></table>";
doFiltration();
regex = "(\\[code\\])(.[^\\[]*)(\\[\\/code\\])";
rpStr = "<table width='100%' border='0' cellspacing='0' cellpadding='6' bgcolor='" + abgcolor + "'><td><b>以下内容为程序代码:</b><br>$2</td></table>";
doFiltration();
regex = "(\\[color=(.[^\\[]*)\\])(.*)(\\[\\/color\\])";
rpStr = "<font color=$2>$3</font>";
doFiltration();
regex = "(\\[face=(.[^\\[]*)\\])(.[^\\[]*)(\\[\\/face\\])";
rpStr = "<font face=$2>$3</font>";
doFiltration();
regex = "(\\[align=(.[^\\[]*)\\])(.*)(\\[\\/align\\])";
rpStr = "<div align=$2>$3</div>";
doFiltration();
regex = "(\\[QUOTE\\])(.*)(\\[\\/QUOTE\\])";
rpStr = "<table cellpadding=0 cellspacing=0 border=0 WIDTH=94% bgcolor=#000000 align=center><tr><td><table width=100% cellpadding=5 cellspacing=1 border=0><TR><TD BGCOLOR='" + abgcolor + "'>$2</table></table><br>";
doFiltration();
regex = "\\[GLOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\\](.[^\\[]*)\\[\\/GLOW]";
rpStr = "<table width=$1 style=\"filter:glow(color=$2, strength=$3)\">$4</table>";
doFiltration();
regex = "\\[SHADOW=*([0-9]*),*(#*[a-z0-9]*),*([0-9]*)\\](.[^\\[]*)\\[\\/SHADOW]";
rpStr = "<table width=$1 style=\"filter:shadow(color=$2, strength=$3)\">$4</table>";
doFiltration();
regex = "(\\[i\\])(.*)(\\[\\/i\\])";
rpStr = "<i>$2</i>";
doFiltration();
regex = "(\\[u\\])(.*)(\\[\\/u\\])";
rpStr = "<u>$2</u>";
doFiltration();
regex = "(\\[b\\])(.*)(\\[\\/b\\])";
rpStr = "<b>$2</b>";
doFiltration();
regex = "(\\[size=1\\])(.*)(\\[\\/size\\])";
rpStr = "<font size=1>$2</font>";
doFiltration();
regex = "(\\[size=2\\])(.*)(\\[\\/size\\])";
rpStr = "<font size=2 >$2</font>";
doFiltration();
regex = "(\\[size=3\\])(.*)(\\[\\/size\\])";
rpStr = "<font size=3 >$2</font>";
doFiltration();
regex = "(\\[size=4\\])(.*)(\\[\\/size\\])";
rpStr = "<font size=4 >$2</font>";
doFiltration();
regex = "(\\[center\\])(.[^\\[]*)(\\[\\/center\\])";
rpStr = "<center>$2</center>";
doFiltration();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -