好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

修改emlog后台登录路径-含恢复导航方法(亲测)

网络是一个复杂的世界,每个站长还是要学会保护自己。

emlog的默认后台路径是admin目录,非常赤裸的暴露了重要的信息。

修改默认后台路径拢共分三步:

第一步、把文件夹admin改成你想要的的名字,例如cantseeme之类的。

第二步、打开admin/globals.php这个文件,现在可能是cantseeme/globals.php了^_^

修改第9行代码:

define('TEMPLATE_PATH', EMLOG_ROOT.'/admin/views/');

把其中的admin改成你新改的名称cantseeme:

define('TEMPLATE_PATH', EMLOG_ROOT.'/cantseeme/views/');

第三步、刷新后台登录后在导航设置里将 “登录” 隐藏,否则点击会出现404错误多烦人啊~


解决一些后遗症:

1. 改变后台路径后,微语的表情图片无法显示,解决方法:

打开 include/lib/function.base.php , 找到

$t = str_replace($data,'<img title="'.$data.'" src="'.BLOG_URL.'admin/editor/plugins/emoticons/images/'.$emos[$data].'"/>',$t);

替换 admin 为 cantseeme:

$t = str_replace($data,'<img title="'.$data.'" src="'.BLOG_URL.'cantseeme/editor/plugins/emoticons/images/'.$emos[$data].'"/>',$t);


2. 若后台的个人设置里没有上传新头像,则微语头像也无法在前台显示,解决办法:

打开 t/index.php ,找到

$avatar = empty($user_cache[UID]['avatar']) ? '../admin/views/images/avatar.jpg' : '../' . $user_cache[UID]['avatar'];

替换 admin 为 cantseeme:

$avatar = empty($user_cache[UID]['avatar']) ? '../cantseeme/views/images/avatar.jpg' : '../' . $user_cache[UID]['avatar'];

再打开模板里面的 t.php ,即 content/templates/模板名/t.php ,找到

BLOG_URL . 'admin/views/images/avatar.jpg' :

替换 admin 为 cantseeme:

BLOG_URL . 'cantseeme/views/images/avatar.jpg' :


3. 解决模板损坏时“点击返回”按钮的链接问题,默认admin,点击后出错 :

打开 include/lib/view.php ,找到

emMsg('当前使用的模板已被删除或损坏,请登录后台更换其他模板。', BLOG_URL . 'admin/template.php');

替换 admin 为 cantseeme :

emMsg('当前使用的模板已被删除或损坏,请登录后台更换其他模板。', BLOG_URL . 'cantseeme/template.php');


4. 解决文章列表页编辑按钮链接问题,

打开模板的  module.php文件,找到

$editflg = ROLE == ROLE_ADMIN || $author == UID ? '<a href="'.BLOG_URL.'admin/write_log.php?action=edit&gid='.$logid.'" target="_blank">编辑</a>' : '';

替换 admin 为 cantseeme:

$editflg = ROLE == ROLE_ADMIN || $author == UID ? '<a href="'.BLOG_URL.'cantseeme/write_log.php?action=edit&gid='.$logid.'" target="_blank">编辑</a>' : '';


还有一些熊孩子问了,我就想改名字,导航上能保留登录不出错误吗?

小指只想告诉你,人生如此艰难,你还如此任性,不好,不过我喜欢^_^

首先按照本站的这篇文章获取修改默认导航的权限:emlog如何修改默认的导航 | 迷津渡口

然后到后台->导航设置->编辑登录,将路径从 admin 改为新的 cantseeme。

刷新缓存,首页导航 登录 可以使用了!

下一步,修改 管理站点退出 的链接,打开模板的 module.php,找到下面的代码

<li class="item common"><a href="<?php echo BLOG_URL; ?>admin/">管理站点</a></li>
<li class="item common"><a href="<?php echo BLOG_URL; ?>admin/?action=logout">退出</a></li>

你已经知道要做什么了,把admin改为新的路径cantseeme

<li class="item common"><a href="<?php echo BLOG_URL; ?>cantseeme/">管理站点</a></li>
<li class="item common"><a href="<?php echo BLOG_URL; ?>cantseeme/?action=logout">退出</a></li>

刷新缓存,完全正常使用 登录 管理站点退出 三个链接。


好了教程结束,该干啥干啥去吧~

点赞10
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
circusveil
 circusveil 2019-03-20 09:29回复
#132
<a href="http://www.chocopictures.com/adidas-nmd-runner-bianca-maschio-scarpei">adidas nmd runner bianca maschio</a> <a href="http://www.baluntan.com/nike-magista-todas-negro-zapatosh">nike magista todas negro</a> <a href="http://www.anderonedream.com/kvinders-air-jordan-retro-13-lilla-sort-skok">kvinders air jordan retro 13 lilla sort</a> <a href="http://www.variaponsel.com/nike-shox-bl%C3%A5-and-oransje-obuvi">nike shox bl氓 and oransje</a> <a href="http://www.allmydibs.com/dark-azul-nike-shox-zapatosl">dark azul nike shox</a> <a href="http://www.macusaa.com/ray-ban-wayfarer-2140-polarised-sunglassesh">ray ban wayfarer 2140 polarised</a>
circusveil http://www.circusveil.com/
androidsmith
 androidsmith 2019-03-19 15:53回复
