随笔 - 347  文章 - 1 评论 - 44 阅读 - 201万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

02 2013 档案
phpcms v9带limit调用的标签方法
摘要:phpcms V9的标签函数 不再像2008那样支持limit="0,5"这样的写法 这样就大大的阻碍了我们的调用 不知道是不是没有 还是我不知道 不管怎么样 先把我自己写的函数标签奉上来可谓是简单易用 前台 代码: {pc:content action="limit" type="lists" catid="54" thumb="" order="listorder DESC" step="3,5"} {loop $data $r} <li> 阅读全文
posted @ 2013-02-25 15:26 FreeSpider 阅读(509) 评论(0) 推荐(0) 编辑
phpcms v9 PC标签调用附表
摘要:{pc:content action="lists" moreinfo="1" catid="$catid" num="25" order="id DESC" page="$page"}{loop $data $r}<li><span class="rt">{date('Y-m-d H:i:s',$r[inputtime])}</span>·<a href="{$r[url]}& 阅读全文
posted @ 2013-02-25 15:25 FreeSpider 阅读(635) 评论(0) 推荐(0) 编辑
php防注入,表单提交值转义
摘要:在开发时,我们要注意防止sql注入,所以在对表单提交过来的值要做相应的处理,才可以把数据更新到数据库里php横扫千军函数。任何值都可以传过来转换function quotes($content) { //如果magic_quotes_gpc=Off,那么就开始处理 if (!get_magic_quotes_gpc()) { //判断$content是否为数组 if (is_array($content)) { //如果$content是数组,那么就处理它的每一个单无 ... 阅读全文
posted @ 2013-02-18 15:55 FreeSpider 阅读(1137) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示