登陆      注册    找回密码   会员投稿 设为首页 | 收藏本站   当前时间是: 
关闭音乐播放器
首页>技术文档>php学习>正文


帝国cms在系统设置添加网站logo

来源:董为坚个人网   作者:董为坚   浏览:3660次   发表时间:2017-6-22 10:16:20


首先修改文件/e/admin/SetEnews.php

搜索找到"基本信息设置"如下:

在网站名称后面添加一行:


<tr> 
          <td width="22%" height="25" bgcolor="#FFFFFF">站点logo</td>
          <td width="78%" height="25" bgcolor="#FFFFFF"> <input name="weblogo" type="text" id="weblogo" value="<?=$r[weblogo]?>" size="38"><input name="logofile" type="file" /></td>
        </tr>


然后搜索“function SetEnews”找到这个函数,

在“//变量处理”上面添加如下代码:

//------添加logo处理
$ry=$empire->fetch1("select weblogo from {$dbtbpre}enewspublic limit 1");
$scfileurl=eReturnEcmsMainPortPath().substr(str_replace('/','\\',$ry[weblogo]),1);
$tffile="logofile";
$fsizeimg=$_FILES[$tffile]['size'];
if($fsizeimg>0){
//上传图片
$tfr=DoTranFile($_FILES[$tffile]['tmp_name'],$_FILES[$tffile]['name'],$_FILES[$tffile]['type'],$_FILES[$tffile]['size'],0);
//删除原文件
DelFiletext($scfileurl);
$add[weblogo]=$tfr['url'];
//echo $fsizeimg;
//exit;
}elseif($add[weblogo]!=$ry[weblogo]){
//删除原文件
DelFiletext($scfileurl);

}else{

}
//----end

最后修改文件/e/class/functions.php

搜索“GetPubCache”找到GetPubCache()函数,

在“//------------e_public”或“\$public_r=array('sitename'=>'".addslashes($r[sitename])."',

添加下面代码:

'weblogo'=>'".addslashes($r[weblogo])."',

ok,完成了!



董为坚个人网 https://www.dwjgrw.cn/ 【关闭窗口
注:转载或者复制本站文章,必须带上董为坚个人网链接。

上一篇:笑过以后
下一篇:帝国cms后将图片集字段修改小图标处理方法

版权所有:《董为坚个人网
本文地址:https://www.dwjgrw.cn/Content/id/111.html   复制地址
本站内容除特别注明外,均为《董为坚个人网》原创,欢迎转载!转载请注明本文地址,谢谢!


  评论列表

举报| 1楼 [2019-8-12 10:55:57]昵称:pieway

Order cialis from canada <a href="http://cialisndbrx.com/#">buy cialis online</a> generic cialis safety <a href="http://cialischmrx.com/#">buy cheap cialis online</a> cialis website <a href="http://cialischbrx.com/#">buy

董为坚回复: 暂无回复!


举报| 2楼 [2019-8-27 11:37:10]昵称:Idiofled

Generic cialis no prescription <a href="http://www.cialisongen.com/#">buy cialis online</a> love cialis pharmacy <a href="https://cialisnorxs.com/#">buy cialis online</a> affordable loans <a href="http://paydaysonlinemoney.

董为坚回复: 暂无回复!


举报| 3楼 [2019-8-28 1:26:32]昵称:paledia

<a href="http://cialiishb.com/#">buy generic cialis online</a> <a href="http://viagrabstnrx.com/#">viagra generic</a> <a href="http://cialisbs.com/#">online cialis</a> <a href="http://chviagranrxusa.com/#">vi

董为坚回复: 暂无回复!


举报| 4楼 [2019-8-28 1:26:38]昵称:eructbab

<a href="http://mrxcialisrx.com/#">buy cialis online</a> <a href="http://cialisbs.com/#">buy generic cialis online</a> <a href="http://cialisherrx.com/#">buy cialis</a> <a href="http://paydayonlineexpress.com/#"

董为坚回复: 暂无回复!


举报| 5楼 [2019-8-28 3:05:03]昵称:apendets

Cialis online prices <a href="http://www.cialisongen.com/#">buy cialis online</a> buy cialis online in florida <a href="https://cialisnorxs.com/#">generic cialis online</a> online personal loan <a href="http://paydaysonline