#131
<a href="http://www.priakurus.com/nike-roshe-run-men-leather-black-green-shoesj">nike roshe run men leather black green</a> <a href="http://www.batatastudio.com/oklahoma-state-cowboys-top-of-the-world-ncaa-camo-nation-cap-hath">oklahoma state cowboys top of the world ncaa camo nation cap</a> <a href="http://www.kahawellness.com/adidas-gazelle-junior-negro-zapatosl">adidas gazelle junior negro</a> <a href="http://www.metabolifes.com/womens-nike-air-max-2019-black-shoesk">womens nike air max 2019 black</a> <a href="http://www.breconpharm.com/mennns-nike-zoom-structure-18-svart-gr%C3%A5-obuvi">mennns nike zoom structure 18 svart gr氓</a> <a href="http://www.bagintaiwan.com/nike-free-inneva-woven-gr%C3%A5-oransje-obuvk">nike free inneva woven gr氓 oransje</a>
androidsmith http://www.androidsmith.com/
aldervets
 aldervets 2019-03-19 12:06回复
#130
<a href="http://www.unefinemouche.com/madison-bumgarner-youth-jersey-nflh">madison bumgarner youth jersey</a> <a href="http://www.ayuinc.com/coach-signature-wallet-brown-coachh">coach signature wallet brown</a> <a href="http://www.unirlisboa.com/femminile-nike-air-max-2017-viola-rosso-scarpeh">femminile nike air max 2017 viola rosso</a> <a href="http://www.escortfeeds.com/femmes-nike-roshe-yeezy-boost-jaune-blanc-chaussuresp">femmes nike roshe yeezy boost jaune blanc</a> <a href="http://www.rdjanitorial.com/north-face-down-jacket-mens-nuptse-northfaceh">north face down jacket mens nuptse</a> <a href="http://www.bookoobeats.com/dam%C3%A4nner-nike-free-run-3-rot-orangen-schuheq">dam盲nner nike free run 3 rot orangen</a>
aldervets http://www.aldervets.com/
tedxuon
 tedxuon 2019-03-18 22:42回复
#129
<a href="http://www.katieirene.com/lebron-soldier-10-bon-march%C3%A9-hommes-butya">lebron soldier 10 bon march茅 hommes</a> <a href="http://www.klimafeuer.com/mujeres-nike-free-tr-flyknit-5.0-p%C3%BArpura-amarillo-schuhed">mujeres nike free tr flyknit 5.0 p煤rpura amarillo</a> <a href="http://www.kennethmarrin.com/adidas-superstar-color-rosa-chaussuresd">adidas superstar color rosa</a> <a href="http://www.akashkataria.com/nike-air-force-1-mid-rosado-plata-obuvf">nike air force 1 mid rosado plata</a> <a href="http://www.fariselmasu.com/nike-kobe-9-high-braun-gelb-kurpese">nike kobe 9 high braun gelb</a> <a href="http://www.cleanopoly.com/kvinders-nike-lunarglide-7-orange-gr%C3%B8n-schuhed">kvinders nike lunarglide 7 orange gr酶n</a>
tedxuon http://www.tedxuon.com/
cloudbasens
 cloudbasens 2019-03-18 19:10回复
#128
<a href="http://www.booksekart.com/air-max-1-rose-pack-us-12-chaussuresa">air max 1 rose pack us 12</a> <a href="http://www.ccwealthltd.com/salomon-s-lab-sense-naranja-juice-obuva">salomon s lab sense naranja juice</a> <a href="http://www.crudedrilling.com/nike-air-max-90-premium-rose-camo-butyc">nike air max 90 premium rose camo</a> <a href="http://www.divatrendies.com/adidas-zx-850-korallee-rosa-scarpeb">adidas zx 850 korallee rosa</a> <a href="http://www.emojipost.com/adidas-projoator-db-key-kurpesf">adidas projoator db key</a> <a href="http://www.fufengnc.com/nike-air-max-thea-kvinders-himmelbl%C3%A5-guld-scarpea">nike air max thea kvinders himmelbl氓 guld</a>
cloudbasens http://www.cloudbasens.com/
jobmarketni
 jobmarketni 2019-03-17 16:47回复
