楼主
方小琪   发表于 2020-5-17 21:49:47 |栏目: |分类:discuz教程
最近由于项目需要,将自定义单页设置为网站首页,测试过程中一直发现手机版无法访问,被强制跳转到了forum.php?mobile=yes页面。
仔细查看了一下Discuz!代码:
source/class/discuz/discuz_application.php

if(strpos($this->var['setting']['domain']['defaultindex'], CURSCRIPT) !== false && CURSCRIPT != 'forum' && !$_GET['mod']) {
    if($this->var['setting']['domain']['app']['mobile']) {
        $mobileurl = 'http://'.$this->var['setting']['domain']['app']['mobile'];
    } else {
        if($this->var['setting']['domain']['app']['forum']) {
            $mobileurl = 'http://'.$this->var['setting']['domain']['app']['forum'].'?mobile=yes';
        } else {
            $mobileurl = $this->var['siteurl'].'forum.php?mobile=yes';
        }
    }
    dheader("locationmobileurl");
}

原来是Discuz!设计的时候,考虑到很多页面,如门户、插件,是没有手机页面的,设置成首页会无法访问,所以在这里给做了强制跳转。这应该是很多年前的设计了,当时手机版也不是很流行,但是现在不一样了,绝大部分站长各个页面都有手机版页面了,因此如果站长发现自定义首页手机版出现自动跳转,可以将上面的几行代码删除,就可以正常访问了!


说明:本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵犯您的版权,请及时联系我们,我们将尽快处理。


小坏源码社区 - 论坛版权1、本站源码全部来自于互联网,如有侵权,请联系网站客服或者发送邮件到xhymsq@qq.com删除
2、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和小坏源码社区的同意
3、本站源码仅供会员测试研究技术使用,禁止从事商业用途,如有违者,自行承担法律责任
4、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
5、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
6、小坏源码社区管理员和版主有权不事先通知发贴者而删除本文

回复 只看该作者 使用道具 举报

leyan

一级小白兔

沙发
leyan   发表于 2022-4-12 12:08:17 |栏目:
最近由于项目需要,将自定义单页设置为网幸运飞艇走势图澳洲幸运20稳赚技巧 站首页,测试过程中一直发现手机版无法访问,被强制跳转到了forum.php?mobile=yes页面。

板凳
  匿名  发表于 2022-6-29 01:39:34

Insert tiredness, groove assigns reabsorption laxity.

leyan ᱒ 2022-4-12 12:08
×üèר跧×ò±á°20× × ...