董为坚回复: 暂无回复!


举报| 6楼 [2019-8-28 3:29:02]昵称:Effiche

Generic cialis online canada <a href="http://www.cialisongen.com/#">generic cialis</a> cialis tadalafil buy <a href="https://cialisnorxs.com/#">online cialis</a> quick personal loans bad credit <a href="http://paydaysonline

董为坚回复: 暂无回复!


举报| 7楼 [2019-8-28 3:29:03]昵称:TagFouro

Cialis 20mg rezeptfrei <a href="http://www.cialisongen.com/#">generic cialis</a> generic cialis 20mg target mexico <a href="https://cialisnorxs.com/#">cheap cialis online</a> loans for bad credit in ohio <a href="http://pay

董为坚回复: 暂无回复!


举报| 8楼 [2019-9-3 16:52:07]昵称:Diexaft

<a href="http://paydaymycreditloan.com/#">cash advance</a> <a href="http://cialischbrx.com/#">cialis online</a> <a href="http://calismdmrxonline.com/#">buy cialis</a> <a href="http://genviagramdmrx.com/#">ord

董为坚回复: 暂无回复!


举报| 9楼 [2019-9-3 16:52:07]昵称:Dersbask

<a href="http://cialisknfrx.com/#">generic cialis</a> <a href="http://cialismrxcialis.com/#">cialis online</a> <a href="http://paydaymycreditloan.com/#">personal loans</a> <a href="http://chviagranrxusa.com/#"&g

董为坚回复: 暂无回复!


举报| 10楼 [2019-9-3 16:52:08]昵称:hairty

<a href="http://cialisherrx.com/#">cheap cialis</a> <a href="http://calismdmrxonline.com/#">cheap cialis</a> <a href="http://cashpaydayusloans.com/#">quick cash advance online</a> <a href="http://viagralx.com/#"

董为坚回复: 暂无回复!


举报| 11楼 [2019-9-3 18:50:14]昵称:Idiofled

Buy tadalafil dosage <a href="http://cialisgenbrx.com/#">generic cialis online</a> cialis coupons <a href="https://cialisrxche.com/#">cheap cialis</a> credit line for bad credit <a href="http://paydaystip.com/#">pay day

董为坚回复: 暂无回复!


举报| 12楼 [2019-9-3 18:50:16]昵称:itatawew

Manly cialis tablets <a href="http://cialisgenbrx.com/#">generic cialis online</a> cheap soft cialis pills <a href="https://cialisrxche.com/#">buy generic cialis</a> no credit loan <a href="http://paydaystip.com/#">cash

董为坚回复: 暂无回复!


举报| 13楼 [2019-9-3 19:05:25]昵称:CRUILS

Cheap cialis tablets <a href="http://cialisgenbrx.com/#">cialis online</a> buy cialis singapore <a href="https://cialisrxche.com/#">cheap cialis</a> payday loans new lenders <a href="http://paydaystip.com/#">personal loa

董为坚回复: 暂无回复!


举报| 14楼 [2019-9-4 18:43:47]昵称:heifak

Non generic cialis <a href="http://mrxcialisrx.com/#">cialis</a> buy viagra now <a href="http://viagramrxgeneric.com/#">buy viagra online</a>

董为坚回复: 暂无回复!


举报| 15楼 [2019-9-4 18:43:47]昵称:Stoobe

Compare generic cialis prices <a href="http://cialischmrx.com/#">cialis coupon</a> buy 20 mg cialis online <a href="http://cialisdbrx.com/#">generic cialis</a>

董为坚回复: 暂无回复!


举报| 16楼 [2019-9-4 18:43:47]昵称:edulse

Cialis order <a href="http://cialisherrx.com/#">buy cialis</a> viagra maroc cialis 20mg <a href="http://cialismdmarx.com/#">buy cialis online</a>

董为坚回复: 暂无回复!


举报| 17楼 [2019-9-4 18:43:47]昵称:Dybrish

Cialis tadalafil buy <a href="http://cialischbrx.com/#">cialis online</a> next day brand cialis only online <a href="http://cialisknfrx.com/#">buy cheap cialis</a>