#127
<a href="http://www.busrockerz.com/nike-air-max-95-armada-azul-and-blanco-kurpesc">nike air max 95 armada azul and blanco</a> <a href="http://www.financewarm.com/ralph-lauren-vest-beige-jaune-polow">ralph lauren vest beige jaune</a> <a href="http://www.genesispre.com/nike-lunar-caldra-guld-butyf">nike lunar caldra guld</a> <a href="http://www.iraqbody.com/dark-grigio-polo-shirt-poloz">dark grigio polo shirt</a> <a href="http://www.mayakstar.com/air-jordan-aero-flight-oro-blu-chaussuresf">air jordan aero flight oro blu</a> <a href="http://www.thecoedge.com/herre-asics-asics-gel-kinsei-2-gr%C3%A5-scarpef">herre asics asics gel kinsei 2 gr氓</a>
jobmarketni http://www.jobmarketni.com/
kainstory
 kainstory 2019-03-16 17:02回复
#126
<a href="http://www.pierrekennis.com/nike-free-run-2-amarillo-lab-kurpesa">nike free run 2 amarillo lab</a> <a href="http://www.ralfwentz.com/nike-tanjun-light-bl%C3%A5-xanax-butyg">nike tanjun light bl氓 xanax</a> <a href="http://www.vljusa.com/nfl-josh-lambo-womens-black-4-jacksonville-jaguars-nike-name-number-logo-pullover-hoodie-nflw">nfl josh lambo womens black 4 jacksonville jaguars nike name number logo pullover hoodie</a> <a href="http://www.yanginmalzeme.com/air-jordan-9-hvit-and-gull-zx2-butye">air jordan 9 hvit and gull zx2</a> <a href="http://www.anitatribune.com/air-jordan-cp3-ix-blau-kurpesd">air jordan cp3 ix blau</a> <a href="http://www.georgerudder.com/ralph-lauren-femmes-bleu-jaune-big-pony-polo-polow">ralph lauren femmes bleu jaune big pony polo</a>
kainstory http://www.kainstory.com/
lapaktoko
 lapaktoko 2019-03-15 12:58回复
#125
<a href="http://www.egyptmaritime.com/nike-sb-stefan-janoski-max-himmelbl%C3%A5-bl%C3%A5-skoi">nike sb stefan janoski max himmelbl氓 bl氓</a> <a href="http://www.erstube.com/nike-air-max-90-kvinners-s%C3%B8lv-bl%C3%A5-obuvq">nike air max 90 kvinners s酶lv bl氓</a> <a href="http://www.thecardplayer.com/nike-sb-lunar-gato-black-white-gum-shoesh">nike sb lunar gato black white gum</a> <a href="http://www.theweedaddict.com/nike-lunarglide-7-gituttio-argento-scarpei">nike lunarglide 7 gituttio argento</a> <a href="http://www.thecampingman.com/nike-zoom-pegasus-31-dam%C3%A4nner-himmelblau-schwarz-schuhej">nike zoom pegasus 31 dam盲nner himmelblau schwarz</a> <a href="http://www.otuzbircek.com/detroit-tigers-flex-fit-hat-hath">detroit tigers flex fit hat</a>
lapaktoko http://www.lapaktoko.com/
dmvantalya
 dmvantalya 2019-03-15 12:43回复
#124
<a href="http://www.imfunniest.com/air-jordan-son-of-mars-svart-gr%C3%A5-obuvj">air jordan son of mars svart gr氓</a> <a href="http://www.emissariesbc.com/nero-blu-femminile-nike-roshe-run-scarpe-scarpel">nero blu femminile nike roshe run scarpe</a> <a href="http://www.partnersspa.com/air-max-95-og-french-bleu-chaussuresh">air max 95 og french bleu</a> <a href="http://www.antirealtor.com/nike-free-run-flyknit-5.0-nero-scarpeh">nike free run flyknit 5.0 nero</a> <a href="http://www.jkjuiceplus.com/washington-wizards-black-jersey-nfli">washington wizards black jersey</a> <a href="http://www.bkindvending.com/under-armour-clutchfit-drive-stephen-curry-amarillo-azul-zapatosh">under armour clutchfit drive stephen curry amarillo azul</a>
dmvantalya http://www.dmvantalya.com/
thefarmergirl
 thefarmergirl 2019-03-15 10:17回复
#123
<a href="http://www.egyptmaritime.com/mens-nike-huarache-ultra-gold-yellow-shoesi">mens nike huarache ultra gold yellow</a> <a href="http://www.erstube.com/adidas-neo-mesh-red-black-shoesp">adidas neo mesh red black</a> <a href="http://www.thecardplayer.com/nike-air-foamposite-one-svart-electric-gr%C3%B8nn-obuvl">nike air foamposite one svart electric gr酶nn</a> <a href="http://www.theweedaddict.com/nike-air-max-zero-kvinders-gr%C3%B8n-gul-skoj">nike air max zero kvinders gr酶n gul</a> <a href="http://www.thecampingman.com/air-jordan-retro-14-femminile-arancia-maschiota-verde-scarpel">air jordan retro 14 femminile arancia maschiota verde</a> <a href="http://www.otuzbircek.com/nike-kobe-icon-silver-red-shoesj">nike kobe icon silver red</a>
[url=http://www.thefarmergirl.com/]thefarmergirl[/url]
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