1 頁 (共 2 頁)

[分享與討論] CodeCrush Log System (前身Codecrush IP Log) 中文化

發表於 : 2005-12-25 22:59
心靈捕手
過山雲 寫: 目前所見最新版本:
Codecrush IP Log系列:
http://www.codecrush.com/repository/dmgr.php
日前我的論壇, 也有會員推薦此最新版;
試用一段時間後, 還是沒有辦法完全了解全部的功能.

僅將此版的( lang_ccip.php) 正體中文化貼出, 提供參考.
ps. 完程度僅約 85 %, 因為有太多的 '專有名詞' 不知道該怎麼翻? :oops:

參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=226086#226086

[建議] 升級 0.3.2

發表於 : 2006-02-03 22:52
心靈捕手
因為回覆網友問題, 所以再次拜訪原作者網站,
發現目前已經有最新版 0.3.2
http://www.codecrush.com/repository/dmgr.php

中文化參考:
只要開啟上頭回文的語言檔 lang_ccip.php
#
#-----[ FIND ]-----
#

代碼: 選擇全部

?>
#
#-----[ BEFORE, ADD ]-----
#

代碼: 選擇全部

// extra 0.3.2
$lang['Login_wrong_username'] = '登入錯誤 (會員名稱)';
$lang['Login_wrong_password'] = '登入錯誤 (密碼)';
$lang['Banned_user_ip'] = '登入錯誤 (已封鎖)';
$lang['CCIP_cusers'] = '來自這台電腦的使用者';
#
#-----[ SAVE & CLOSE ]-----
#
#EoM

升級經驗談:
1. 重新執行資料庫更新檔 ccip_install.php
若有出現已經執行過的訊息, 則忽略它.
2. 重新上傳所有附加檔案.
3. 若之前有安裝 eXtreme Styles mod, 則請清空 cache 的暫存檔.

發表於 : 2006-02-07 12:20
心靈捕手
補充中文化 -by- pchuey 提醒
http://wang5555.dnsfor.me/phpbb2/viewtopic. ... 4941#34941

#
#-----[ OPEN ]-----
#
language/lang_chinese_traditional_taiwan/lang_ccip.php

#
#-----[ FIND ]-----
#
$lang['IP_exc_add'] = '新增';
#
#-----[ AFTER, ADD ]-----
#
$lang['IP_exc_testing'] = '使用下面的表格測試, 以結合會員名稱, 瀏覽器, 以及 IP, 來正確設定排除選項.'; // 0.3.2
$lang['IP_exc_test'] = '測試'; // 0.3.2
#
#-----[ FIND ]-----
#
$lang['IPE_regerror'] = 'Error in regexp: %s'; // 0.3.1
#
#-----[ AFTER, ADD ]-----
#
$lang['IP_exc_test_results'] = '測試結果'; // 0.3.2
#
#-----[ SAVE & CLOSE ]-----
#
#EoM

--
另外, 更新 lang_admin.php 的部份:
ps. 若您尚未安裝過, 則將此新增語言代碼加入 '?>' 之前, 即可.

#
#-----[ OPEN ]-----
#
language/lang_chinese_traditional_taiwan/lang_admin.php

#
#-----[ FIND ]-----
#
//IP Log
$lang['IP_Log'] = "IP 記錄";
$lang['CCIP_Log'] = "主控台";
$lang['CCIP_Log_Batch'] = "搜尋";
$lang['CCIP_Log_Excludes'] = "排除";
$lang['CCIP_Log_Statistics'] = "資料統計";
$lang['Configure_IP_Log'] = "組態設定";
$lang['History_Batch'] = "歷史記錄搜尋";
$lang['Log_Backup_2_File'] = "備份";
$lang['View_Backup'] = "檢視備份";
#
#-----[ REPLACE WITH ]-----
#
// + CodeCrush IP Log
$lang['IP_Log'] = 'IP 記錄';
$lang['CCIP_Log'] = '主控台';
$lang['CCIP_Log_Batch'] = '搜尋';
$lang['CCIP_Log_Excludes'] = '排除';
$lang['CCIP_Log_Statistics'] = '資料統計';
$lang['Configure_IP_Log'] = '組態設定';
$lang['CCIP_Proxy_Probe'] = 'Proxy Probe';
$lang['Log_Backup_2_File'] = '備份';
$lang['View_backup_log'] = '檢視紀錄備份';
// - CodeCrush IP Log
#
#-----[ SAVE & CLOSE ]-----
#
#EoM