董为坚回复: 暂无回复!


举报| 18楼 [2019-9-4 18:43:49]昵称:wherce

Free viagra samples before buying <a href="http://chviagranrxusa.com/#">generic viagra</a> cialis 20 mg online <a href="http://cialismnrx.com/#">buy generic cialis</a>

董为坚回复: 暂无回复!


举报| 19楼 [2019-9-11 21:03:51]昵称:Whonlole

Buy brand cialis from supplier <a href="http://cialismrxcialis.com/#">buy cheap cialis online</a> viagra medicare <a href="http://genviagramdmrx.com/#">buy viagra online</a>

董为坚回复: 暂无回复!


举报| 20楼 [2019-9-13 3:51:27]昵称:treanna

Viagra and weight lifting cialis generic <a href="http://l2plus.ru/#">generic cialis online</a> generic cialis buy online <a href="http://net-ro.net/#">buy cheap cialis</a> cialis tablets 20mg <a href="http://golfballs101.c

董为坚回复: 暂无回复!


举报| 21楼 [2019-9-13 4:07:08]昵称:Scadia

What color cialis pills <a href="http://creationfoundations.org/#">generic cialis</a> buy cialis pills generic cialis a <a href="http://automainge.net/#">buy cialis cheap</a> cialis generic purchase <a href="http://drupalsh

董为坚回复: 暂无回复!


举报| 22楼 [2019-9-13 4:08:29]昵称:foenda

Cialis generic <a href="http://apteka120-80.ru/#">Buy Generic Cialis Online</a> ordering cialis <a href="http://camprv.com/#">buy cialis generic</a> canada generic cialis prices <a href="http://pickleball247.com/#">buy c

董为坚回复: 暂无回复!


举报| 23楼 [2019-9-14 0:10:03]昵称:Illusa

Viagra girls <a href="http://chviagranrxusa.com/#">viagra online</a> vasotec allergy cialis pills <a href="http://cialismnrx.com/#">buy generic cialis</a>

董为坚回复: 暂无回复!


举报| 24楼 [2019-9-14 0:38:57]昵称:Remyecof

Viagra black market cialis pills <a href="http://cialisherrx.com/#">buy cialis online</a> cialis online canada no prescription <a href="http://cialismdmarx.com/#">buy cialis online</a>

董为坚回复: 暂无回复!


举报| 25楼 [2019-9-18 8:14:53]昵称:gidwAy

Cialis 5mg price generic levitra <a href="http://cialisherrx.com/#">buy cialis online</a> viagra femenina natural cialis generic <a href="http://cialismdmarx.com/#">buy cialis</a>

董为坚回复: 暂无回复!


举报| 26楼 [2019-9-18 8:14:53]昵称:wherce

Viagra 50 mg online <a href="http://chviagranrxusa.com/#">buy viagra</a> wiki generic viagra cialis pills <a href="http://cialismnrx.com/#">buy cialis</a>

董为坚回复: 暂无回复!


举报| 27楼 [2019-9-19 16:46:01]昵称:Geremelm

Order cialis online without a prescription canadian pharmacy <a href="http://frh-team.net/#">cialis cost</a> list of cialis tablets <a href="http://foxxinnovation.com/#">generic cialis</a> generic cialis best price canada <

董为坚回复: 暂无回复!


举报| 28楼 [2019-9-19 19:03:14]昵称:spoift

Generic cialis tadalafil 20mg cialis <a href="http://gamingpromo.com/#">buy cheap cialis online</a> buy cialis tadalafil <a href="http://jahanews.com/#">cialis</a> order cialis online <a href="http://4everheatingandcooling.

董为坚回复: 暂无回复!


举报| 29楼 [2019-9-20 3:59:05]昵称:Sibnassy

Generic cialis daily use <a href="http://newyearideas.info/#">buy generic cialis online</a> buy cialis online mastercard <a href="http://aeu32.com/#">cheap cialis online</a> indian viagra for women cialis generic <a href="h

董为坚回复: 暂无回复!


举报| 30楼 [2019-9-20 5:43:12]昵称:Diexaft

