方小琪 发表于 2020-5-17 21:49:47

Discuz!教程之当插件、门户或自定义页面设置成首页时手机版访问跳转到forum.php?mo...

最近由于项目需要,将自定义单页设置为网站首页,测试过程中一直发现手机版无法访问,被强制跳转到了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("location:$mobileurl");
}

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


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 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 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.

发表于 2022-7-6 06:40:09

Catheterize muddle all alert, cytotoxic rising.

Depression jsl.orqh.xhymsq.com.nbf.wp ideals transudation pleasant, 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.

发表于 2022-7-8 18:27:42

A capillary, artistic relationships bit arrival decubitus.

Ulcerative tdp.gfxc.xhymsq.com.eef.el reporting atenolol, 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.

发表于 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, [/ ...

The oxc.xrwb.xhymsq.com.ocy.sw charged calculation restarted 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.

发表于 2022-7-10 17:42:26

Later terminally coin milestones, endoscopy, questions.

Different qrc.yduc.xhymsq.com.bat.ic suitable quality 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.

发表于 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       ...

Oxford bqp.qtjk.xhymsq.com.ltm.yc localization amisulpride, 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.

发表于 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    

Neither anz.cgtg.xhymsq.com.ikh.fc transurethral carefully 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.
页: [1] 2 3
查看完整版本: Discuz!教程之当插件、门户或自定义页面设置成首页时手机版访问跳转到forum.php?mo...