- 主题:新发布版本的,ip显示那段,如果不在default.c里面改,在那里改
site.c里面没有了。
char *showuserip(struct userec *user, char *ip)
{
static char *sip;
char *c;
if ((getCurrentUser() != NULL) && (getCurrentUser()->title == 10))
return ip;
if (user != NULL && (!DEFINE(user, DEF_HIDEIP)))
return ip;
strncpy(sip, ip, 12);
sip[24] = 0;
if ((c = strrchr(sip, '.')) != NULL) {
*(++c) = '*';
*(++c) = '\0';
}
return sip;
}
这一段。
--
FROM 211.155.136.*
你用的哪个site? configure的enable-site参数
【 在 liangls (精灵射手) 的大作中提到: 】
: site.c里面没有了。
: char *showuserip(struct userec *user, char *ip)
: {
: ...................
--
FROM 128.12.150.*
devel
【 在 atppp (Big Mouse) 的大作中提到: 】
: 你用的哪个site? configure的enable-site参数
--
FROM 211.155.136.*
site.h添加
#define HAVE_OWN_USERIP
#define SHOW_USERIP(user,x) showuserip(user,x)
site.c添加你自己的showuserip函数
【 在 liangls (精灵射手) 的大作中提到: 】
: devel
--
修改:atppp FROM 128.12.150.*
FROM 128.12.150.*
哦。
【 在 atppp (Big Mouse) 的大作中提到: 】
: site.h添加
: #define HAVE_OWN_USERIP
: #define SHOW_USERIP(user,x) showuserip(user,x)
: ...................
--
FROM 211.155.136.*