[分享] 中文化補充

發表於 : 2006-02-12 16:57
心靈捕手
新增底下幾個中文化:
#
#-----[ OPEN ]-----
#
language/lang_chinese_traditional_taiwan/lang_ccip.php

#
#-----[ FIND ]-----
#

代碼: 選擇全部

$lang['CCIP_Proxy_choice'] = '"Proxy IP" in log';
#
#-----[ REPLACE WITH ]-----
#
$lang['CCIP_Proxy_choice'] = '在記錄裡的 "Proxy IP"';
#
#-----[ FIND ]-----
#

代碼: 選擇全部

$lang['IPE_exists'] = 'An Exclude for this username/ip combo already exists'; // new 0.3.0
$lang['IPE_exc_from_log'] = 'Exclude from logging'; // 0.3.0
$lang['IPE_regerror'] = 'Error in regexp: %s'; // 0.3.1
#
#-----[ REPLACE WITH ]-----
#
$lang['IPE_exists'] = '這個會員名稱或 IP 已經存在排除名單裡'; // new 0.3.0
$lang['IPE_exc_from_log'] = '由記錄上排除'; // 0.3.0
$lang['IPE_regerror'] = '排除使用者錯誤: %s'; // 0.3.1
#
#-----[ FIND ]-----
#

代碼: 選擇全部

$lang['IP_robot'] = 'Name'; //'Robot/Spider';
#
#-----[ REPLACE WITH ]-----
#
$lang['IP_robot'] = '名稱'; //'Robot/Spider';
#
#-----[ FIND ]-----
#

代碼: 選擇全部

$lang['IPC_timer'] = 'Time (in minutes) between (re-)logging of logged in users';
#
#-----[ REPLACE WITH ]-----
#
$lang['IPC_timer'] = '記錄已登入使用者的間隔時間 (分鐘)';
#
#-----[ SAVE & CLOSE ]-----
#
#EoM

另外, 統一用 '記錄' 取代 '紀錄'.

發表於 : 2006-03-01 20:28
阿維
我用了比對工具跟原文的語系比對過了,已經拿掉多餘不用的部分,請前輩笑納! ;-)
正體中文語系: 請按此下載

發表於 : 2006-03-02 11:17
心靈捕手
JORDAN 寫:我用了比對工具跟原文的語系比對過了,已經拿掉多餘不用的部分,請前輩笑納! ;-)
正體中文語系: 請按此下載
呵! 呵! 感謝您將我已經註解掉的部分移除. :mrgreen:

不過, 在後頭有另外新增的翻譯部分, 您並沒有補上.
http://phpbb-tw.net/phpbb/viewtopic.php?p=226086#226086

發表於 : 2006-03-02 14:39
阿維
我已經將缺少的部份都補齊了,下面尚未翻譯的部份 8-)

103-104行:

代碼: 選擇全部

$lang['IP_Overwrite'] = "Overwrite";
$lang['IP_Overwrite_long'] = "Overwrite the temporary database";
125行:

代碼: 選擇全部

$lang['CCIP_Probe_explain'] = 'The Proxy Probe tool is based on connect.php by TerraFrost. It basicly tries to GET (http) a page (configurable) by using some IP:port combination as an open proxy.'; // 0.3.0
221-231行:

代碼: 選擇全部