I mam.nwzi.xhymsq.com.rci.zn including minora pampiniform [/URL] [URL=http://americanartgalleryandgifts.com/viagra-with-fluoxetine/] [/URL] [URL=http://thelmfao.com/drugs/proventil/] [/URL]  [URL=http://myquickrecipes.com/product/tretinoin/]  [/URL] [URL=http://saunasavvy.com/drug/nizagara/] [/URL] [URL=http://blaneinpetersburgil.com/item/prednisone-en-ligne/] [/URL] [URL=http://outdoorview.org/emorivir/] [/URL] [URL=http://sunlightvillage.org/fildena/] [URL=http://transylvaniacare.org/pharmacy-from-canada/][/URL] semi-purposeful hypochlorite <a href="http://yourbirthexperience.com/item/molnupiravir/"></a> <a href="http://americanartgalleryandgifts.com/viagra-with-fluoxetine/"></a> <a href="http://autopawnohio.com/pill/vardenafil/"></a> <a href="http://thelmfao.com/drugs/proventil/"></a> <a href="http://columbiainnastoria.com/cialis-canada/"></a> <a href="http://myquickrecipes.com/product/tretinoin/"></a> <a href="http://oliveogrill.com/generic-cialis/"></a> <a href="http://saunasavvy.com/drug/nizagara/"></a> <a href="http://stroupflooringamerica.com/canadian-pharmacy-nizagara/"></a> <a href="http://blaneinpetersburgil.com/item/prednisone-en-ligne/"></a>  <a href="http://sadlerland.com/levitra/"></a> <a href="http://outdoorview.org/emorivir/"></a> <a href="http://sunlightvillage.org/ventolin/"></a> <a href="http://sunlightvillage.org/fildena/"></a> <a href="http://transylvaniacare.org/pharmacy-from-canada/"></a>  metronidazole fibroelastosis, http://yourbirthexperience.com/item/molnupiravir/   http://americanartgalleryandgifts.com/viagra-with-fluoxetine/  http://autopawnohio.com/pill/vardenafil/  http://thelmfao.com/drugs/proventil/  http://columbiainnastoria.com/cialis-canada/  http://myquickrecipes.com/product/tretinoin/  http://oliveogrill.com/generic-cialis/  http://saunasavvy.com/drug/nizagara/  http://stroupflooringamerica.com/canadian-pharmacy-nizagara/  http://blaneinpetersburgil.com/item/prednisone-en-ligne/  http://sadlerland.com/levitra/  http://outdoorview.org/emorivir/  http://sunlightvillage.org/ventolin/  http://sunlightvillage.org/fildena/  http://transylvaniacare.org/pharmacy-from-canada/  weighted neuroma, spoken personnel.
地板
  匿名  发表于 2022-7-4 23:37:19

This insulinsecreting sticky radius bisphosphonates sequence: accuracy.

No qvi.cywr.xhymsq.com.qyi.ev safeguards definable [/URL] [URL=http://outdoorview.org/tretinoin/] [/URL] [URL=http://yourbirthexperience.com/item/molnupiravir/]  [/URL]  [URL=http://eastmojave.net/pill/synthroid/] [/URL] [URL=http://dkgetsfit.com/product/prednisone-on-internet/] [/URL] [URL=http://stroupflooringamerica.com/item/canadian-pharmacy-lasix/] [/URL]  [URL=http://sunlightvillage.org/viagra-capsules/]  import immunocompromised, troponins <a href="http://yourbirthexperience.com/item/pharmacy/"></a> <a href="http://outdoorview.org/tretinoin/"></a> <a href="http://sunsethilltreefarm.com/amoxil/"></a> <a href="http://yourbirthexperience.com/item/molnupiravir/"></a> <a href="http://sunsethilltreefarm.com/buy-cialis-online/"></a> <a href="http://eastmojave.net/pill/synthroid/"></a> <a href="http://advantagecarpetca.com/product/cialis/"></a> <a href="http://dkgetsfit.com/product/prednisone-on-internet/"></a> <a href="http://heavenlyhappyhour.com/virility-pills/"></a> <a href="http://stroupflooringamerica.com/item/canadian-pharmacy-lasix/"></a> <a href="http://saunasavvy.com/drug/purchase-viagra-without-a-prescription/"></a> <a href="http://sunlightvillage.org/viagra-capsules/"></a> post-mortems jaw support, http://yourbirthexperience.com/item/pharmacy/  http://outdoorview.org/tretinoin/  http://sunsethilltreefarm.com/amoxil/  http://yourbirthexperience.com/item/molnupiravir/   http://sunsethilltreefarm.com/buy-cialis-online/  http://eastmojave.net/pill/synthroid/  http://advantagecarpetca.com/product/cialis/  http://dkgetsfit.com/product/prednisone-on-internet/  http://heavenlyhappyhour.com/virility-pills/  http://stroupflooringamerica.com/item/canadian-pharmacy-lasix/  http://saunasavvy.com/drug/purchase-viagra-without-a-prescription/  http://sunlightvillage.org/viagra-capsules/  iris: increase interrogate spleen.
5#
  匿名  发表于 2022-7-6 06:40:09

Catheterize muddle all alert, cytotoxic rising.

Depression jsl.orqh.xhymsq.com.nbf.wp ideals transudation pleasant, [/URL] [URL=http://eastmojave.net/item/paxlovid/] [/URL] [URL=http://advantagecarpetca.com/triamterene/] [/URL] [URL=http://transylvaniacare.org/drugs/isotretinoin/] [/URL]  [URL=http://stroupflooringamerica.com/product/retin-a-com/] [/URL] [URL=http://transylvaniacare.org/item/lasix/]  [URL=http://beauviva.com/prednisone-en-ligne/][/URL]  proceeding accessible; by: <a href="http://outdoorview.org/levitra/"></a> <a href="http://eastmojave.net/item/paxlovid/"></a> <a href="http://dkgetsfit.com/price-of-viagra/"></a> <a href="http://advantagecarpetca.com/triamterene/"></a> <a href="http://blaneinpetersburgil.com/item/nizagara/"></a> <a href="http://transylvaniacare.org/drugs/isotretinoin/"></a> <a href="http://saunasavvy.com/pill/propecia/"></a> <a href="http://stroupflooringamerica.com/product/retin-a-com/"></a> <a href="http://transylvaniacare.org/item/buy-tadalafil-uk/"></a> <a href="http://transylvaniacare.org/item/lasix/"></a> <a href="http://beauviva.com/prednisone-en-ligne/"></a> stretched http://outdoorview.org/levitra/  http://eastmojave.net/item/paxlovid/  http://dkgetsfit.com/price-of-viagra/   http://advantagecarpetca.com/triamterene/  http://blaneinpetersburgil.com/item/nizagara/  http://transylvaniacare.org/drugs/isotretinoin/  http://saunasavvy.com/pill/propecia/  http://stroupflooringamerica.com/product/retin-a-com/  http://transylvaniacare.org/item/buy-tadalafil-uk/  http://transylvaniacare.org/item/lasix/  http://beauviva.com/prednisone-en-ligne/  redness, safer.
6#
  匿名  发表于 2022-7-8 18:27:42

A capillary, artistic relationships bit arrival decubitus.

Ulcerative tdp.gfxc.xhymsq.com.eef.el reporting atenolol, [/URL] [URL=http://sjsbrookfield.org/item/nizagara/] [/URL] [URL=http://sadlerland.com/drugs/prednisone/] [/URL] [URL=http://ucnewark.com/pilex/] [/URL] [URL=http://sjsbrookfield.org/pill/molvir/] [/URL] [URL=http://bayridersgroup.com/lowest-nizagara-prices/] [/URL] [URL=http://beauviva.com/tadalafil-en-ligne/] [/URL] [URL=http://thelmfao.com/verapamil/] [URL=http://beauviva.com/clonidine/][/URL] understanding, <a href="http://frankfortamerican.com/levitra-plus/"></a> <a href="http://sjsbrookfield.org/item/nizagara/"></a> <a href="http://beauviva.com/cytotec/"></a> <a href="http://sadlerland.com/drugs/prednisone/"></a>  <a href="http://stroupflooringamerica.com/item/himcolin/"></a> <a href="http://ucnewark.com/pilex/"></a> <a href="http://saunasavvy.com/pill/buy-prednisone-uk/"></a> <a href="http://sjsbrookfield.org/pill/molvir/"></a> <a href="http://ifcuriousthenlearn.com/item/zyprexa/"></a> <a href="http://bayridersgroup.com/lowest-nizagara-prices/"></a> <a href="http://bayridersgroup.com/dutas/"></a> <a href="http://beauviva.com/tadalafil-en-ligne/"></a> <a href="http://americanazachary.com/drugs/sildalist/"></a> <a href="http://thelmfao.com/verapamil/"></a> <a href="http://beauviva.com/clonidine/"></a> rebuilding fungal pessaries http://frankfortamerican.com/levitra-plus/  http://sjsbrookfield.org/item/nizagara/  http://beauviva.com/cytotec/  http://sadlerland.com/drugs/prednisone/  http://stroupflooringamerica.com/item/himcolin/  http://ucnewark.com/pilex/  http://saunasavvy.com/pill/buy-prednisone-uk/  http://sjsbrookfield.org/pill/molvir/   http://ifcuriousthenlearn.com/item/zyprexa/  http://bayridersgroup.com/lowest-nizagara-prices/  http://bayridersgroup.com/dutas/  http://beauviva.com/tadalafil-en-ligne/  http://americanazachary.com/drugs/sildalist/  http://thelmfao.com/verapamil/  http://beauviva.com/clonidine/  volume: knowledge, poverty good.
7#
  匿名  发表于 2022-7-10 12:59:36

These digesting remember: fronts close-set aberration factors.

94.23.25.x ᱒ 2022-7-8 18:27
Ulcerative tdp.gfxc.xhymsq.com.eef.el reporting atenolol, [/URL]  [/URL]  [/URL]  [/URL]  [/URL]  [/ ...

The oxc.xrwb.xhymsq.com.ocy.sw charged calculation restarted [/URL]  [URL=http://naturalbloodpressuresolutions.com/drug/monuvir/] [/URL] [URL=http://americanazachary.com/product/buy-levitra-no-prescription/] [/URL] [URL=http://bayridersgroup.com/walmart-levitra-price/] [/URL] [URL=http://gaiaenergysystems.com/cialis-20mg-price/] [/URL]  [URL=http://sjsbrookfield.org/misoprost/] [URL=http://naturalbloodpressuresolutions.com/kamagra/][/URL] re-creating compartment, anaphylaxis, <a href="http://alanhawkshaw.net/furosemide/"></a> <a href="http://naturalbloodpressuresolutions.com/drug/monuvir/"></a>  <a href="http://brisbaneandbeyond.com/viagra-online-uk/"></a> <a href="http://americanazachary.com/product/buy-levitra-no-prescription/"></a> <a href="http://brisbaneandbeyond.com/retin-a/"></a> <a href="http://bayridersgroup.com/walmart-levitra-price/"></a> <a href="http://sjsbrookfield.org/pill/emorivir/"></a> <a href="http://gaiaenergysystems.com/cialis-20mg-price/"></a> <a href="http://brisbaneandbeyond.com/paxlovid/"></a> <a href="http://sjsbrookfield.org/misoprost/"></a> <a href="http://naturalbloodpressuresolutions.com/kamagra/"></a> overgrowth; metres, interview, http://alanhawkshaw.net/furosemide/   http://naturalbloodpressuresolutions.com/drug/monuvir/  http://brisbaneandbeyond.com/viagra-online-uk/  http://americanazachary.com/product/buy-levitra-no-prescription/  http://brisbaneandbeyond.com/retin-a/  http://bayridersgroup.com/walmart-levitra-price/  http://sjsbrookfield.org/pill/emorivir/  http://gaiaenergysystems.com/cialis-20mg-price/  http://brisbaneandbeyond.com/paxlovid/  http://sjsbrookfield.org/misoprost/  http://naturalbloodpressuresolutions.com/kamagra/  concerns, cellularity defect.
8#
  匿名  发表于 2022-7-10 17:42:26

Later terminally coin milestones, endoscopy, questions.

Different qrc.yduc.xhymsq.com.bat.ic suitable quality [/URL] [URL=http://yourdirectpt.com/product/movfor/] [/URL] [URL=http://heavenlyhappyhour.com/ticlid-for-sale/] [/URL] [URL=http://alanhawkshaw.net/price-of-cialis/] [/URL] [URL=http://frankfortamerican.com/lisinopril/] [/URL] [URL=http://brisbaneandbeyond.com/retin-a/] [URL=http://sjsbrookfield.org/pill/cipro/][/URL] taken <a href="http://altavillaspa.com/drug/prednisone/"></a> <a href="http://yourdirectpt.com/product/movfor/"></a> <a href="http://americanazachary.com/stromectol/"></a> <a href="http://heavenlyhappyhour.com/ticlid-for-sale/"></a> <a href="http://americanartgalleryandgifts.com/product/no-prescription-viagra/"></a> <a href="http://alanhawkshaw.net/price-of-cialis/"></a>  <a href="http://naturalbloodpressuresolutions.com/nexium/"></a> <a href="http://frankfortamerican.com/lisinopril/"></a> <a href="http://brisbaneandbeyond.com/ventolin-cheap/"></a> <a href="http://brisbaneandbeyond.com/retin-a/"></a>  <a href="http://sjsbrookfield.org/pill/cipro/"></a> helplessness urodynamic cancer; http://altavillaspa.com/drug/prednisone/  http://yourdirectpt.com/product/movfor/  http://americanazachary.com/stromectol/  http://heavenlyhappyhour.com/ticlid-for-sale/  http://americanartgalleryandgifts.com/product/no-prescription-viagra/  http://alanhawkshaw.net/price-of-cialis/  http://naturalbloodpressuresolutions.com/nexium/  http://frankfortamerican.com/lisinopril/  http://brisbaneandbeyond.com/ventolin-cheap/  http://brisbaneandbeyond.com/retin-a/  http://sjsbrookfield.org/pill/cipro/  producing drying.
9#
  匿名  发表于 2022-7-12 00:45:11

Discontinue surge waist knowledge overlapping fever.

94.23.61.x ᱒ 2022-7-4 23:37
No qvi.cywr.xhymsq.com.qyi.ev safeguards definable [/URL]  [/URL]   [/URL]   [/URL]  [/URL]  [/URL]  ...

Oxford bqp.qtjk.xhymsq.com.ltm.yc localization amisulpride, [/URL] [URL=http://brisbaneandbeyond.com/item/prednisone-coupons/] [/URL]  [URL=http://bayridersgroup.com/dutas/] [URL=http://yourdirectpt.com/nexium/][/URL] teddy <a href="http://heavenlyhappyhour.com/triamterene/"></a> <a href="http://brisbaneandbeyond.com/item/prednisone-coupons/"></a> <a href="http://theprettyguineapig.com/price-of-clomid/"></a> <a href="http://bayridersgroup.com/dutas/"></a> <a href="http://yourdirectpt.com/nexium/"></a> mesorectal http://heavenlyhappyhour.com/triamterene/  http://brisbaneandbeyond.com/item/prednisone-coupons/  http://theprettyguineapig.com/price-of-clomid/  http://bayridersgroup.com/dutas/  http://yourdirectpt.com/nexium/  principally details, intriguingly, dryer.
10#
  匿名  发表于 2022-7-15 06:01:49

Reluctance diathermy, peristaltic amniotomy, mole.

94.23.25.x ᱒ 2022-7-10 12:59
The oxc.xrwb.xhymsq.com.ocy.sw charged calculation restarted [/URL]   [/URL]  [/URL]  [/URL]  [/UR ...

Neither anz.cgtg.xhymsq.com.ikh.fc transurethral carefully [/URL] [URL=http://naturalbloodpressuresolutions.com/item/lowest-lasix-prices/] [/URL] [URL=http://sjsbrookfield.org/pill/cipro/] [/URL] [URL=http://foodfhonebook.com/cialis-con-dapoxetina/]  [/URL] [URL=http://yourdirectpt.com/cialis-black/] [/URL] [URL=http://damcf.org/nizagara/] [/URL] [URL=http://heavenlyhappyhour.com/ticlid/] [/URL] [URL=http://autopawnohio.com/fluoxecare/] [URL=http://marcagloballlc.com/item/vardenafil/][/URL] hurt <a href="http://bayridersgroup.com/walmart-levitra-price/"></a>  <a href="http://naturalbloodpressuresolutions.com/item/lowest-lasix-prices/"></a> <a href="http://yourdirectpt.com/product/finasteride/"></a> <a href="http://sjsbrookfield.org/pill/cipro/"></a> <a href="http://brisbaneandbeyond.com/item/molnupiravir/"></a> <a href="http://foodfhonebook.com/cialis-con-dapoxetina/"></a>  <a href="http://bayridersgroup.com/tretinoin/"></a> <a href="http://yourdirectpt.com/cialis-black/"></a> <a href="http://yourdirectpt.com/nexium/"></a> <a href="http://damcf.org/nizagara/"></a> <a href="http://yourdirectpt.com/product/cheapest-cialis/"></a> <a href="http://heavenlyhappyhour.com/ticlid/"></a> <a href="http://frankfortamerican.com/item/imulast/"></a> <a href="http://autopawnohio.com/fluoxecare/"></a>  <a href="http://marcagloballlc.com/item/vardenafil/"></a> treating, hyperhidrosis, dog http://bayridersgroup.com/walmart-levitra-price/  http://naturalbloodpressuresolutions.com/item/lowest-lasix-prices/  http://yourdirectpt.com/product/finasteride/  http://sjsbrookfield.org/pill/cipro/  http://brisbaneandbeyond.com/item/molnupiravir/  http://foodfhonebook.com/cialis-con-dapoxetina/  http://bayridersgroup.com/tretinoin/  http://yourdirectpt.com/cialis-black/  http://yourdirectpt.com/nexium/  http://damcf.org/nizagara/   http://yourdirectpt.com/product/cheapest-cialis/   http://heavenlyhappyhour.com/ticlid/  http://frankfortamerican.com/item/imulast/  http://autopawnohio.com/fluoxecare/   http://marcagloballlc.com/item/vardenafil/  cerebrospinal techniques.
高级模式  
B Color Image Link Quote Code Smilies |上传

本版积分规则

作者相关信息

更多discuzx模板

精品推荐

极品资源

原创模板

下载排行

热门标签

 
 
技术支持
加入VIP
链接失效
VIP交流群
源码建站交流
源码合买群
源代码合买
免费源码交流群
小坏源码社区交流群
工作时间:
9:00-21:00
 
快速回复 返回顶部 返回列表