英雄巴乔

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

2010年12月14日 #

摘要: 此方法是存入cookie,直接从cookie返回。以下为修改方法:共修改1个php文件,1个html模板文件,1个js文件。1. 根目录/images/js/login.js 查找$('#logined_username').html(username.value);在下面另起一行加入:$('#logined_userphoto').html(unescape(getcookie('userphoto'))); 查找 $('#logined_username').html(unescape(getcookie('username'))); 在下面另起一行加入: $('#logined_user 阅读全文
posted @ 2010-12-14 15:08 英雄巴乔 阅读(2212) 评论(0) 推荐(0)

摘要: !--{get $sql="select avatar from phpcms_member_info where userid=$_userid"}--{if $r[avatar]}?php if(!class_exists('attachment')){ require 'attachment.class.php';}$attachment = new attachment($mod);$avatar = $attachment-get($r['avatar'], 'filepath');$r['avatar'] = UPLOAD_URL.$avatar['filepath'];? 阅读全文
posted @ 2010-12-14 00:11 英雄巴乔 阅读(324) 评论(0) 推荐(0)