// Proxy probe
$lang['CCIP_proxy_title'] = 'IP Log Proxy Probe';
$lang['CCIP_proxy_text'] = 'On this page you can probe an IP address for open (oft used) proxy ports';
$lang['CCIP_proxy_probe'] = 'Proxy Probe';
$lang['CCIP_ports'] = 'Ports';
$lang['CCIP_ports_explain'] = 'comma separated list of ports to probe';
$lang['CCIP_ip'] = 'IP';
$lang['CCIP_ip_explain'] = 'ip address to probe for open/proxy ports';
$lang['CCIP_probe'] = 'Probe';
$lang['CCIP_probe_results'] = 'Probe 結果';
$lang['IPC_proxy_ports'] = 'Proxy Ports<br /><span class="gensmall">comma separated list of default ports to probe in "Proxy Probe" tool</span>';
$lang['IPC_proxy_url'] = 'Proxy URL<br /><span class="gensmall">This is the URL the "Proxy Probe" tool will try to fetch</span>';
目前修改過的檔案已經在原網址更新 ;-)

發表於 : 2006-03-04 21:45
心靈捕手
再新增 (lang_ccip.php) 幾個翻譯, 提供大家參考:

代碼: 選擇全部

$lang['Click_bot_config'] = '搜尋機器人'; // v.0.3.0 

$lang['IP_Overwrite'] = "覆寫";
$lang['IP_Overwrite_long'] = "覆寫暫存資料庫的記錄";

$lang['IP_exc_explain'] = '在這裡, 您可以設定<b>不</b>想要顯示記錄的使用者, 瀏覽器和 IP.
例如: 您可以設定自己的會員名稱, IP, 或者搜尋機器人的 IP 為記錄排除名單. 您必須使用標準模式語法, 請參考
<a href="http://no.php.net/manual/en/reference.pcre.pattern.syntax.php" target="_php.net">這裡</a>.<br />';
$lang['IP_exc_examples'] = '例如:<br />排除會員名稱 "kris": ^kris$<br />瀏覽器: Konqueror<br />來自 127 A-net 的 IP : ^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$<br /><br />提示:<br /><b>^</b> 置於會員名稱或 IP 之前.<br /><b>$</b> 置於會員名稱或 IP 之後.<br /><b>.</b> 表示符合任何的字元<br /><b>*</b> 表示一個數量詞 (0 或更多)<br /><b>+</b> 表示一個數量詞 (1 或更多)<br /><b>\d</b> 表示符合的數字<br /><b>\w</b> 表示符合的文字 [a-zA-Z]<br /><b>\</b> 表示一個空白的字元. 假如您想要符合某一個 "*" 那麼請使用 "\*".<br /><br /><b>備註</b>: 請小心設定參數. 使用 ".*" 表示符合任何的條件.';

$lang['IP_proxy'] = '代理伺服器 IP'; 
$lang['CCIP_Proxy_choice'] = '在記錄裡的 "代理伺服器 IP"'; 
$lang['CCIP_Proxy_explain'] = '代理伺服器是您的主機伺服器與用戶端電腦的 "中間人". 它可以偽裝您的 IP 位址或者完全地隱藏它. 在 php 我們檢查 2 個伺服器間 IP 變量關係: REMOTE_ADDR 以及 HTTP_X_FORWARDED_FOR. 當某人使用代理伺服器時:<br><br><b>透明代理伺服器</b>:<br>REMOTE_ADDR = 代理伺服器 IP<br>HTTP_X_FORWARDED_FOR = 用戶端電腦 IP<br><br><b>匿名代理伺服器</b>:<br>REMOTE_ADDR = 代理伺服器 IP<br>HTTP_X_FORWARDED_FOR = 代理伺服器 IP 或隨機的 IP<br><br><b>非常匿名代理伺服器 (或沒有代理伺服器)</b>:<br>REMOTE_ADDR = 代理伺服器 IP (或用戶端電腦 IP)<br>HTTP_X_FORWARDED_FOR = 空白<br><br>'; 
補充說明:
感謝 JORDAN 的提醒, 先前的比對出了些差錯 (漏了 2 個), 現在已經補上.

另外, 針對 '排除記錄名單' 的設定上, 有了重大的發現;
由於之前註解了原文範例的部份, 所以沒有把握到要領. :oops:

例如: 我如果要將 "心靈捕手" 設定在記錄排除名單中的話,
那麼正確的語法, 應該是 "^心靈捕手$" 才能生效.


同時, 將 "proxy" 統一翻譯成 "代理伺服器".

剩下未完成的部份是 "proxy probe"
雖然, "probe" 字面上的意思是 "探針",
但是, 我尚未能完全參透其功能與用意.

