Discuz function_core 常用函数解析,有需要的朋友可以参考下。 Discuz!常用函数解析 - <?php
-
- /**
- * [Discuz!] (C)2001-2099 Comsenz Inc.
- * This is NOT a freeware, use is subject to license terms
- *
- * $Id: function_core.php 34523 2014-05-15 04:22:29Z nemohou $
- */
-
- if(!defined('IN_DISCUZ')) {
- exit('Access Denied');
- }
-
- define('DISCUZ_CORE_FUNCTION', true);
-
- /**
- * like url encode, but can encode full url, not only the parms
- * this function to encode URLs according to RFC 3986(exclude char ',(,) )
- * @param type $url
- * @return type
- */
- function durlencode($url) {
- static $fix = array('%21', '%2A','%3B', '%3A', '%40', '%26', '%3D', '%2B', '%24', '%2C', '%2F', '%3F', '%25', '%23', '%5B', '%5D');
- static $replacements = array('!', '*', ';', ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
- return str_replace($fix, $replacements, urlencode($url));
- }
复制代码更多可下载附件查看:
3 ]4 Q, ^* w* u) F. A6 O
【魔趣吧资源下载指南】--默认解压密码:www.moqu8.com
1,如有异常请按 F5 刷新本页面!
【资源维权反馈】
2,首发及精品资源受到保护,扣除趣币!趣币可通过分享资源免费获得!懒人也可选择充值!
|