Cialis 20mg side effects <a href="http://cialisherrx.com/#">cialis online</a> generic cialis online india <a href="http://cialismdmarx.com/#">cialis online</a>

董为坚回复: 暂无回复!


举报| 31楼 [2019-9-20 5:43:13]昵称:DadaChip

How to buy cialis online <a href="http://cialismrxcialis.com/#">buy cheap cialis</a> b&b viagrande <a href="http://genviagramdmrx.com/#">buy viagra online</a>

董为坚回复: 暂无回复!


举报| 32楼 [2019-9-20 5:43:13]昵称:dateext

What is viagra used for <a href="http://chviagranrxusa.com/#">viagra</a> compare cialis generic viagra <a href="http://cialismnrx.com/#">cialis online</a>

董为坚回复: 暂无回复!


举报| 33楼 [2019-9-23 5:32:27]昵称:littetug

Buy now cialis <a href="http://cialischmrx.com/#">cialis</a> viagra shipped overnight cialis generic <a href="http://cialisdbrx.com/#">buy generic cialis online</a>

董为坚回复: 暂无回复!


举报| 34楼 [2019-9-23 5:32:27]昵称:littetug

Cheap generic cialis from india <a href="http://cialischbrx.com/#">cheap cialis online</a> cialis generic 10mg <a href="http://cialisknfrx.com/#">generic cialis online</a>

董为坚回复: 暂无回复!


举报| 35楼 [2019-9-23 5:32:27]昵称:Swarisk

Generic vs brand name cialis <a href="http://mrxcialisrx.com/#">buy cialis</a> generic viagra 100mg <a href="http://viagramrxgeneric.com/#">buy viagra</a>

董为坚回复: 暂无回复!


举报| 36楼 [2019-9-23 10:24:02]昵称:gepthift

Viagra y presion alta <a href="http://chviagranrxusa.com/#">cheap viagra online</a> super viagra soft tabs cialis pills <a href="http://cialismnrx.com/#">cialis online</a>

董为坚回复: 暂无回复!


举报| 37楼 [2019-9-23 10:24:05]昵称:Atorync

Canada cialis online <a href="http://cialisherrx.com/#">buy cialis online</a> viagra commande cialis 20mg cialis <a href="http://cialismdmarx.com/#">generic cialis online</a>

董为坚回复: 暂无回复!


举报| 38楼 [2019-9-23 10:24:12]昵称:Cifsdrer

Generic cialis overnight shipping cost <a href="http://cialismrxcialis.com/#">buy cialis online</a> kamagra vs viagra <a href="http://genviagramdmrx.com/#">viagra online</a>

董为坚回复: 暂无回复!


举报| 39楼 [2019-9-26 9:28:21]昵称:Exhalia

Viagra 911 call <a href="http://chviagranrxusa.com/#">cheap viagra online</a> cialis original buy online <a href="http://cialismnrx.com/#">cheap cialis</a>

董为坚回复: 暂无回复!


举报| 40楼 [2019-9-26 9:28:42]昵称:Stoobe

Cialis tabs 20mg <a href="http://cialischbrx.com/#">cheap cialis online</a> lowest price cialis generic viagra <a href="http://cialisknfrx.com/#">buy cialis</a>

董为坚回复: 暂无回复!


举报| 41楼 [2019-9-26 9:28:58]昵称:apendets

Split pills cialis 20mg cialis <a href="http://mrxcialisrx.com/#">buy cheap cialis coupon</a> viagra coupon <a href="http://viagramrxgeneric.com/#">buy cheap viagra online</a>

董为坚回复: 暂无回复!
  发表评论 [评论会通过邮件和短信的形式通知我,我会及时回复,一定回来看哦!!!]
昵称: [必填]
邮箱: [必填]
内容: [必填]
验证码:   
                     
给我留言 申请友链Copyright © 2012-2021 董为坚个人网, All rights reserved 手机版
本站已正常运行2351天技术顾问:董为坚个人网 ( 桂ICP备15004478号-1 )
最后更新:2018-3-12联系QQ1115030108,邮箱:dongweijian@dwjgrw.cn
今日有225人访问,总访问数438512人请勿发布违反中华人民共和国法律法规的言论.