ps. 發表在 '非官方推薦外掛' 版面的相關中文化, 將同步更新.

發表於 : 2006-03-09 10:49
pcrick
心靈捕手 寫:補充說明:
另外, 針對 '排除記錄名單' 的設定上, 有了重大的發現;
由於之前註解了原文範例的部份, 所以沒有把握到要領. :oops:

例如: 我如果要將 "心靈捕手" 設定在記錄排除名單中的話,
那麼正確的語法, 應該是 "^心靈捕手$" 才能生效.


同時, 將 "proxy" 統一翻譯成 "代理伺服器".

剩下未完成的部份是 "proxy probe"
雖然, "probe" 字面上的意思是 "探針",
但是, 我尚未能完全參透其功能與用意.
ps. 發表在 '非官方推薦外掛' 版面的相關中文化, 將同步更新.
請問我假如我想要排除" test "這個人所有登入的紀錄,是這以下這樣嗎??
會員名稱 瀏覽器 IP
^test$ .* .*
但是好像還是不行耶.....

發表於 : 2006-03-09 21:54
心靈捕手
pcrick 寫:
心靈捕手 寫:補充說明:
另外, 針對 '排除記錄名單' 的設定上, 有了重大的發現;
由於之前註解了原文範例的部份, 所以沒有把握到要領. :oops:

例如: 我如果要將 "心靈捕手" 設定在記錄排除名單中的話,
那麼正確的語法, 應該是 "^心靈捕手$" 才能生效.


同時, 將 "proxy" 統一翻譯成 "代理伺服器".

剩下未完成的部份是 "proxy probe"
雖然, "probe" 字面上的意思是 "探針",
但是, 我尚未能完全參透其功能與用意.
ps. 發表在 '非官方推薦外掛' 版面的相關中文化, 將同步更新.
請問我假如我想要排除" test "這個人所有登入的紀錄,是這以下這樣嗎??
會員名稱 瀏覽器 IP
^test$ .* .*
但是好像還是不行耶.....
首先, 請您確認您所使用的是最新版 CodeCrush IP log (v.0.3.2)
因為這個功能在之前的版本 (0.3.1) 是無效的.
Changed in 0.3.2
- some bug-fixes
- now logs cookie-info regarding other users from same computer
- provided simple addon for logging of failed login attempts/banned users
- file export/backup now exports/imports complete dataset
- Exclusion now works
- Session-based timer to control how often someone is logged (in addition to the cookie-one)
參考連結:
http://www.phpbb.com/phpBB/viewtopic.ph ... 802#101802
yea, the links for excluding are wrong as I changed the way exclusion works. It now uses regexps so the excluding the user Tormentor from any IP should be something like:
user: ^Tormentor$
IP: .*


But there's something else screwy with excludes in version 0.3.1, so it might not work yet. I'm currently testing an updated version.

