<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-TW">
		<id>https://wiki.cc.ncu.edu.tw/wikicc/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=955002074</id>
		<title>NCUCCWiki - 使用者貢獻 [zh-tw]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.cc.ncu.edu.tw/wikicc/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=955002074"/>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wiki/%E7%89%B9%E6%AE%8A:%E4%BD%BF%E7%94%A8%E8%80%85%E8%B2%A2%E7%8D%BB/955002074"/>
		<updated>2026-04-04T11:26:55Z</updated>
		<subtitle>使用者貢獻</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=3090</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=3090"/>
				<updated>2009-04-14T06:02:27Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
設定完成後  將舊版 HelpDesk 的資料庫匯入需要更改 mantis_user_table 中的資料&amp;lt;br/&amp;gt;&lt;br /&gt;
將 password 那個欄位設為 NULL 使用 SQL UPDATE 指令&lt;br /&gt;
  UPDATE `mantis_user_table` SET password='' where username not in('administrator');&lt;br /&gt;
==在 mantis 建立 local 帳號方式==&lt;br /&gt;
依照正常步驟新增一個使用者之後&amp;lt;br/&amp;gt;&lt;br /&gt;
進資料庫&lt;br /&gt;
update users set password=md5('$newpass') &lt;br /&gt;
即可,&lt;br /&gt;
需要注意的是這個帳號是否與ldap帳號有重覆的問題&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
   #計中目前設置為 $g_wiki_engine_url = $t_protocol.'://wiki.cc.ncu.edu.tw/wiki/';&lt;br /&gt;
將 core/wiki_mediawiki_api.php中&lt;br /&gt;
   function wiki_mediawiki_get_url_for_page_id( $p_page_id ) {&lt;br /&gt;
                         ....&lt;br /&gt;
         return $t_root_url . 'index.php/' . urlencode( $t_page_id );&lt;br /&gt;
   }&lt;br /&gt;
return 中的 'index.php' 刪除  方可以正確的位置連接到 wiki 頁面 即&lt;br /&gt;
   return  $t_root_url . urlencode( $t_page_id );&lt;br /&gt;
   &lt;br /&gt;
