導(dǎo)讀:DEDE技術(shù)DEDE技術(shù)織夢dedecms在啟用二級域名后 由于DEDEAjax不能跨域所以使用ajax返回登錄數(shù)據(jù)不能成功,對ajax跨域?qū)嵲谑钦也坏奖容^好的方法所以暫時采用以下方法夢織模板。
織夢dedecms在啟用二級域名后 由于DEDEAjax不能跨域所以使用ajax返回登錄數(shù)據(jù)不能成功,對ajax跨域?qū)嵲谑钦也坏奖容^好的方法所以暫時采用以下方法替代:
第一步,在member文件夾處建立一個php文件,名字為“ajax_index_loginsta_s.php”。
第二步,給這個文件中填寫的代碼為:
<?php
require_once(dirname(__FILE__)."/config.php");
AjaxHead();
if($myurl == '')
{
echo "document.write('<div id=_userlogin>');";
echo "document.write('<form name=userlogin action=".$GLOBALS['cfg_cmsurl']."/member/index_do.php method=POST>');";
echo "document.write('<input type=hidden name=fmdo value=login />');";
echo "document.write('<input type=hidden name=dopost value=login />');";
echo "document.write('<input type=hidden name=keeptime value=604800 />');";
echo "document.write('<div class=s1>用戶名</div><div class=s2><input type=text name=userid /></div> ');";
echo "document.write('<div class=s1>密碼</div><div class=s2><input name=pwd type=password /></div> ');";
echo "document.write('<div class=s1>驗證碼</div><div class=s2 id=s2><input name=vdcode type=text maxldede免費校板下戰(zhàn)ength=4 /></div>');";
echo "document.write('<div class=simg><img src=".$GLOBALS['cfg_cmsurl']."/include/vdimgck.php width=50 height=20 /></div><div class=s3><input type=submit value=登錄 /> </div>'dede模板堂;);";
echo "document.write('<div class=s1><a href=".$GLOBALS['cfg_cmsurl']."/member/resetpassword.php target=_blank>忘記密碼?</a> <a href=".$GLOBALS['cfg_cmsurl']."/member/index_do.php?fmdo=user&dopost=regnew target=_blank><font color=#FF0000>免費注冊</font></a></div>');";
echo 織夢后臺模板"document.write('</form></div>');";
exit('');
}
$uid = $cfg_ml->M_LoginID;
$face = $cfg_ml->fields['face'] == '' ? $GLOBALS['cfg_memberurl'].'/images/nopic.gif' : $cfg_ml->fields['face'];
echo "document.write('<div class=s5><b>".$cfg_ml->M_UserName."</b> 歡迎登陸XXXXXXXX!<a href=".$cfg_memberurl."/index.php>會員中心</a> | <a href=".$cfg_memberurl."/edit_fullinfo.php>帳戶</a> | <a href=".$myurl.">我的Blog</a> | <a href=".$cfg_memberurl."/index_do.php?fmdo=login&dopost=exit><font color=#FF0000>退出登陸</font></a></div>');";
?>
關(guān)鍵詞標簽: 標簽 域名 實際
聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-18 ,文章dedecms 跨域共享cookie的域名 實際方法,DEDE技術(shù)主要講述實際,標簽,域名網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_29051.html
為你推薦與dedecms 跨域共享cookie的域名 實際方法,DEDE技術(shù)相關(guān)的文章
網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
5000+合作客服
8年從業(yè)經(jīng)驗
150+覆蓋行業(yè)
主站蜘蛛池模板:
泾源县|
兴化市|
特克斯县|
怀柔区|
双桥区|
沙坪坝区|
古丈县|
乡城县|
张家界市|
泌阳县|
雅江县|
蓬溪县|
准格尔旗|
孝昌县|
淄博市|
教育|
罗田县|
阿图什市|
新源县|
汨罗市|
沧州市|
万安县|
格尔木市|
宣城市|
金昌市|
松原市|
汉寿县|
新乡县|
麟游县|
大同市|
集安市|
吉林市|
忻州市|
漳州市|
长汀县|
望奎县|
祁连县|
岳普湖县|
平果县|
电白县|
庆云县|
|