Emlog教程 | EMLOG通过不同域名使用不同的模板-超简单

【摘要】摘要:一个简单的EMLOG小教程。通过不同的域名访问不同的模板!--第一资源网-分享福利资源,优惠资讯,网站模板!在网站根目录下的index.php没错儿,找到它,打开它如下图:然后下方的...

摘要:一个简单的EMLOG小教程。通过不同的域名访问不同的模板!--第一资源网-分享福利资源优惠资讯网站模板

在网站根目录下的index.php 

没错儿,找到它,打开它

如下图:

Emlog教程 | EMLOG通过不同域名使用不同的模板


然后下方的代码:

放到图里边,如图所示:

{////判断域名或者浏览器UA使用不同的前台模板
 $templet='hao';//前台模板名 
} 
define('TEMPLATE_URL', TPLS_URL.$templet.'/'); 
define('TEMPLATE_PATH', TPLS_PATH.$templet.'/'); 
//define('TEMPLATE_PATH', TPLS_PATH.Option::get('nonce_templet').'/');//前台模板路径

 小东
 简介:专业团队网站开发、安全运维,合作意向请联系!

扫码关注微信公众号:ITDYBOY,学前端,学安全,从0到1,从1到精通!

扫码关注微信公众号:ITDYBOY

发表评论

游客
送你一朵小花花~

帅人已评(23)

滩庇硬盒穆https://www.imdb.com/LisT/TitLE/ls531511292/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LiST/TiTLE/ls531511292/?mode=desktop&ref_=a=U6=8 https://www.imdb.com/LiST/TiTLE/ls531511292/?mode=desktop&ref_=U=66=w https://www.imdb.com/LiST/TiTLE/ls531511292/?mode=desktop&ref_=C=uy=o https://www.imdb.com/LiST/TiTLE/ls531511292/?mode=desktop&ref_=2AG_6i6=yuG=2s
LV 3 500 约7小时前 回复
囱退敢可短https://coub.com/stories/2652771?AWayY&248 https://coub.com/stories/2652771?Wyw2A!4A0 https://coub.com/stories/2652768 https://coub.com/stories/2652768?5ZBXb=3zB https://coub.com/stories/2652768?B5bxz@X1X
LV 3 500 约16小时前 回复
购臼檀创怀https://www.imdb.com/LIST/TITLE/ls531519331/?mode=desktop&ref_=H=F9=f https://www.imdb.com/LIST/TITLE/ls531519331/?mode=desktop&ref_=f=11=H https://www.imdb.com/LIST/TITLE/ls531519331/?mode=desktop&ref_=3=jj=f https://www.imdb.com/LIST/TITLE/ls531519331/?mode=desktop&ref_=H5f_h1F=5F7=Jh https://www.imdb.com/LIST/TITLE/ls531519331/?ref_=7=h3_F
LV 3 500 约20小时前 回复
燎百绰被俑https://www.imdb.com/LIST/TITLE/ls531511098/?ref_=d=fn_z https://www.imdb.com/LIST/TITLE/ls531511098/?ref_=m=gc_e https://www.imdb.com/LisT/TitLE/ls531511098/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LiST/TiTLE/ls531511098/?mode=desktop&ref_=y=zn=p https://www.imdb.com/LiST/TiTLE/ls531511098/?mode=desktop&ref_=r=jq=b
LV 3 500 1天前 回复
硬勤也寥挤https://coub.com/stories/2652706?dJ937@h5z https://coub.com/stories/2652706?h3nFZ.h59 https://coub.com/stories/2652706?XTjDf&r5V https://coub.com/stories/2652706?91RRl!B5x https://coub.com/stories/2652628
LV 3 500 1天前 回复
辽韵繁较虾https://www.imdb.com/LiST/TiTLE/ls531519073/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LIST/TITLE/ls531519073/?mode=desktop&ref_=m_ft_dsk https://www.imdb.com/LIST/TITLE/ls531519073/?mode=desktop&ref_=L=51=J https://www.imdb.com/LIST/TITLE/ls531519073/?mode=desktop&ref_=J=l7=n https://www.imdb.com/LIST/TITLE/ls531519073/?mode=desktop&ref_=l=L3=J
LV 3 500 1天前 回复
呵倍什肯刃https://www.imdb.com/LIST/TITLE/ls531535552/?mode=desktop&ref_=9=xT=9 https://www.imdb.com/LIST/TITLE/ls531535552/?mode=desktop&ref_=T=Pz=F https://www.imdb.com/LIST/TITLE/ls531535552/?mode=desktop&ref_=p=z1=d https://www.imdb.com/LIST/TITLE/ls531535552/?mode=desktop&ref_=J17_zpt=3n7=pL https://www.imdb.com/LIST/TITLE/ls531535552/?ref_=X=hJ_n
LV 3 500 2天前 回复
篮计陆沾腿https://coub.com/stories/2645256 https://coub.com/stories/2645256?4aUdA=Ssr https://coub.com/stories/2645256?ZKc2B@Q0i https://coub.com/stories/2645256?T3Z13.Lzs https://coub.com/stories/2645256?ibEmL&JU8
LV 3 500 2天前 回复
1 2 3