[外掛]IP log mod V0.2.6

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
jackyilk
竹貓忠實會員
竹貓忠實會員
文章: 538
註冊時間: 2002-07-21 18:55
來自: 台灣

[外掛]IP log mod V0.2.6

文章 jackyilk »

這個MOD跟竹大以前發表的Codecrush IP log mod很相近
然後 八塊的多多 也有發表過此版MOD : 連結位置
此MOD加以90%中文化後重新包裝,讓系統管理員可以快速了解功能方面的使用\r
官方網頁 : http://www.phpbb.com/phpBB/viewtopic.php?t=16917
官方下載點(英文原版本) : http://www.codecrush.com/repository/cc_ip_mod026.zip
中文化版本下載點 : http://taywe.net/net/files/IPmodV0.2.6中文版
中文化作者原文出處 : http://taywe.net/net/viewtopic.php?t=306


安裝開始~

#################################################################
## Mod Title: Codecrush IP Log
## Mod Version: 0.2.6
## Author: Kristoffer Tjaernaas < dar@swirve.com > - http://www.codecrush.com
## Description:
## This is a simple IP logger, that will log the IP of anyone browsing
## to your phpbb forums.
## I created it cause I couldn't find any other IP-tracking utility within
## phpbb besides the poster_ip. I wanted to keep a log of all visitors
## not just posters. I tried another IP-mod I found, but it didn't fit my
## needs. And so I created this.
##
## If there's any requests for further development of this simple mod,
## visit http://www.codecrush.com and request it ;)
##
## Installation Level: moderate
## Installation Time: 5 Minutes
## Files To Edit: sessions.php, functions.php, constants.php
## Included Files: admin_ip_log.php, ip_log_body.tpl, csv_ip_log.php, lang_ccip.php, cc_mod.php,
## admin_config_ip_log.php, ip_log_config_body.tpl, admin_ip_log_bat.php, ip_log_bat.tpl
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Author Note:
## You should know how to add a table to your database if you wanna use this mod.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################

#
#------增加此SQL語法------
#
# 預設PHPBB程式資料列表開頭為 phpbb_
INSERT INTO phpbb_config( config_name, config_value ) VALUES ("cc_logs_per_page","100");
INSERT INTO phpbb_config( config_name, config_value ) VALUES ("cc_log_on","1");
INSERT INTO phpbb_config( config_name, config_value ) VALUES ("cc_log_stats_on","1");
CREATE TABLE cc_ip_log( log_nr INT UNSIGNED NOT NULL primary key auto_increment, logged TIMESTAMP(14), username VARCHAR(25), user_ip VARCHAR(8), browser VARCHAR(64) );

#
#-----[ COPY檔案到所需位置 ]------------------------------------------
#
# 原作者的預設風格為 subSilver 如果風格不同請放置檔案到你使用風格中即可\r
admin_ip_log.php -> admin/admin_ip_log.php
csv_ip_log.php -> admin/csv_ip_log.php
admin_config_ip_log.php -> admin/admin_config_ip_log.php
ip_log_body.tpl -> templates/subXXX/admin/ip_log_body.tpl
ip_log_config_body.tpl ->templates/subXXX/admin/ip_log_config_body.tpl
admin_ip_log_bat.php -> admin/admin_ip_log_bat.php
ip_log_bat.tpl -> templates/subXXX/admin/ip_log_bat.tpl
lang_ccip.php -> language/lang_english/lang_ccip.php
cc_mod.php -> includes/cc_mod.php

#
#-----[ 開啟檔案 ]------------------------------------------
#
includes/sessions.php

#
#-----[ 尋找 ]------------------------------------------
#
//
// Initial ban check against user id, IP and email address

#
#-----[ 在之前加入 ]------------------------------------------
#
//
// CC IP-mod ($user_ip is created in common.php)
// \r
global $phpEx, $phpbb_root_path;
include($phpbb_root_path . 'includes/cc_mod.'.$phpEx);

#
#-----[ 開啟檔案 ]------------------------------------------
#
includes/functions.php

#
#-----[ 尋找 ]------------------------------------------
#
function decode_ip($int_ip)
{
$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
}

#
#-----[ 在之後加入 ]------------------------------------------
#
//
// decode mysql-timestamps
//
function mysql_timestamp_to_timestamp($dt)
{
$yr=strval(substr($dt,0,4));
$mo=strval(substr($dt,4,2));
$da=strval(substr($dt,6,2));
$hr=strval(substr($dt,8,2));
$mi=strval(substr($dt,10,2));
$se=strval(substr($dt,10,2));

return mktime($hr,$mi,$se,$mo,$da,$yr);
}


#
#-----[ 開啟檔案 ]------------------------------------------
#
includes/constants.php

#
#-----[ 尋找 ]------------------------------------------
#

// Auth settings

#
#-----[ 在之前加入 ]------------------------------------------
#
define('PAGE_CSV', -23);


#
#-----[ 存檔/並上傳所有檔案 ]------------------------------------------
#
majimmy
工友兼校長
工友兼校長
文章: 170
註冊時間: 2001-11-15 14:16
來自: 屏東
聯繫:

文章 majimmy »

IP Search 1.1.0
讓系統管理員有搜尋IP的功能

這個也可以用\r
不用改道SQL

$lang['IPSearch_Search_by_IP'] = '搜尋ip';
$lang['IPSearch_Enter_IP'] = '輸入IP位址';
$lang['IPSearch_Search_Results'] = 'IP位址搜尋結果';
$lang['IPSearch_Enter_an_IP'] = 'Please go back and enter an IP Address.';
$lang['IPSearch_Again'] = '再次搜尋?';
1.有問題,請先搜尋過一次,再來問
2.不要PM給我=.=(除非有好康的)


圖檔
主題已鎖定

回到「非官方認證外掛」