----&lt;br /&gt;
從各回報的 bug 中點 wiki 的選項將之導到 mantis:project_name bug_category&amp;lt;br/&amp;gt;&lt;br /&gt;
修改 core/wiki_mediawiki_api.php&lt;br /&gt;
  function wiki_mediawiki_get_page_id_for_issue( $p_issue_id ){&lt;br /&gt;
    //return $c_issue_id;  (將此行 刪除\註解 改為下面那行)&lt;br /&gt;
    return project_get_name(bug_get_field($c_issue_id,'project_id')) . '_' . bug_get_field($c_issue_id,'category');&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
  $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
  加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
  變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合==&lt;br /&gt;
將 mantis 更換為較新版本(version 1.1.1) 將舊版 mantis database 匯入後&amp;amp;nbsp; 若 admin 資料夾存在&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&lt;br /&gt;
點選 here 更新資料庫即可&lt;br /&gt;
----&lt;br /&gt;
匯入後由於舊版 mantis 的 中文預設 是 big5 所以在 mantis_user_pref_table 這個 table 中存 chinese_traditional_utf8 &lt;br /&gt;
新版則更名為 chinese_traditional&amp;amp;nbsp; 處理方法為在 mysql 下 update 指令&lt;br /&gt;
  UPDATE `mantis_user_pref_table` SET language='chinese_traditional';&lt;br /&gt;
&lt;br /&gt;
==更改mantis寄件者的email==&lt;br /&gt;
mantis安裝後預設寄件者是 noreply@example.com 將之更改為 noreply@cc.ncu.edu.tw 方法是 &amp;lt;br/&amp;gt;&lt;br /&gt;
  在 config_inc.php 中加入&lt;br /&gt;
  $g_from_email = 'noreply@cc.ncu.edu.tw';&lt;br /&gt;
&lt;br /&gt;
==限制註冊帳號==&lt;br /&gt;
在 config_inc.php 中加入&lt;br /&gt;
  $g_allow_signup = false;&lt;br /&gt;
鎖住註冊帳號的功能 (預設為 true)&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2985</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2985"/>
				<updated>2009-03-25T03:35:59Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
設定完成後  將舊版 HelpDesk 的資料庫匯入需要更改 mantis_user_table 中的資料&amp;lt;br/&amp;gt;&lt;br /&gt;
將 password 那個欄位設為 NULL 使用 SQL UPDATE 指令&lt;br /&gt;
  UPDATE `mantis_user_table` SET password='' where username not in('administrator');&lt;br /&gt;
==在 mantis 建立 local 帳號方式==&lt;br /&gt;
依照正常步驟新增一個使用者之後&amp;lt;br/&amp;gt;&lt;br /&gt;
進到管理頁面→選擇那名使用者→點下重設密碼的連結&amp;lt;br/&amp;gt;&lt;br /&gt;
接著點選那名使用者收到信中的連結→進行修改密碼的動作&amp;lt;br/&amp;gt;&lt;br /&gt;
該名使用者帳號即成為 local 帳號&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
   #計中目前設置為 $g_wiki_engine_url = $t_protocol.'://wiki.cc.ncu.edu.tw/wiki/';&lt;br /&gt;
將 core/wiki_mediawiki_api.php中&lt;br /&gt;
   function wiki_mediawiki_get_url_for_page_id( $p_page_id ) {&lt;br /&gt;
                         ....&lt;br /&gt;
         return $t_root_url . 'index.php/' . urlencode( $t_page_id );&lt;br /&gt;
   }&lt;br /&gt;
return 中的 'index.php' 刪除  方可以正確的位置連接到 wiki 頁面 即&lt;br /&gt;
   return  $t_root_url . urlencode( $t_page_id );&lt;br /&gt;
   &lt;br /&gt;
----&lt;br /&gt;
從各回報的 bug 中點 wiki 的選項將之導到 mantis:project_name bug_category&amp;lt;br/&amp;gt;&lt;br /&gt;
修改 core/wiki_mediawiki_api.php&lt;br /&gt;
  function wiki_mediawiki_get_page_id_for_issue( $p_issue_id ){&lt;br /&gt;
    //return $c_issue_id;  (將此行 刪除\註解 改為下面那行)&lt;br /&gt;
    return project_get_name(bug_get_field($c_issue_id,'project_id')) . '_' . bug_get_field($c_issue_id,'category');&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
  $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
  加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
  變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合==&lt;br /&gt;
將 mantis 更換為較新版本(version 1.1.1) 將舊版 mantis database 匯入後&amp;amp;nbsp; 若 admin 資料夾存在&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&lt;br /&gt;
點選 here 更新資料庫即可&lt;br /&gt;
----&lt;br /&gt;
匯入後由於舊版 mantis 的 中文預設 是 big5 所以在 mantis_user_pref_table 這個 table 中存 chinese_traditional_utf8 &lt;br /&gt;
新版則更名為 chinese_traditional&amp;amp;nbsp; 處理方法為在 mysql 下 update 指令&lt;br /&gt;
  UPDATE `mantis_user_pref_table` SET language='chinese_traditional';&lt;br /&gt;
&lt;br /&gt;
==更改mantis寄件者的email==&lt;br /&gt;
mantis安裝後預設寄件者是 noreply@example.com 將之更改為 noreply@cc.ncu.edu.tw 方法是 &amp;lt;br/&amp;gt;&lt;br /&gt;
  在 config_inc.php 中加入&lt;br /&gt;
  $g_from_email = 'noreply@cc.ncu.edu.tw';&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2073</id>
		<title>網站建置技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2073"/>
				<updated>2008-10-23T17:44:28Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：/* 在首頁加上熱點頁面的前十名 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==開放以LDAP帳號登入認證==&lt;br /&gt;
1、在 /usr/local/etc/openldap/ldap.conf 中加上一行&lt;br /&gt;
::: TLS_REQCERT     never&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( 'extensions/LdapAuthentication.php');&lt;br /&gt;
:::$wgAuth = new LdapAuthenticationPlugin();&lt;br /&gt;
:::$wgLDAPDomainNames = array(&amp;quot;Portal&amp;quot;);&lt;br /&gt;
:::$wgLDAPEncryptionType = array('Portal' =&amp;gt; 'ssl');&lt;br /&gt;
:::$wgLDAPServerNames = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;140.115.17.30&amp;quot;);&lt;br /&gt;
:::$wgLDAPSearchStrings = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;uid=USER-NAME,ou=People,dc=cc,dc=ncu&amp;quot;);$wgLDAPUseLocal = true;&lt;br /&gt;
:::$wgLDAPAddLDAPUsers = false;&lt;br /&gt;
:::$wgLDAPUpdateLDAP = false;&lt;br /&gt;
:::$wgLDAPMailPassword = false;&lt;br /&gt;
:::$wgLDAPRetrievePrefs = false;&lt;br /&gt;
:::$wgMinimalPasswordLength = 1;&lt;br /&gt;
==開放上傳檔案，並設限檔案副檔名類別==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgEnableUploads = true;&lt;br /&gt;
:::$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'ppt', 'pdf', 'docx', 'xlsx', 'pptx', 'vsd', 'pps' );&lt;br /&gt;
:::$wgFileBlacklist = array('html', 'htm', 'js', 'jsb','php', 'phtml', 'php3', 'php4', 'phps','shtml', 'jhtml', 'pl', 'py', 'cgi','exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );&lt;br /&gt;
==禁止一般使用者建立新帳號==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
:::$wgGroupPermissions['sysop']['createaccount'] = true;&lt;br /&gt;
==設定只有登入系統的使用者，才有權利編輯頁面==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['edit'] = false;&lt;br /&gt;
:::$wgGroupPermissions['user']['edit'] = true;&lt;br /&gt;
==置換首頁logo圖檔，為計中logo==&lt;br /&gt;
1、先將計中logo圖檔，上傳放置於mediawiki\skins\wiki.gif&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLogo=&amp;quot;&amp;lt;nowiki&amp;gt;https://wiki.cc.ncu.edu.tw/mediawiki/skins/wiki.gif&amp;lt;/nowiki&amp;gt;&amp;quot;;&lt;br /&gt;
==設定正確的時區顯示==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLocaltimezone=&amp;quot;Asia/Taipei&amp;quot;;&lt;br /&gt;
:::$wgLocalTZoffset=date(&amp;quot;Z&amp;quot;)/60;&lt;br /&gt;
==網址從/mediawiki/index.php/ 改成 /wiki/ 式網址，以達成縮短網址==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgArticlePath = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
2、修改/usr/local/etc/apache22/httpd.conf，增加以下內容：&lt;br /&gt;
:::Alias /wiki /home/www/mediawiki/index.php&lt;br /&gt;
:::Alias /index.php /home/www/mediawiki/index.php&lt;br /&gt;
==加裝 template: languages extensions，以支援英文版 content頁面編輯==&lt;br /&gt;
1、將此檔[[image:P.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( &amp;quot;$IP/extensions/ParserFunctions/ParserFunctions.php&amp;quot; );&lt;br /&gt;
==加裝 category tree extensions，以支援 subcategory==&lt;br /&gt;
1、將此檔[[image:C.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseAjax = true;&lt;br /&gt;
:::require_once( 'extensions/CategoryTree/CategoryTree.php' );&lt;br /&gt;
&lt;br /&gt;
==加裝 tinymce extensions==&lt;br /&gt;
1、將此檔[[image:T.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseTinymce = true;&lt;br /&gt;
:::$wgDefaultUserOptions ['showtoolbar'] = 0;&lt;br /&gt;
:::$wgTinymceTheme = &amp;quot;msword&amp;quot;;&lt;br /&gt;
:::require_once(&amp;quot;$IP/extensions/tinymce/TinyMCE_MW.php&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==將登入/登出改為英文==&lt;br /&gt;
先到 mediawiki/languages/messages/ 資料夾下&amp;lt;br&amp;gt;&lt;br /&gt;
複製 MessagesEn.php 中 # Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
在 MessagesZh_tw.php 中 取代原本的 #Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
即可將 login/logout 相關文字改為英文 (包括登入/註冊頁面)&lt;br /&gt;
&lt;br /&gt;
==在首頁加上熱點頁面的前十名==&lt;br /&gt;
先新增一個 template 接著進入資料庫&amp;lt;br/&amp;gt;&lt;br /&gt;
在 recentchanges、revision、text 這三個 table 中找到剛剛新增的 template 的相對應欄位&amp;lt;br/&amp;gt;&lt;br /&gt;
分別將 rc_id、rev_text_id、old_id 記下來&amp;lt;br/&amp;gt;&lt;br /&gt;
寫一隻 php 程式進入資料庫 `page` 這個 table 抓出 page_namespace 為 0 的資料&amp;lt;br/&amp;gt;&lt;br /&gt;
按照 page_counter 做遞減排序，即可得到熱點頁面的排名&amp;lt;br/&amp;gt;&lt;br /&gt;
    $sql = &amp;quot;SELECT * FROM `page` WHERE page_namespace='0' and `page_title` NOT IN ('&amp;quot;.implode(&amp;quot;','&amp;quot;,$black_list).&amp;quot;')&lt;br /&gt;
    ORDER BY page_counter DESC LIMIT 0,10&amp;quot;;&lt;br /&gt;
將找到的資料整理後 UPDATE recentchanges、revision、text 這三個 table&amp;lt;br/&amp;gt;&lt;br /&gt;
   $list .= $i . '. [['.$res['page_title'].']]('.number_format($res['page_counter']).'次瀏覽)';&lt;br /&gt;
分別更新 rc_new_len  rev_len  old_text&amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;quot;UPDATE `text` SET `old_text` = '&amp;quot;.$list.&amp;quot;' WHERE `old_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `revision` SET `rev_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rev_text_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `recentchanges` SET `rc_new_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rc_id`=''&amp;quot;;&lt;br /&gt;
接著在首頁 include 剛剛新增的 template&amp;lt;br/&amp;gt;&lt;br /&gt;
熱點頁面就會顯示在首頁了&amp;lt;br/&amp;gt;&lt;br /&gt;
將此 php 程式寫入 crontable 在每日 0 點 1 分時執行，所以每天將更新一次前十名&amp;lt;br/&amp;gt;&lt;br /&gt;
只要更改 crontable 的設定就可以修改更新的頻率&amp;lt;br/&amp;gt;&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2072</id>
		<title>網站建置技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2072"/>
				<updated>2008-10-23T17:44:07Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：/* 在首頁加上熱點頁面的前十名 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==開放以LDAP帳號登入認證==&lt;br /&gt;
1、在 /usr/local/etc/openldap/ldap.conf 中加上一行&lt;br /&gt;
::: TLS_REQCERT     never&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( 'extensions/LdapAuthentication.php');&lt;br /&gt;
:::$wgAuth = new LdapAuthenticationPlugin();&lt;br /&gt;
:::$wgLDAPDomainNames = array(&amp;quot;Portal&amp;quot;);&lt;br /&gt;
:::$wgLDAPEncryptionType = array('Portal' =&amp;gt; 'ssl');&lt;br /&gt;
:::$wgLDAPServerNames = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;140.115.17.30&amp;quot;);&lt;br /&gt;
:::$wgLDAPSearchStrings = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;uid=USER-NAME,ou=People,dc=cc,dc=ncu&amp;quot;);$wgLDAPUseLocal = true;&lt;br /&gt;
:::$wgLDAPAddLDAPUsers = false;&lt;br /&gt;
:::$wgLDAPUpdateLDAP = false;&lt;br /&gt;
:::$wgLDAPMailPassword = false;&lt;br /&gt;
:::$wgLDAPRetrievePrefs = false;&lt;br /&gt;
:::$wgMinimalPasswordLength = 1;&lt;br /&gt;
==開放上傳檔案，並設限檔案副檔名類別==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgEnableUploads = true;&lt;br /&gt;
:::$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'ppt', 'pdf', 'docx', 'xlsx', 'pptx', 'vsd', 'pps' );&lt;br /&gt;
:::$wgFileBlacklist = array('html', 'htm', 'js', 'jsb','php', 'phtml', 'php3', 'php4', 'phps','shtml', 'jhtml', 'pl', 'py', 'cgi','exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );&lt;br /&gt;
==禁止一般使用者建立新帳號==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
:::$wgGroupPermissions['sysop']['createaccount'] = true;&lt;br /&gt;
==設定只有登入系統的使用者，才有權利編輯頁面==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['edit'] = false;&lt;br /&gt;
:::$wgGroupPermissions['user']['edit'] = true;&lt;br /&gt;
==置換首頁logo圖檔，為計中logo==&lt;br /&gt;
1、先將計中logo圖檔，上傳放置於mediawiki\skins\wiki.gif&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLogo=&amp;quot;&amp;lt;nowiki&amp;gt;https://wiki.cc.ncu.edu.tw/mediawiki/skins/wiki.gif&amp;lt;/nowiki&amp;gt;&amp;quot;;&lt;br /&gt;
==設定正確的時區顯示==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLocaltimezone=&amp;quot;Asia/Taipei&amp;quot;;&lt;br /&gt;
:::$wgLocalTZoffset=date(&amp;quot;Z&amp;quot;)/60;&lt;br /&gt;
==網址從/mediawiki/index.php/ 改成 /wiki/ 式網址，以達成縮短網址==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgArticlePath = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
2、修改/usr/local/etc/apache22/httpd.conf，增加以下內容：&lt;br /&gt;
:::Alias /wiki /home/www/mediawiki/index.php&lt;br /&gt;
:::Alias /index.php /home/www/mediawiki/index.php&lt;br /&gt;
==加裝 template: languages extensions，以支援英文版 content頁面編輯==&lt;br /&gt;
1、將此檔[[image:P.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( &amp;quot;$IP/extensions/ParserFunctions/ParserFunctions.php&amp;quot; );&lt;br /&gt;
==加裝 category tree extensions，以支援 subcategory==&lt;br /&gt;
1、將此檔[[image:C.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseAjax = true;&lt;br /&gt;
:::require_once( 'extensions/CategoryTree/CategoryTree.php' );&lt;br /&gt;
&lt;br /&gt;
==加裝 tinymce extensions==&lt;br /&gt;
1、將此檔[[image:T.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseTinymce = true;&lt;br /&gt;
:::$wgDefaultUserOptions ['showtoolbar'] = 0;&lt;br /&gt;
:::$wgTinymceTheme = &amp;quot;msword&amp;quot;;&lt;br /&gt;
:::require_once(&amp;quot;$IP/extensions/tinymce/TinyMCE_MW.php&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==將登入/登出改為英文==&lt;br /&gt;
先到 mediawiki/languages/messages/ 資料夾下&amp;lt;br&amp;gt;&lt;br /&gt;
複製 MessagesEn.php 中 # Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
在 MessagesZh_tw.php 中 取代原本的 #Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
即可將 login/logout 相關文字改為英文 (包括登入/註冊頁面)&lt;br /&gt;
&lt;br /&gt;
==在首頁加上熱點頁面的前十名==&lt;br /&gt;
先新增一個 template 接著進入資料庫&amp;lt;br/&amp;gt;&lt;br /&gt;
在 recentchanges、revision、text 這三個 table 中找到剛剛新增的 template 的相對應欄位&amp;lt;br/&amp;gt;&lt;br /&gt;
分別將 rc_id、rev_text_id、old_id 記下來&amp;lt;br/&amp;gt;&lt;br /&gt;
寫一隻 php 程式進入資料庫 `page` 這個 table 抓出 page_namespace 為 0 的資料&amp;lt;br/&amp;gt;&lt;br /&gt;
按照 page_counter 做遞減排序，即可得到熱點頁面的排名&amp;lt;br/&amp;gt;&lt;br /&gt;
    $sql = &amp;quot;SELECT * FROM `page` WHERE page_namespace='0' and `page_title` NOT IN ('&amp;quot;.implode(&amp;quot;','&amp;quot;,$black_list).&amp;quot;') ORDER BY page_counter DESC LIMIT 0,10&amp;quot;;&lt;br /&gt;
將找到的資料整理後 UPDATE recentchanges、revision、text 這三個 table&amp;lt;br/&amp;gt;&lt;br /&gt;
   $list .= $i . '. [['.$res['page_title'].']]('.number_format($res['page_counter']).'次瀏覽)';&lt;br /&gt;
分別更新 rc_new_len  rev_len  old_text&amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;quot;UPDATE `text` SET `old_text` = '&amp;quot;.$list.&amp;quot;' WHERE `old_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `revision` SET `rev_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rev_text_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `recentchanges` SET `rc_new_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rc_id`=''&amp;quot;;&lt;br /&gt;
接著在首頁 include 剛剛新增的 template&amp;lt;br/&amp;gt;&lt;br /&gt;
熱點頁面就會顯示在首頁了&amp;lt;br/&amp;gt;&lt;br /&gt;
將此 php 程式寫入 crontable 在每日 0 點 1 分時執行，所以每天將更新一次前十名&amp;lt;br/&amp;gt;&lt;br /&gt;
只要更改 crontable 的設定就可以修改更新的頻率&amp;lt;br/&amp;gt;&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2071</id>
		<title>網站建置技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2071"/>
				<updated>2008-10-23T17:43:19Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：/* 在首頁加上熱點頁面的前十名 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==開放以LDAP帳號登入認證==&lt;br /&gt;
1、在 /usr/local/etc/openldap/ldap.conf 中加上一行&lt;br /&gt;
::: TLS_REQCERT     never&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( 'extensions/LdapAuthentication.php');&lt;br /&gt;
:::$wgAuth = new LdapAuthenticationPlugin();&lt;br /&gt;
:::$wgLDAPDomainNames = array(&amp;quot;Portal&amp;quot;);&lt;br /&gt;
:::$wgLDAPEncryptionType = array('Portal' =&amp;gt; 'ssl');&lt;br /&gt;
:::$wgLDAPServerNames = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;140.115.17.30&amp;quot;);&lt;br /&gt;
:::$wgLDAPSearchStrings = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;uid=USER-NAME,ou=People,dc=cc,dc=ncu&amp;quot;);$wgLDAPUseLocal = true;&lt;br /&gt;
:::$wgLDAPAddLDAPUsers = false;&lt;br /&gt;
:::$wgLDAPUpdateLDAP = false;&lt;br /&gt;
:::$wgLDAPMailPassword = false;&lt;br /&gt;
:::$wgLDAPRetrievePrefs = false;&lt;br /&gt;
:::$wgMinimalPasswordLength = 1;&lt;br /&gt;
==開放上傳檔案，並設限檔案副檔名類別==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgEnableUploads = true;&lt;br /&gt;
:::$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'ppt', 'pdf', 'docx', 'xlsx', 'pptx', 'vsd', 'pps' );&lt;br /&gt;
:::$wgFileBlacklist = array('html', 'htm', 'js', 'jsb','php', 'phtml', 'php3', 'php4', 'phps','shtml', 'jhtml', 'pl', 'py', 'cgi','exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );&lt;br /&gt;
==禁止一般使用者建立新帳號==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
:::$wgGroupPermissions['sysop']['createaccount'] = true;&lt;br /&gt;
==設定只有登入系統的使用者，才有權利編輯頁面==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['edit'] = false;&lt;br /&gt;
:::$wgGroupPermissions['user']['edit'] = true;&lt;br /&gt;
==置換首頁logo圖檔，為計中logo==&lt;br /&gt;
1、先將計中logo圖檔，上傳放置於mediawiki\skins\wiki.gif&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLogo=&amp;quot;&amp;lt;nowiki&amp;gt;https://wiki.cc.ncu.edu.tw/mediawiki/skins/wiki.gif&amp;lt;/nowiki&amp;gt;&amp;quot;;&lt;br /&gt;
==設定正確的時區顯示==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLocaltimezone=&amp;quot;Asia/Taipei&amp;quot;;&lt;br /&gt;
:::$wgLocalTZoffset=date(&amp;quot;Z&amp;quot;)/60;&lt;br /&gt;
==網址從/mediawiki/index.php/ 改成 /wiki/ 式網址，以達成縮短網址==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgArticlePath = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
2、修改/usr/local/etc/apache22/httpd.conf，增加以下內容：&lt;br /&gt;
:::Alias /wiki /home/www/mediawiki/index.php&lt;br /&gt;
:::Alias /index.php /home/www/mediawiki/index.php&lt;br /&gt;
==加裝 template: languages extensions，以支援英文版 content頁面編輯==&lt;br /&gt;
1、將此檔[[image:P.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( &amp;quot;$IP/extensions/ParserFunctions/ParserFunctions.php&amp;quot; );&lt;br /&gt;
==加裝 category tree extensions，以支援 subcategory==&lt;br /&gt;
1、將此檔[[image:C.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseAjax = true;&lt;br /&gt;
:::require_once( 'extensions/CategoryTree/CategoryTree.php' );&lt;br /&gt;
&lt;br /&gt;
==加裝 tinymce extensions==&lt;br /&gt;
1、將此檔[[image:T.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseTinymce = true;&lt;br /&gt;
:::$wgDefaultUserOptions ['showtoolbar'] = 0;&lt;br /&gt;
:::$wgTinymceTheme = &amp;quot;msword&amp;quot;;&lt;br /&gt;
:::require_once(&amp;quot;$IP/extensions/tinymce/TinyMCE_MW.php&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==將登入/登出改為英文==&lt;br /&gt;
先到 mediawiki/languages/messages/ 資料夾下&amp;lt;br&amp;gt;&lt;br /&gt;
複製 MessagesEn.php 中 # Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
在 MessagesZh_tw.php 中 取代原本的 #Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
即可將 login/logout 相關文字改為英文 (包括登入/註冊頁面)&lt;br /&gt;
&lt;br /&gt;
==在首頁加上熱點頁面的前十名==&lt;br /&gt;
先新增一個 template 接著進入資料庫&lt;br /&gt;
在 recentchanges、revision、text 這三個 table 中找到剛剛新增的 template 的相對應欄位&lt;br /&gt;
分別將 rc_id、rev_text_id、old_id 記下來&lt;br /&gt;
寫一隻 php 程式進入資料庫 `page` 這個 table 抓出 page_namespace 為 0 的資料&lt;br /&gt;
按照 page_counter 做遞減排序，即可得到熱點頁面的排名&lt;br /&gt;
    $sql = &amp;quot;SELECT * FROM `page` WHERE page_namespace='0' and `page_title` NOT IN ('&amp;quot;.implode(&amp;quot;','&amp;quot;,$black_list).&amp;quot;') ORDER BY page_counter DESC LIMIT 0,10&amp;quot;;&lt;br /&gt;
將找到的資料整理後 UPDATE recentchanges、revision、text 這三個 table&lt;br /&gt;
   $list .= $i . '. [['.$res['page_title'].']]('.number_format($res['page_counter']).'次瀏覽)';&lt;br /&gt;
分別更新 rc_new_len  rev_len  old_text&lt;br /&gt;
  &amp;quot;UPDATE `text` SET `old_text` = '&amp;quot;.$list.&amp;quot;' WHERE `old_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `revision` SET `rev_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rev_text_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `recentchanges` SET `rc_new_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rc_id`=''&amp;quot;;&lt;br /&gt;
接著在首頁 include 剛剛新增的 template&lt;br /&gt;
熱點頁面就會顯示在首頁了&lt;br /&gt;
將此 php 程式寫入 crontable 在每日 0 點 1 分時執行，所以每天將更新一次前十名&lt;br /&gt;
只要更改 crontable 的設定就可以修改更新的頻率&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2070</id>
		<title>網站建置技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=2070"/>
				<updated>2008-10-23T17:41:23Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==開放以LDAP帳號登入認證==&lt;br /&gt;
1、在 /usr/local/etc/openldap/ldap.conf 中加上一行&lt;br /&gt;
::: TLS_REQCERT     never&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( 'extensions/LdapAuthentication.php');&lt;br /&gt;
:::$wgAuth = new LdapAuthenticationPlugin();&lt;br /&gt;
:::$wgLDAPDomainNames = array(&amp;quot;Portal&amp;quot;);&lt;br /&gt;
:::$wgLDAPEncryptionType = array('Portal' =&amp;gt; 'ssl');&lt;br /&gt;
:::$wgLDAPServerNames = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;140.115.17.30&amp;quot;);&lt;br /&gt;
:::$wgLDAPSearchStrings = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;uid=USER-NAME,ou=People,dc=cc,dc=ncu&amp;quot;);$wgLDAPUseLocal = true;&lt;br /&gt;
:::$wgLDAPAddLDAPUsers = false;&lt;br /&gt;
:::$wgLDAPUpdateLDAP = false;&lt;br /&gt;
:::$wgLDAPMailPassword = false;&lt;br /&gt;
:::$wgLDAPRetrievePrefs = false;&lt;br /&gt;
:::$wgMinimalPasswordLength = 1;&lt;br /&gt;
==開放上傳檔案，並設限檔案副檔名類別==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgEnableUploads = true;&lt;br /&gt;
:::$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'ppt', 'pdf', 'docx', 'xlsx', 'pptx', 'vsd', 'pps' );&lt;br /&gt;
:::$wgFileBlacklist = array('html', 'htm', 'js', 'jsb','php', 'phtml', 'php3', 'php4', 'phps','shtml', 'jhtml', 'pl', 'py', 'cgi','exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );&lt;br /&gt;
==禁止一般使用者建立新帳號==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
:::$wgGroupPermissions['sysop']['createaccount'] = true;&lt;br /&gt;
==設定只有登入系統的使用者，才有權利編輯頁面==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['edit'] = false;&lt;br /&gt;
:::$wgGroupPermissions['user']['edit'] = true;&lt;br /&gt;
==置換首頁logo圖檔，為計中logo==&lt;br /&gt;
1、先將計中logo圖檔，上傳放置於mediawiki\skins\wiki.gif&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLogo=&amp;quot;&amp;lt;nowiki&amp;gt;https://wiki.cc.ncu.edu.tw/mediawiki/skins/wiki.gif&amp;lt;/nowiki&amp;gt;&amp;quot;;&lt;br /&gt;
==設定正確的時區顯示==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLocaltimezone=&amp;quot;Asia/Taipei&amp;quot;;&lt;br /&gt;
:::$wgLocalTZoffset=date(&amp;quot;Z&amp;quot;)/60;&lt;br /&gt;
==網址從/mediawiki/index.php/ 改成 /wiki/ 式網址，以達成縮短網址==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgArticlePath = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
2、修改/usr/local/etc/apache22/httpd.conf，增加以下內容：&lt;br /&gt;
:::Alias /wiki /home/www/mediawiki/index.php&lt;br /&gt;
:::Alias /index.php /home/www/mediawiki/index.php&lt;br /&gt;
==加裝 template: languages extensions，以支援英文版 content頁面編輯==&lt;br /&gt;
1、將此檔[[image:P.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( &amp;quot;$IP/extensions/ParserFunctions/ParserFunctions.php&amp;quot; );&lt;br /&gt;
==加裝 category tree extensions，以支援 subcategory==&lt;br /&gt;
1、將此檔[[image:C.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseAjax = true;&lt;br /&gt;
:::require_once( 'extensions/CategoryTree/CategoryTree.php' );&lt;br /&gt;
&lt;br /&gt;
==加裝 tinymce extensions==&lt;br /&gt;
1、將此檔[[image:T.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseTinymce = true;&lt;br /&gt;
:::$wgDefaultUserOptions ['showtoolbar'] = 0;&lt;br /&gt;
:::$wgTinymceTheme = &amp;quot;msword&amp;quot;;&lt;br /&gt;
:::require_once(&amp;quot;$IP/extensions/tinymce/TinyMCE_MW.php&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==將登入/登出改為英文==&lt;br /&gt;
先到 mediawiki/languages/messages/ 資料夾下&amp;lt;br&amp;gt;&lt;br /&gt;
複製 MessagesEn.php 中 # Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
在 MessagesZh_tw.php 中 取代原本的 #Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
即可將 login/logout 相關文字改為英文 (包括登入/註冊頁面)&lt;br /&gt;
&lt;br /&gt;
==在首頁加上熱點頁面的前十名==&lt;br /&gt;
先新增一個 template 接著進入資料庫&lt;br /&gt;
在 recentchanges、revision、text 這三個 table 中找到剛剛新增的 template 的相對應欄位&lt;br /&gt;
分別將 rc_id、rev_text_id、old_id 記下來&lt;br /&gt;
寫一隻 php 程式進入資料庫 `page` 這個 table 抓出 page_namespace 為 0 的資料&lt;br /&gt;
按照 page_counter 做遞減排序，即可得到熱點頁面的排名&lt;br /&gt;
    $sql = &amp;quot;SELECT * FROM `page` WHERE page_namespace='0' and `page_title` NOT IN ('&amp;quot;.implode(&amp;quot;','&amp;quot;,$black_list).&amp;quot;') ORDER BY page_counter DESC LIMIT 0,10&amp;quot;;&lt;br /&gt;
將找到的資料整理後 UPDATE recentchanges、revision、text 這三個 table&lt;br /&gt;
   $list .= $i . '. [['.$res['page_title'].']]('.number_format($res['page_counter']).'次瀏覽)&amp;lt;br/&amp;gt;';&lt;br /&gt;
分別更新 rc_new_len  rev_len  old_text&lt;br /&gt;
  &amp;quot;UPDATE `text` SET `old_text` = '&amp;quot;.$list.&amp;quot;' WHERE `old_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `revision` SET `rev_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rev_text_id`=''&amp;quot;;&lt;br /&gt;
  &amp;quot;UPDATE `recentchanges` SET `rc_new_len` = '&amp;quot;.strlen($list).&amp;quot;' WHERE `rc_id`=''&amp;quot;;&lt;br /&gt;
接著在首頁 include 剛剛新增的 template&lt;br /&gt;
熱點頁面就會顯示在首頁了&lt;br /&gt;
將此 php 程式寫入 crontable 在每日 0 點 1 分時執行，所以每天將更新一次前十名&lt;br /&gt;
只要更改 crontable 的設定就可以修改更新的頻率&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E9%A6%96%E9%A0%81&amp;diff=2065</id>
		<title>首頁</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E9%A6%96%E9%A0%81&amp;diff=2065"/>
				<updated>2008-10-23T13:09:37Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;　　NCUCCWiki　網站的創建，源起於　[http://www.cc.ncu.edu.tw 中央大學電算中心]　[http://selab.csie.ncu.edu.tw/yjlee/ 李主任允中]　為了加強服務中央大學及桃園區域網路中心的使用者，積極推行 Service Desk ，NCUCCWiki　為 Service Desk 相關服務其中的一環，期望使用者透過瀏覽查閱　NCUCCWiki　網站的內容，可以更清楚便捷的獲取中大電算中心所提供的各項服務資訊及技術文件，進而快速解決使用者對於各項服務的相關問題。&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
　　NCUCCWiki　網站的內容，初期由　[http://www.cc.ncu.edu.tw/introduction/member.php 中大電算中心人員]、[http://wiki.cc.ncu.edu.tw/wiki/Workstud#.E7.8F.BE.E4.BB.BB.E6.88.90.E5.93.A1 工讀小組成員]　及 　[https://140.115.17.31/sysmgr/index.php?section=member 網路及系統管理小組成員]　共同協力撰寫，日後希望可拓廣至全校師生共同參與知識的累積、貢獻與分享。&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
　　本網站上傳檔案大小限制為10MB，副檔名格式限制為 png、gif、jpg、jpeg、doc、docx、xls、xlsx、ppt、pptx、pps、pdf、vsd、tgz、zip、rar。&amp;lt;br&amp;gt;　　&lt;br /&gt;
&lt;br /&gt;
    對於本站內容若有任何問題或是建議，請&amp;lt;font color=blue&amp;gt;聯絡我們 =&amp;gt;&amp;lt;/font&amp;gt;( mailto:ncucc@cc.ncu.edu.tw )&lt;br /&gt;
&lt;br /&gt;
{{Hot}}&lt;br /&gt;
{{Languages}}&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%A8%A1%E6%9D%BF:Hot&amp;diff=2064</id>
		<title>模板:Hot</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%A8%A1%E6%9D%BF:Hot&amp;diff=2064"/>
				<updated>2008-10-23T12:57:07Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：新頁面: TEST&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''最多人點選頁面top 10'''&amp;lt;br/&amp;gt;1. [[新生必讀文件]](152,518次瀏覽)&amp;lt;br/&amp;gt;2. [[Lsass_木馬]](37,018次瀏覽)&amp;lt;br/&amp;gt;3. [[Outlook_express_收件匣爆掉而無法收信]](36,020次瀏覽)&amp;lt;br/&amp;gt;4. [[E-mail]](31,182次瀏覽)&amp;lt;br/&amp;gt;5. [[新生必讀文件/en]](28,335次瀏覽)&amp;lt;br/&amp;gt;6. [[網站建置技術文件]](26,799次瀏覽)&amp;lt;br/&amp;gt;7. [[Workstud]](26,762次瀏覽)&amp;lt;br/&amp;gt;8. [[行政部門各類服務]](22,401次瀏覽)&amp;lt;br/&amp;gt;9. [[IP_是否被盜用的研判]](21,489次瀏覽)&amp;lt;br/&amp;gt;10. [[ServiceDesk]](21,409次瀏覽)&amp;lt;br/&amp;gt;&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E9%A6%96%E9%A0%81&amp;diff=1867</id>
		<title>首頁</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E9%A6%96%E9%A0%81&amp;diff=1867"/>
				<updated>2008-09-19T02:14:51Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;　　NCUCCWiki　網站的創建，源起於　[http://www.cc.ncu.edu.tw 中央大學電算中心]　[http://selab.csie.ncu.edu.tw/yjlee/ 李主任允中]　為了加強服務中央大學及桃園區域網路中心的使用者，積極推行 Service Desk ，NCUCCWiki　為 Service Desk 相關服務其中的一環，期望使用者透過瀏覽查閱　NCUCCWiki　網站的內容，可以更清楚便捷的獲取中大電算中心所提供的各項服務資訊及技術文件，進而快速解決使用者對於各項服務的相關問題。&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
　　NCUCCWiki　網站的內容，初期由　[http://www.cc.ncu.edu.tw/introduction/member.php 中大電算中心人員]、[http://wiki.cc.ncu.edu.tw/wiki/Workstud#.E7.8F.BE.E4.BB.BB.E6.88.90.E5.93.A1 工讀小組成員]　及 　[https://140.115.17.31/sysmgr/index.php?section=member 網路及系統管理小組成員]　共同協力撰寫，日後希望可拓廣至全校師生共同參與知識的累積、貢獻與分享。&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
　　本網站上傳檔案大小限制為10MB，副檔名格式限制為 png、gif、jpg、jpeg、doc、docx、xls、xlsx、ppt、pptx、pps、pdf、vsd、tgz、zip、rar。&amp;lt;br&amp;gt;　　&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''HomePage'''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
　　The creation of NCUCCWiki webpage is the idea of the head [http://selab.csie.ncu.edu.tw/yjlee/ Yun-Jung Lee] of [http://www.cc.ncu.edu.tw National Central University Computer Center](called NCUCC as follow).  It's purpose to serves the user of National Central University and Local Area Network stronger.  To present the Service Desk and NCUCCWiki as a part of relational services.  We hope users can realize the services and technical documents which NCUCC serves quickly and resolve the questions that users faced in advance, through reading the content of NCUCCWiki.&lt;br /&gt;
&lt;br /&gt;
　　The contents of NCUCCWiki is written by [http://www.cc.ncu.edu.tw/introduction/member.php the member of NCUCC], [http://wiki.cc.ncu.edu.tw/wiki/Workstud#.E7.8F.BE.E4.BB.BB.E6.88.90.E5.93.A1 part-time group], and [https://140.115.17.31/sysmgr/index.php?section=member system network manage group(SNMG)] at first.  Hope it can extend to all teachers and students on campus to share the knowledges.&lt;br /&gt;
&lt;br /&gt;
　　This website limit the size of upload files to 10MB and limit the extension can only be png, gif, jpg, jpeg, doc, docx, xls, xlsx, ppt, pptx, pps, pdf, vsd, tgz, zip, and rar.&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=NCUCCWiki:%E7%89%88%E6%AC%8A%E8%A8%8A%E6%81%AF&amp;diff=1149</id>
		<title>NCUCCWiki:版權訊息</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=NCUCCWiki:%E7%89%88%E6%AC%8A%E8%A8%8A%E6%81%AF&amp;diff=1149"/>
				<updated>2008-04-30T12:29:09Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;　　本網站所有內容之版權原則除另有註明外，皆採用[http://creativecommons.org/licenses/by/3.0/deed.zh_TW CC-by 授權條款]。　CC是指Creative Commons；by意指必須按照作者或授權人所指定的方式，表彰其姓名。Creative Commons詳細說明請參考[http://zh.wikipedia.org/w/index.php?title=%E5%89%B5%E4%BD%9C%E5%85%B1%E7%94%A8&amp;amp;variant=zh-tw 維基百科]。&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
'''NCUCCWiki:Copy Right'''&amp;lt;br /&amp;gt;&lt;br /&gt;
　　Except the content which is marked for the other license, all the content in this website are licensed by [http://creativecommons.org/licenses/by/3.0/deed.zh_TW CC-by license].  CC means Creative Commons; &amp;quot;By&amp;quot; indicates that you should show the author's name.  Please check [http://zh.wikipedia.org/w/index.php?title=%E5%89%B5%E4%BD%9C%E5%85%B1%E7%94%A8&amp;amp;variant=zh-tw Wikipedia] for more information about Creative Commons.&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1131</id>
		<title>網站建置技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E7%B6%B2%E7%AB%99%E5%BB%BA%E7%BD%AE%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1131"/>
				<updated>2008-04-30T07:53:36Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==開放以LDAP帳號登入認證==&lt;br /&gt;
1、在 /usr/local/etc/openldap/ldap.conf 中加上一行&lt;br /&gt;
::: TLS_REQCERT     never&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( 'extensions/LdapAuthentication.php');&lt;br /&gt;
:::$wgAuth = new LdapAuthenticationPlugin();&lt;br /&gt;
:::$wgLDAPDomainNames = array(&amp;quot;Portal&amp;quot;);&lt;br /&gt;
:::$wgLDAPEncryptionType = array('Portal' =&amp;gt; 'ssl');&lt;br /&gt;
:::$wgLDAPServerNames = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;140.115.17.30&amp;quot;);&lt;br /&gt;
:::$wgLDAPSearchStrings = array(&amp;quot;Portal&amp;quot;=&amp;gt;&amp;quot;uid=USER-NAME,ou=People,dc=cc,dc=ncu&amp;quot;);$wgLDAPUseLocal = true;&lt;br /&gt;
:::$wgLDAPAddLDAPUsers = false;&lt;br /&gt;
:::$wgLDAPUpdateLDAP = false;&lt;br /&gt;
:::$wgLDAPMailPassword = false;&lt;br /&gt;
:::$wgLDAPRetrievePrefs = false;&lt;br /&gt;
:::$wgMinimalPasswordLength = 1;&lt;br /&gt;
==開放上傳檔案，並設限檔案副檔名類別==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgEnableUploads = true;&lt;br /&gt;
:::$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'ppt', 'pdf', 'docx', 'xlsx', 'pptx', 'vsd', 'pps' );&lt;br /&gt;
:::$wgFileBlacklist = array('html', 'htm', 'js', 'jsb','php', 'phtml', 'php3', 'php4', 'phps','shtml', 'jhtml', 'pl', 'py', 'cgi','exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );&lt;br /&gt;
==禁止一般使用者建立新帳號==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
:::$wgGroupPermissions['sysop']['createaccount'] = true;&lt;br /&gt;
==設定只有登入系統的使用者，才有權利編輯頁面==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgGroupPermissions['*']['edit'] = false;&lt;br /&gt;
:::$wgGroupPermissions['user']['edit'] = true;&lt;br /&gt;
==置換首頁logo圖檔，為計中logo==&lt;br /&gt;
1、先將計中logo圖檔，上傳放置於mediawiki\skins\wiki.gif&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLogo=&amp;quot;&amp;lt;nowiki&amp;gt;https://wiki.cc.ncu.edu.tw/mediawiki/skins/wiki.gif&amp;lt;/nowiki&amp;gt;&amp;quot;;&lt;br /&gt;
==設定正確的時區顯示==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgLocaltimezone=&amp;quot;Asia/Taipei&amp;quot;;&lt;br /&gt;
:::$wgLocalTZoffset=date(&amp;quot;Z&amp;quot;)/60;&lt;br /&gt;
==網址從/mediawiki/index.php/ 改成 /wiki/ 式網址，以達成縮短網址==&lt;br /&gt;
1、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgArticlePath = &amp;quot;/wiki/$1&amp;quot;;&lt;br /&gt;
2、修改/usr/local/etc/apache22/httpd.conf，增加以下內容：&lt;br /&gt;
:::Alias /wiki /home/www/mediawiki/index.php&lt;br /&gt;
:::Alias /index.php /home/www/mediawiki/index.php&lt;br /&gt;
==加裝 template: languages extensions，以支援英文版 content頁面編輯==&lt;br /&gt;
1、將此檔[[image:P.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::require_once( &amp;quot;$IP/extensions/ParserFunctions/ParserFunctions.php&amp;quot; );&lt;br /&gt;
==加裝 category tree extensions，以支援 subcategory==&lt;br /&gt;
1、將此檔[[image:C.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseAjax = true;&lt;br /&gt;
:::require_once( 'extensions/CategoryTree/CategoryTree.php' );&lt;br /&gt;
&lt;br /&gt;
==加裝 tinymce extensions==&lt;br /&gt;
1、將此檔[[image:T.tgz]]下載後，解壓縮到 mediawiki 下的 extensions 資料夾&amp;lt;br&amp;gt;&lt;br /&gt;
2、修改MediaWiki設定檔LocalSettings.php，增加以下內容：&lt;br /&gt;
:::$wgUseTinymce = true;&lt;br /&gt;
:::$wgDefaultUserOptions ['showtoolbar'] = 0;&lt;br /&gt;
:::$wgTinymceTheme = &amp;quot;msword&amp;quot;;&lt;br /&gt;
:::require_once(&amp;quot;$IP/extensions/tinymce/TinyMCE_MW.php&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
==將登入/登出改為英文==&lt;br /&gt;
先到 mediawiki/languages/messages/ 資料夾下&amp;lt;br&amp;gt;&lt;br /&gt;
複製 MessagesEn.php 中 # Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
在 MessagesZh_tw.php 中 取代原本的 #Login and logout pages 區段的內容&amp;lt;br&amp;gt;&lt;br /&gt;
即可將 login/logout 相關文字改為英文 (包括登入/註冊頁面)&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=NCUCCWiki:%E7%89%88%E6%AC%8A%E8%A8%8A%E6%81%AF&amp;diff=1129</id>
		<title>NCUCCWiki:版權訊息</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=NCUCCWiki:%E7%89%88%E6%AC%8A%E8%A8%8A%E6%81%AF&amp;diff=1129"/>
				<updated>2008-04-30T07:47:08Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;　　本網站所有內容之版權原則除另有註明外，皆採用[http://creativecommons.org/licenses/by/3.0/deed.zh_TW CC-by 授權條款]。　CC是指Creative Commons；by意指必須按照作者或授權人所指定的方式，表彰其姓名。Creative Commons詳細說明請參考[http://zh.wikipedia.org/w/index.php?title=%E5%89%B5%E4%BD%9C%E5%85%B1%E7%94%A8&amp;amp;variant=zh-tw 維基百科]。&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
'''NCUCCWiki:Copy Right'''&amp;lt;br /&amp;gt;&lt;br /&gt;
　　Except the content which is marked, all the content in this website are using [http://creativecommons.org/licenses/by/3.0/deed.zh_TW CC-by Copy Right].  CC means Creative Commons; by means it shoule follow the way that author allowed to show his/her name.  Please check [http://zh.wikipedia.org/w/index.php?title=%E5%89%B5%E4%BD%9C%E5%85%B1%E7%94%A8&amp;amp;variant=zh-tw Wikipedia] for more information about Creative Commons.&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E9%A6%96%E9%A0%81&amp;diff=1097</id>
		<title>首頁</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E9%A6%96%E9%A0%81&amp;diff=1097"/>
				<updated>2008-04-18T07:00:19Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;　　NCUCCWiki　網站的創建，源起於　[http://www.cc.ncu.edu.tw 中央大學電算中心]　[http://selab.csie.ncu.edu.tw/yjlee/ 李主任允中]　為了加強服務中央大學及桃園區域網路中心的使用者，積極推行 Service Desk ，NCUCCWiki　為 Service Desk 相關服務其中的一環，期望使用者透過瀏覽查閱　NCUCCWiki　網站的內容，可以更清楚便捷的獲取中大電算中心所提供的各項服務資訊及技術文件，進而快速解決使用者對於各項服務的相關問題。&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
　　NCUCCWiki　網站的內容，初期由　[http://www.cc.ncu.edu.tw/introduction/member.php 中大電算中心人員]、[https://donkey.cc.ncu.edu.tw/~ccwiki/index.php/Team_list 工讀小組成員]　及 　[https://140.115.17.31/sysmgr/index.php?section=member 網路及系統管理小組成員]　共同協力撰寫，日後希望可拓廣至全校師生共同參與知識的累積、貢獻與分享。&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
　　本網站上傳檔案大小限制為10MB，副檔名格式限制為 png、gif、jpg、jpeg、doc、docx、xls、xlsx、ppt、pptx、pps、pdf、vsd、tgz、zip、rar。&amp;lt;br&amp;gt;　　&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''HomePage'''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
　　The creation of NCUCCWiki webpage is the idea of the head [http://selab.csie.ncu.edu.tw/yjlee/ Yun-Jung Lee] of [http://www.cc.ncu.edu.tw National Central University Computer Center](called NCUCC as follow).  It's purpose to serves the user of National Central University and Local Area Network stronger.  To present the Service Desk and NCUCCWiki as a part of relational services.  We hope users can realize the services and technical documents which NCUCC serves quickly and resolve the questions that users faced in advance, through reading the content of NCUCCWiki.&lt;br /&gt;
&lt;br /&gt;
　　The contents of NCUCCWiki is written by [http://www.cc.ncu.edu.tw/introduction/member.php the member of NCUCC], [https://donkey.cc.ncu.edu.tw/~ccwiki/index.php/Team_list part-time group], and [https://140.115.17.31/sysmgr/index.php?section=member system network manage group(SNMG)] at first.  Hope it can extend to all teachers and students on campus to share the knowledges.&lt;br /&gt;
&lt;br /&gt;
　　This website limit the size of upload files to 10MB and limit the format can only be png, gif, jpg, jpeg, doc, docx, xls, xlsx, ppt, pptx, pps, pdf, vsd, tgz, zip, and rar.&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1063</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1063"/>
				<updated>2008-04-09T13:49:24Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：/* 與 wiki 的連結 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
設定完成後  將舊版 HelpDesk 的資料庫匯入需要更改 mantis_user_table 中的資料&amp;lt;br/&amp;gt;&lt;br /&gt;
將 password 那個欄位設為 NULL 使用 SQL UPDATE 指令&lt;br /&gt;
  UPDATE `mantis_user_table` SET password='' where username not in('administrator');&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
   #計中目前設置為 $g_wiki_engine_url = $t_protocol.'://wiki.cc.ncu.edu.tw/wiki/';&lt;br /&gt;
將 core/wiki_mediawiki_api.php中&lt;br /&gt;
   function wiki_mediawiki_get_url_for_page_id( $p_page_id ) {&lt;br /&gt;
                         ....&lt;br /&gt;
         return $t_root_url . 'index.php/' . urlencode( $t_page_id );&lt;br /&gt;
   }&lt;br /&gt;
return 中的 'index.php' 刪除  方可以正確的位置連接到 wiki 頁面 即&lt;br /&gt;
   return  $t_root_url . urlencode( $t_page_id );&lt;br /&gt;
   &lt;br /&gt;
----&lt;br /&gt;
從各回報的 bug 中點 wiki 的選項將之導到 mantis:project_name bug_category&amp;lt;br/&amp;gt;&lt;br /&gt;
修改 core/wiki_mediawiki_api.php&lt;br /&gt;
  function wiki_mediawiki_get_page_id_for_issue( $p_issue_id ){&lt;br /&gt;
    //return $c_issue_id;  (將此行 刪除\註解 改為下面那行)&lt;br /&gt;
    return project_get_name(bug_get_field($c_issue_id,'project_id')) . '_' . bug_get_field($c_issue_id,'category');&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
  $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
  加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
  變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合==&lt;br /&gt;
將 mantis 更換為較新版本(version 1.1.1) 將舊版 mantis database 匯入後&amp;amp;nbsp; 若 admin 資料夾存在&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&lt;br /&gt;
點選 here 更新資料庫即可&lt;br /&gt;
----&lt;br /&gt;
匯入後由於舊版 mantis 的 中文預設 是 big5 所以在 mantis_user_pref_table 這個 table 中存 chinese_traditional_utf8 &lt;br /&gt;
新版則更名為 chinese_traditional&amp;amp;nbsp; 處理方法為在 mysql 下 update 指令&lt;br /&gt;
  UPDATE `mantis_user_pref_table` SET language='chinese_traditional';&lt;br /&gt;
&lt;br /&gt;
==更改mantis寄件者的email==&lt;br /&gt;
mantis安裝後預設寄件者是 noreply@example.com 將之更改為 noreply@cc.ncu.edu.tw 方法是 &amp;lt;br/&amp;gt;&lt;br /&gt;
  在 config_inc.php 中加入&lt;br /&gt;
  $g_from_email = 'noreply@cc.ncu.edu.tw';&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1034</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1034"/>
				<updated>2008-03-26T07:25:15Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
設定完成後  將舊版 HelpDesk 的資料庫匯入需要更改 mantis_user_table 中的資料&amp;lt;br/&amp;gt;&lt;br /&gt;
將 password 那個欄位設為 NULL 使用 SQL UPDATE 指令&lt;br /&gt;
  UPDATE `mantis_user_table` SET password='' where username not in('administrator');&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
----&lt;br /&gt;
從各回報的 bug 中點 wiki 的選項將之導到 mantis:project_name bug_category&amp;lt;br/&amp;gt;&lt;br /&gt;
修改 core/wiki_mediawiki_api.php&lt;br /&gt;
  function wiki_mediawiki_get_page_id_for_issue( $p_issue_id ){&lt;br /&gt;
    //return $c_issue_id;  (將此行 刪除\註解 改為下面那行)&lt;br /&gt;
    return project_get_name(bug_get_field($c_issue_id,'project_id')) . '_' . bug_get_field($c_issue_id,'category');&lt;br /&gt;
  }&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
  $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
  加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
  變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合==&lt;br /&gt;
將 mantis 更換為較新版本(version 1.1.1) 將舊版 mantis database 匯入後&amp;amp;nbsp; 若 admin 資料夾存在&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&lt;br /&gt;
點選 here 更新資料庫即可&lt;br /&gt;
----&lt;br /&gt;
匯入後由於舊版 mantis 的 中文預設 是 big5 所以在 mantis_user_pref_table 這個 table 中存 chinese_traditional_utf8 &lt;br /&gt;
新版則更名為 chinese_traditional&amp;amp;nbsp; 處理方法為在 mysql 下 update 指令&lt;br /&gt;
  UPDATE `mantis_user_pref_table` SET language='chinese_traditional';&lt;br /&gt;
&lt;br /&gt;
==更改mantis寄件者的email==&lt;br /&gt;
mantis安裝後預設寄件者是 noreply@example.com 將之更改為 noreply@cc.ncu.edu.tw 方法是 &amp;lt;br/&amp;gt;&lt;br /&gt;
  在 config_inc.php 中加入&lt;br /&gt;
  $g_from_email = 'noreply@cc.ncu.edu.tw';&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1007</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=1007"/>
				<updated>2008-03-21T07:04:46Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：/* 與現行 HelpDesk 的資料庫整合 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
  $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
  加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
  變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_     get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合== &amp;lt;br /&amp;gt;&lt;br /&gt;
將 mantis 更換為較新版本 將舊版 mantis database 匯入後&amp;amp;nbsp; 若 admin 資料夾存在&amp;lt;br /&amp;gt;&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&amp;lt;br /&amp;gt;&lt;br /&gt;
點選 here 更新資料庫即可&amp;lt;br /&amp;gt;&lt;br /&gt;
---- &amp;lt;br /&amp;gt;&lt;br /&gt;
匯入後由於舊版 mantis 的 中文預設 是 big5 所以在 mantis_user_pref_table 這個 table 中存 chinese_traditional_utf8 &amp;lt;br /&amp;gt;&lt;br /&gt;
新版則更名為 chinese_traditional&amp;amp;nbsp; 處理方法為在 mysql 下 update 指令&amp;amp;nbsp;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp; UPDATE `mantis_user_pref_table` SET language='chinese_traditional'; &lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=992</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=992"/>
				<updated>2008-03-19T08:58:50Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：/* 連結 wiki 時開新視窗 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
  $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
  加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
  變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_     get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合==&lt;br /&gt;
將 mantis 更換為較新版本 將舊版 mantis database 匯入後&amp;lt;br /&amp;gt;&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&amp;lt;br /&amp;gt;&lt;br /&gt;
點選 here 更新資料庫即可&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	<entry>
		<id>https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=991</id>
		<title>整合Mantis系統之技術文件</title>
		<link rel="alternate" type="text/html" href="https://wiki.cc.ncu.edu.tw/wikicc/index.php?title=%E6%95%B4%E5%90%88Mantis%E7%B3%BB%E7%B5%B1%E4%B9%8B%E6%8A%80%E8%A1%93%E6%96%87%E4%BB%B6&amp;diff=991"/>
				<updated>2008-03-19T08:56:38Z</updated>
		
		<summary type="html">&lt;p&gt;955002074：新頁面: ==Mantis 開放 LDAP、local 登入== 在 config_inc.php 中加入以下數行：     $g_login_method                 = LDAP;     $g_ldap_server                  = 'tiger.cc.ncu.edu.tw'; ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Mantis 開放 LDAP、local 登入==&lt;br /&gt;
在 config_inc.php 中加入以下數行：&lt;br /&gt;
    $g_login_method                 = LDAP;&lt;br /&gt;
    $g_ldap_server                  = 'tiger.cc.ncu.edu.tw';&lt;br /&gt;
    $g_ldap_port                    = '389';&lt;br /&gt;
    $g_ldap_root_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_organization            = '';    &lt;br /&gt;
    $g_ldap_uid_field               = 'uid';&lt;br /&gt;
    $g_ldap_bind_dn                 = 'dc=cc,dc=ncu';&lt;br /&gt;
    $g_ldap_bind_passwd             = '';&lt;br /&gt;
    $g_use_ldap_email               = OFF;&lt;br /&gt;
----&lt;br /&gt;
在 core/authentication_api.php 中&lt;br /&gt;
  修改 function auth_does_password_match()&lt;br /&gt;
    將  $t_password = user_get_field( $p_user_id, 'password' ); 移到 if ( LDAP == $t_configured_login_method ) 這行前&lt;br /&gt;
    並將&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
    修改成&lt;br /&gt;
      if ( LDAP == $t_configured_login_method ) {&lt;br /&gt;
          if($t_password == NULL)&lt;br /&gt;
              return ldap_authenticate( $p_user_id, $p_test_password );&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    下一行 array 中加上 LDAP&lt;br /&gt;
    $t_login_methods        = Array(MD5, CRYPT, PLAIN);&lt;br /&gt;
    變成 $t_login_methods        = Array(MD5, CRYPT, PLAIN, LDAP);&lt;br /&gt;
&lt;br /&gt;
  修改 function auth_process_plain_password&lt;br /&gt;
    case MD5:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
    加上 case LDAP:&lt;br /&gt;
      case MD5: case LDAP:&lt;br /&gt;
        $t_processed_password = md5( $p_password );&lt;br /&gt;
----&lt;br /&gt;
在 core/user_api.php 中 修改 function user_create()&lt;br /&gt;
  修改 $c_password = db_prepare_string( $t_password );&lt;br /&gt;
  為 $c_password = NULL; &lt;br /&gt;
----&lt;br /&gt;
在 account_page.php 中&lt;br /&gt;
  修改 &amp;lt;?php if ( !helper_call_custom_function( 'auth_can_change_password', array() ) ) { ?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
  為  &amp;lt;?php if(user_get_field($u_id,'password') == NULL){?&amp;gt; &amp;lt;!-- With LDAP --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==與 wiki 的連結 ==&lt;br /&gt;
在 config_inc.php 中加入以下數行&lt;br /&gt;
    # Wiki Integration Enabled?&lt;br /&gt;
   $g_wiki_enable = ON;&lt;br /&gt;
   # Wiki Engine&lt;br /&gt;
   $g_wiki_engine = 'mediawiki';&lt;br /&gt;
   # Wiki namespace to be used as root for all pages relating to this mantis installation.&lt;br /&gt;
   $g_wiki_root_namespace = 'mantis';&lt;br /&gt;
   # URL under which the wiki engine is hosted. Must be on the same server.&lt;br /&gt;
   $g_wiki_engine_url = $t_protocol . '://'.$t_host.'/%wiki_engine%/';&lt;br /&gt;
&lt;br /&gt;
==連結 wiki 時開新視窗==&lt;br /&gt;
在 bug_view_page.php 及 bug_view_advanced_page.php 中&lt;br /&gt;
  找到 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ))&lt;br /&gt;
  加上第三個參數 true 變成 print_bracket_link( 'wiki.php?id='.$f_bug_id, lang_get( 'wiki' ), true )&lt;br /&gt;
----&lt;br /&gt;
在 core/html_api.php 中 找到&lt;br /&gt;
 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot;&amp;gt;' . lang_get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
加上 target=&amp;quot;_blank&amp;quot;&lt;br /&gt;
變成 $t_menu_options[] = '&amp;lt;a href=&amp;quot;wiki.php?type=project&amp;amp;amp;id=' . $t_current_project . '&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;' . lang_     get( 'wiki' ) . '&amp;lt;/a&amp;gt;';&lt;br /&gt;
&lt;br /&gt;
==與現行 HelpDesk 的資料庫整合==&lt;br /&gt;
將 mantis 更換為較新版本 將舊版 mantis database 匯入後&amp;lt;br /&amp;gt;&lt;br /&gt;
登入頁面會出現 WARNING: The database structure may be out of date. Please upgrade here before logging in.&amp;lt;br /&amp;gt;&lt;br /&gt;
點選 here 更新資料庫即可&lt;/div&gt;</summary>
		<author><name>955002074</name></author>	</entry>

	</feed>