摘要: 大家都知道PHP中输出时间和日期可以用 date("Y-m-d H:i:s",时间戳) , 但是在smarty模板中,$time|date_format:'%Y-%m-%d %H:%M:%S', 这个让我找了很久。原来 在smarty中,分钟 不是用i ,使用M 。留着做记号。 阅读全文
posted @ 2014-08-25 11:09 Kyee 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1、用户登录discuz,通过logging.php文件中的函数uc_user_login对post过来的数据进行验证,也就是对username和password进行验证。2、如果验证成功,将调用位于uc_client下client.php文件中的函数uc_user_synlogin,在这个函数中调... 阅读全文
posted @ 2014-08-25 10:19 Kyee 阅读(813) 评论(0) 推荐(0) 编辑
摘要: <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.baidu.com"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RET... 阅读全文
posted @ 2014-08-25 10:16 Kyee 阅读(127) 评论(0) 推荐(0) 编辑