php,处理,ubb,函数,php,Ubb,代码,精华,程序设计,林建,炫,飘枫,设计室,made,陆丰,2007-03
php教程-php手册
php Ubb代码精华<!–?php
/*
程序设计: 林建炫(飘枫设计室)
made in 陆丰 by 2007-03-07 中午
QQ: 5818500
Email: linzhenxuan@163.com
如果你使用、修改请保留该信息!
功能: Ubb类
优点: 比普通ubb多了快速Ubb配对相应的html问题。
*/
Class Cls_Ubb
{
var $type=”;
Function _htm($string)
{
if(!$string){return “”;}
if(ereg(“(.+)*“,$string))
{
$string = eregi_replace(“<","<",$string);
$string = eregi_replace(“>”,”>”,$string);
}
if(eregi(“[(/*b)]”,$string)){$this->type.=”1,”;}
if(eregi(“[(/*i)]”,$string)){$this->type.=”2,”;}
if(eregi(“[(/*u)]”,$string)){$this->type.=”3,”;}
if(eregi(“[align=([a-zA-Z]*)]”,$string)){$this->type.=”4,”;}
if(eregi(“[fly](.+)*[/fly]”,$string)){$this->type.=”5,”;}
if(eregi(“[move](.+)*[/move]”,$string)){$this->type.=”6,”;}
if(eregi(“[light](.+)*[/light]”,$string)){$this->type.=”7,”;}
if(eregi(“[SHADOW=([0-9]{1,3}),([a-zA-Z]*),([0-9]{1,})](.+)*[/shadow]”,$string)){$this->type.=”8,”;}
if(eregi(“[url=(.+)](.+)[/url]”,$string)){$this->type.=”9,”;}
if(eregi(“[email]([a-zA-Z0-9]{1,}@([a-zA-Z0-9]{1,}.[a-zA-Z0-9]{1,})*)[/email]”,$string)){$this->type.=”10,”;}
if(eregi(“[em([0-9]{1,})]”,$string)){$this->type.=”11,”;}
if(eregi(“[img](.+)*[/img]”,$string)){$this->type.=”12,”;}
if(eregi(“[flash=*([0-9]*),*([0-9]*)](.+)*[/flash]”,$string)){$this->type.=”13,”;}
if(eregi(“[mp=*([0-9]{1,3}),([0-9]{1,3})](.+)*[/mp]”,$string)){$this->type.=”14,”;}
if(eregi(“[rm=([0-9]{1,3}),([0-9]{1,3})](.+)*[/rm]”,$string)){$this->type.=”15,”;}
if(eregi(“[sound](.+)*[/sound]”,$string)){$this->type.=”16,”;}
if(eregi(“[code](.+)*[/code]”,$string)){$this->type.=”17,”;}
if(eregi(“[sup](.+)*[/sup]”,$string)){$this->type.=”18,”;}
if(eregi(“[sub](.+)*[/sub]”,$string)){$this->type.=”19,”;}
if(eregi(“[color=(.+)*](.+)*[/color]”,$string)){$this->type.=”20,”;}
if(eregi(“[size=([0-9]{1})](.+)*[/size]”,$string)){$this->type.=”21,”;}
if($this->type){$this->type=substr($this->type,0,(strlen($this->type)-1));}
return $string;
}
java 过滤器源码,vscode经典,ubuntu 分区权限,xalan tomcat,sqlite查询大小,阿里云服务器安装系统,抛物线插件 js,mui前端开发框架,python爬虫 503,php博客系统开发教程,顺时seo优化,asp.net中网站访问量统计方法代码,网页子页菜单,慧生活 模板,dedecms 单页面文章调用,家庭财务管理系统数据库,在线程序评判系统lzw
?>淘宝商城系统源码,vscode引用关系图,ubuntu 自建 git,tomcat 苹果 安装,安卓开发数据存sqlite,爬虫数据只展示不盈利行吗,php对象类型,惠州seo服务工具,php免费购物网站源码,网页搜索插件,uehtml图片素材dz模板lzw