To expand the extra info per log-row by default I guess you could edit the template. ip_log_body.tpl if I remember correctly (don't have the code in front of me right now). it should say "display: none" a couple places. Change it to "display: block" and see if that works :)
參考連結:
http://www.phpbb.com/phpBB/viewtopic.ph ... 63#1881463

--
以我個人論壇的使用經驗, 目前是可以依照設定, 順利排除的.
但是, 惟獨 "^心靈捕手$" 例外.

我猜想:
也許程式本身還有些 BUG
建議您到下列網址, 向 原作者 請教.
http://www.codecrush.com/phpBB2/viewforum.php?f=16
http://www.phpbb.com/phpBB/viewtopic.php?t=16917

發表於 : 2006-03-10 08:22
pcrick
心靈捕手 寫:以我個人論壇的使用經驗, 目前是可以依照設定, 順利排除的.
但是, 惟獨 "^心靈捕手$" 例外.

我猜想:
也許程式本身還有些 BUG
建議您到下列網址, 向 原作者 請教.
http://www.codecrush.com/phpBB2/viewforum.php?f=16
http://www.phpbb.com/phpBB/viewtopic.php?t=16917
原來是除了" 系統管理者 "外,其他的都可以順利排除 :mrgreen:

發表於 : 2006-03-10 15:37
心靈捕手
pcrick 寫:
心靈捕手 寫:以我個人論壇的使用經驗, 目前是可以依照設定, 順利排除的.
但是, 惟獨 "^心靈捕手$" 例外.

我猜想:
也許程式本身還有些 BUG
建議您到下列網址, 向 原作者 請教.
http://www.codecrush.com/phpBB2/viewforum.php?f=16
http://www.phpbb.com/phpBB/viewtopic.php?t=16917
原來是除了" 系統管理者 "外,其他的都可以順利排除 :mrgreen:
我也是有這個疑慮!

但是老實說, 自己 (系統管理員) 出現在記錄裡頭的機率還蠻大的,
為何不能將自己排除在外呢? :-?

剛剛向 原作者 請益.
http://www.phpbb.com/phpBB/viewtopic.ph ... 40#2036340

發表於 : 2006-06-18 16:57
心靈捕手
呵! 呵! 一直等不到原作者的答覆. :mrgreen:

不過, 根據原作者回答其他網友的文章,
以及加上自己的測試, 發現:

其實, 系統管理員也是可以排除在外的;
只不過, 該紀錄的排除, 僅限於造訪論壇版面者而已;
對於造訪論壇的 '控制台' 者, 是無法排除在外的.


假設您有設定自己為例外名單, 可以測試看看:
如果您 (系統管理員) 在不同的時間, 分別造訪討論區 (3 次),
而在最後一次進入控制台, 查看該紀錄,
那麼只會記錄, 最後一次的造訪.
natefico: Sounds like you're using the correct expression. Note that it will not exclude visits to the administration panel - just regular board logins/visits. Could that be the case?
Source: http://www.phpbb.com/phpBB/viewtopic.ph ... 76#2161676

發表於 : 2006-06-26 14:59
pcrick
心靈捕手 寫:如果您 (系統管理員) 在不同的時間, 分別造訪討論區 (3 次),
而在最後一次進入控制台, 查看該紀錄,
那麼只會記錄, 最後一次的造訪.
的確如此!!! :mrgreen:

不過對此外掛還有個小疑問 :?:

在IP主控台中,有兩項 "IP""phpBB IP "

請問這兩個所記錄的IP位址有什麼不一樣呢???

發表於 : 2006-06-26 23:09
心靈捕手
pcrick 寫:
心靈捕手 寫:如果您 (系統管理員) 在不同的時間, 分別造訪討論區 (3 次),
而在最後一次進入控制台, 查看該紀錄,
那麼只會記錄, 最後一次的造訪.
的確如此!!! :mrgreen:

不過對此外掛還有個小疑問 :?:

在IP主控台中,有兩項 "IP""phpBB IP "

請問這兩個所記錄的IP位址有什麼不一樣呢???
感謝您的回覆! :-D

為了答覆您的問題, 再度拜訪原作者論壇, 有個發現:
以下的修改, 也可以將拜訪 '控制台' 者, 設定為例外名單.
#
#-----[ OPEN ]-----
#
includes/cc_mod.php

#
#-----[ FIND ]-----
#

代碼: 選擇全部

	$cc_md5_session = '';
#
#-----[ AFTER, ADD ]-----
#

代碼: 選擇全部

	$admin = ($admin == 1) ? 0 : $admin;
#
#-----[ SAVE & CLOSE ]-----
#
Source: http://www.codecrush.com/phpBB2/viewtopic.php?p=774#774

--
至於, 您的疑問 '這兩個所記錄的IP位址有什麼不一樣呢?'

建議您:
參考此文, 也許會有點幫助.
http://www.phpbb.com/phpBB/viewtopic.ph ... 54#1968454
IP: this is what this mod regards as the users IP
phpBB IP: this is the IP that phpBB has registered for this user/session.
Proxy IP: this is what this mod found in regards to a proxy IP address.

phpBB only looks for 'REMOTE_ADDR' when determining the IP of the user. This mod checks for an IP address in other variables too. Also the phpBB IP is what phpBB is using in regards to banning.
ps.
老實說, 我不大完全明白. :oops: