博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年7月22日

摘要: preg_replace($parrent, $replacements, $subject); 其中 $parrent 中应该以“/”, "#" 作为分隔符。 $str = "1234567890"; echo $str; echo "<br>"; $s = preg_replace("#((?< 阅读全文

posted @ 2017-07-22 09:52 ZT无风 阅读(251) 评论(0) 推荐(0) 编辑

2017年5月6日

摘要: //发出301头部 header('HTTP/1.1 301 Moved Permanently'); //跳转到带www的网址 $re_url = 'http://www.XXX.com/article-index-cid-7-id-'.str_replace("id=","",strstr($t 阅读全文

posted @ 2017-05-06 15:49 ZT无风 阅读(188) 评论(0) 推荐(0) 编辑

2017年4月22日

摘要: 类是我们对一组对象的描述,是属性和方法的集合。 一个类的设计重要的是能充分展示最重要的属性和方法,并且能够与其他事物区分。 类与对象的关系类似一种服务和被服务,加工与被加工的关系。 类是属性(阴)和方法(阳)的集合。 本:对象在底层实现是采用“属性数组+方法数组”。 属性数组,类指针:类属性,静态属 阅读全文

posted @ 2017-04-22 17:28 ZT无风 阅读(82) 评论(0) 推荐(0) 编辑

2017年4月19日

摘要: #pics { background:url(../images/W3CfunsLogo.png) no-repeat; /*以下为IE6设置PNG透明代码*/ _background:none; _filter:progid:DXImageTransform.Microsoft.AlphaImag 阅读全文

posted @ 2017-04-19 11:50 ZT无风 阅读(116) 评论(0) 推荐(0) 编辑

摘要: 2016-7-5:面包屑导航 ————typelink.class.php 涉及函数:function GetPositionLink($islink=true); function LogicGetPosition($id,$islink); 2016-7-15: 分页样式修改 ———— arc. 阅读全文

posted @ 2017-04-19 11:46 ZT无风 阅读(88) 评论(0) 推荐(0) 编辑

摘要: [field:pubdate runphp='yes'] $a="";$b=""; $c=strftime("%m/%d","@me"); $ntime = time(); $oneday = 3600 * 24; if(($ntime - @me)<$oneday) @me = $a.$c.$b; 阅读全文

posted @ 2017-04-19 11:42 ZT无风 阅读(110) 评论(0) 推荐(0) 编辑

摘要: 修改:include/taglib/arclist.lib.php中295行及296行: if($CrossID=='') $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).')'; else $orwheres[] = ' arc.typeid 阅读全文

posted @ 2017-04-19 11:41 ZT无风 阅读(311) 评论(0) 推荐(0) 编辑

摘要: {arclist typeid='' type = 'image'} <src = '[field:picname/]' alt='[field:title/]'>{/arclist} 阅读全文

posted @ 2017-04-19 11:39 ZT无风 阅读(120) 评论(0) 推荐(0) 编辑

摘要: DEDE 系统后台自动添加锚文本规则是全匹配,有些版本是按关键词标签来匹配的。只要你在文档关键词中添加了的关键词都会在文章中添加,这样有些瑕疵。例如 “苹果” 与 “苹果电脑“ 是包含关系。将会嵌套地添加锚文本。还有就是不能体现锚文本多样化。 下面是添加这两个功能的方法。 关键词添加: ① 数据库 阅读全文

posted @ 2017-04-19 11:38 ZT无风 阅读(328) 评论(0) 推荐(0) 编辑

摘要: dede数据库类使用方法 $dsql dedecms的数据库操作类,非常实用,在二次开发中尤其重要,这个数据库操作类说明算是奉献给大家的小礼物了。 引入common.inc.php文件 1 require_once (dirname(__FILE__) . "/include/common.inc. 阅读全文

posted @ 2017-04-19 11:36 ZT无风 阅读(562) 评论(0) 推荐(0) 编辑