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">&nbsp;</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目錄權限檢測&gt;&gt;</u></a></font>";
           else echo " <a href='testenv.php' style='color:blue'><u>如果你第一次進入本系統,建議點擊此進行一次DedeCms目錄權限檢測&gt;&gt;</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>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章