您的位置:首页 > 其它

DEDE如何修改后台首页的内容

2013-10-30 14:05 141 查看
原文地址:DEDE如何修改后台首页的内容作者:A.最新消息的修改

1.找到如下文件:include/inc/inc_fun_funAdmin.php

2.用记事本或者其它文本编辑软件打开步骤1中的文件

3.找到文件中的SpGetNewInfo()函数

4.修改该函数中的$gs变量的内容

5.保存,退出,重新登陆即可

B。快捷功能,系统基本消息,使用帮助的修改

1.找到如下文件:dede/dede/index_body.php

2.快捷功能的修改地方如下:

<div
class="bodytitle">

 <div
class="bodytitleleft"></div>

 <div
class="bodytitletxt">快捷功能</div>

</div>

<table width="96%" border="0" align="center"
cellpadding="0" cellspacing="0">

 <tr>

  <td height="60"
align="center">

   <table
width="96%" border="0" cellspacing="10" cellpadding="0"
style="margin-top:10px;">

    <tr
class="main_qbut">

     <td
width="16%" align="center"><div
style="background-position:center
10px;"><a
href="catalog_main.php">栏目管理</a></div></td>

     <td
width="16%" align="center"><div
style="background-position:center
-130px;"><a href="catalog_menu.php"
target="menu">发布文档</a></div></td>

     <td
width="16%" align="center"><div
style="background-position:center
-270px;"><a
href="content_list.php?arcrank=-1">待审核文档</a></div></td>

     <td
width="16%" align="center"><div
style="background-position:center
-414px;"><a
href="feedback_main.php">评论管理
</a></div></td>

     <td
width="16%" align="center"><div
style="background-position:center
-554px;"><a
href="makehtml_list.php">更新HTML</a></div></td>

     <td
width="16%" align="center"><div
style="background-position:center
-694px;"><a
href="sys_info.php">更改系统参数
</a></div></td>

     <td
width="4%"
align="center"> </td>

    </tr>

   </table>

  </td>

 </tr>

</table>

3.系统基本消息的修改地方如下:

<div
class="bodytitle">

 <div
class="bodytitleleft"></div>

 <div
class="bodytitletxt">系统基本信息</div>

</div>

<table width="96%" border="0" align="center"
cellpadding="10" cellspacing="1" bgcolor="#E2F5BC"
style="margin-top:6px;">

  <tr>

    <td
align="right" bgcolor="#F9FFE6"
class="main_bleft">你的级别:</td>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>

        
<?php

               
if($cuserLogin->getUserType()==10) echo
"总管理员";

               
else if($cuserLogin->getUserType()==5) echo
"频道总编";

               
else echo "信息采集员或其它管理员";

       
 ?></strong></td>

  </tr>

  <tr>

    <td
width="22%" rowspan="5" align="right" bgcolor="#F9FFE6"
class="main_bleft">PHP环境摘要:</td>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>PHP版本:</strong>
<?php echo
@phpversion();?>  
<strong>GD版本:</strong>
<?php echo @gdversion()?>
</td>

  </tr>

  <tr>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>是否安全模式:</strong> 
<?php echo ($cfg_isSafeMode ? 'On' :
'Off')?> <?php

         
 if($cfg_isSafeMode) echo
"<br>  <font
color='blue'>由于你的系统以安全模式运行,为了确保程序兼容性,第一次进入本系统时请更改“<a
href='sys_info.php'><u>更改系统参数</u></a>”里的FTP选项,并选择用FTP形式创建目录,完成后:<a
href='testenv.php'
style='color:red'><u>点击此进行一次DedeCms目录权限检测>></u></a></font>";

         
 else echo " <a href='testenv.php'
style='color:blue'><u>如果你第一次进入本系统,建议点击此进行一次DedeCms目录权限检测>></u></a></font>";

         
 ?></td>

  </tr>

  <tr>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>Register_Globals:</strong> 
<?php echo ini_get("register_globals") ? 'On' :
'Off'?>  
<strong>Magic_Quotes_Gpc:</strong>
<?php echo ini_get("magic_quotes_gpc") ? 'On' :
'Off'?> </td>

  </tr>

  <tr>

    <td
width="78%" bgcolor="#FFFFFF"
class="main_bright"><strong>支持上传的最大文件:</strong>
<?php echo ini_get("post_max_size")?>
</td>

  </tr>

  <tr>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>是否允许打开远程连接:</strong>
<?php echo ini_get("allow_url_fopen") ? '支持' :
'不支持'?> </td>

  </tr>

  

  <tr>

    <td
align="right" bgcolor="#F9FFE6"
class="main_bleft">系统摘要:</td>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>档案总数:</strong>

               
<?php

                     
$dsql = new DedeSql(false);

                     
$row = $dsql->GetOne("Select count(ID) as cc
From #@__archives");

                     
$dsql->Close();

                     
echo $row['cc'];

   
  ?>

               
</td>

  </tr>

  <tr>

    <td
align="right" bgcolor="#F9FFE6"
class="main_bleft">软件版本信息:</td>

    <td
bgcolor="#FFFFFF"
class="main_bright"><strong>版本名称:</strong><?php
echo
$cfg_soft_enname?><strong>
版本号:</strong><?php
echo
$cfg_version?></td>

  </tr>

  <tr>

    <td
align="right" bgcolor="#F9FFE6"
class="main_bleft">开发团队:</td>

    <td
bgcolor="#FFFFFF"
class="main_bright"><?php echo
$cfg_soft_devteam?></td>

  </tr>

</table>

4.使用帮助的地方如下:

<div
class="bodytitle">

 <div
class="bodytitleleft"></div>

 <div
class="bodytitletxt">使用帮助</div>

</div>

<table width="96%" border="0" align="center"
cellpadding="10" cellspacing="1" bgcolor="#E2F5BC"
style="margin-top:6px;">

  <tr>

    <td
width="22%" align="right" bgcolor="#F9FFE6"
class="main_bleft">官方论坛:</td>

    <td
width="78%" bgcolor="#FFFFFF"
class="main_bright"><a
href="http://bbs.dedecms.com">http://bbs.dedecms.com
</a></td>

  </tr>

  <tr>

    <td
align="right" bgcolor="#F9FFE6"
class="main_bleft">模板标记参考:</td>

    <td
bgcolor="#FFFFFF"
class="main_bright"><a
href="http://www.dedecms.com/archives/templethelp/help/index.htm">http://www.dedecms.com/archives/templethelp/help/index.htm</a></td>

  </tr>

</table>

<table width="96%"
border="0" align="center" cellpadding="0"
cellspacing="0">

  <tr>

    <td
align="center"
style="line-height:51px;"><?php echo
$cfg_powerby?><br
/></td>

  </tr>

</table>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: