织梦dedecms在启用二级域名后 由于DEDEAjax不能跨域所以使用ajax返回登录数据不能成功,对ajax跨域实在是找不到比较好的方法所以暂时采用以下方法替代: 第一步,在member文件夹处建立一个php文件,名字为“ajax_index_loginsta_s.php”。 第二步,给这个文件中填写的代码为: require_once(dirname(__FILE__)."/config.php"); AjaxHead(); if($myurl == '') { echo "document.write('');"; echo "document.write('');"; echo "document.write('[i,');"; echo "document.write('[i,');"; echo "document.write('[i,');"; echo "document.write('用户名[i, ');"; echo "document.write('密码[i, ');"; echo "document.write('验证码[i,');"; echo "document.write(' [img][/img] [i, ');"; echo "document.write('[url=,忘记密码?[/url] [url=, [color=,免费注册 [/url]');"; echo "document.write('');"; exit(''); } $uid = $cfg_ml->M_LoginID; $face = $cfg_ml->fields['face', == '' ? $GLOBALS['cfg_memberurl',.'/images/nopic.gif' : $cfg_ml->fields['face',; echo "document.write('".$cfg_ml->M_UserName." 欢迎登陆XXXXXXXX![url=,会员中心[/url] ...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|