serv-u 自定义html,Serv-U 登陆信息提示设置

使用FTP Serv-U安装FTPSERVER的朋友,可以使用Serv-U符号信息参数来向CLIENT端显示一些重要的信息。

比如:

Mon Dec 10 22:32:46 2001 220-==============================

Mon Dec 10 22:32:46 2001 220-服务器状态:

Mon Dec 10 22:32:46 2001 220-现在时间:22:35:40, 在过去24小时共有 1578 人访问本服务器。

Mon Dec 10 22:32:46 2001 220-本服务器已经运行 0 天 11 小时 37 分 55 秒

Mon Dec 10 22:32:46 2001 220-磁盘空闲空间:1098.11 Mb

Mon Dec 10 22:32:46 2001 220-总登录用户数: 1121 total

Mon Dec 10 22:32:46 2001 220-当前用户数: 10 / 40

Mon Dec 10 22:32:46 2001 220-总下载数据量: 8713447 Kb

Mon Dec 10 22:32:46 2001 220-总上传数据量: 291923 Kb

Mon Dec 10 22:32:46 2001 220-总下载文件数: 2391

Mon Dec 10 22:32:46 2001 220-总上传文件数: 15

Mon Dec 10 22:32:46 2001 220-平均流量: 215.105 Kb/sec

Mon Dec 10 22:32:46 2001 220 当前流量: 68.511 Kb/sec

这些可以显示的信息包括:

Sign-on/sign-off messages 签入/出信息

User specific login messages 用户指定登录信息

Directory change messages 目录改变信息

你可以往这些指定的信息文本里加入符号参数,这些参数在发送给客户时会扩展为当前状态的内容。

这些符号参数都是以 "%" 号开头的,下面是完整列表

Time/date:  时间部分

%Time - displays the current time on your PC 服务器端的当前时间

%Date - displays the current date on your PC Server 服务器端的当前日期

statistics:  状态统计部分

%ServerDays - displays the number of days the server has been running 服务器已运行时间(天数)

%ServerHours - displays the number of hours the server has been running 服务器已运行时间(小时)

%ServerMins - displays the number of minutes the server has been up  服务器已运行时间(分钟)

%ServerSecs - displays the number of seconds the server has been up 服务器已运行时间(秒)

%ServerKbUp - displays the no. Kbytes uploaded to the server since server start 本次启动以来服务器接收的字节数

%ServerKbDown - displays the no. Kb downloaded from the server since server start 本次启动以来服务器发送的字节数

%ServerFilesUp - displays the no. of files uploaded to the server since server start 本次启动以来服务器接收的文件数

%ServerFilesDown - displays the no. of files downloaded from the server since server start 本次启动以来服务器发送的文件数

%LoggedInAll - displays total no. of logged in users since server start 本次启动以来登录本机的用户数

%ServerAvg - displays the average server throughput since server start 本次启动以来服务器平均吞吐能力

%ServerKBps - displays current server bandwidth use 当前服务器带宽占用

Server settings:  服务器设置

%MaxUsers - displays the maximum no. of users, as set in "Setup - Server" 最大用户数

%MaxAnonymous - the maximum no. of anonymous users, as set in "Setup - Server" 最大匿名登录用户数

User inf 用户设置

%Name - displays the user's login name 显示用户的登录名

%IP - displays the user's IP number or name if available 显示登录用户的IP

%Dir - displays the user's current directory 显示用户当前所在目录

%Disk - displays the user's current disk drive 显示用户的当前磁盘

%DFree - displays the amount of free space on the user's current disk in Kb 显示可用的空间

%FUp - displays the number of files uploaded by the current user 当前用户上传数

%FDown - displays the number of files downloaded 当前用户下载数

%FTot - displays the total number of files transferred 显示当前用户传输的文件总数

%BUp - displays the number of Kbytes uploaded by the user 显示当前用户上传的字节总数

%Bdown - displays the number of Kbytes downloaded by the user 显示当前用户下载的字节总数

%BTot - displays the total number of Kbytes transferred 显示当前用户传输的字节总数

%TconM - displays the total connect time in minutes 显示连接时间(分钟)

%TconS - displays the connect time in seconds - to be used with "%tconm" 显示连接时间(秒)

%RatioUp - displays the "upload" ratio part for UL/DL ratios 显示当前用户上传/下载比率中的"上传百分比"

%RatioDown - displays the "download" ratio part for UL/DL ratios 显示当前用户上传/下载比率中的"下载百分比"

%RatioCredit - displays the current download credit for UL/DL ratios (Kb or "files") 显示当前用户还可以下载的字节数

以下是有关配额的显示

%QuotaUsed - displays how much disk quota is used in Kb 显示配额已使用部分

%QuotaLeft - displays how much disk quota is left in Kb 显示配额剩余部分

%QuotaMax - displays the maximum amount of disk space that can be used in Kb Number of users: 磁盘最大可用字节数

%UNow - displays the current number of Serv-U users connected 当前连接在服务器上的人数

%UAll - displays the number of users since the server was started 本次启动以来连接过本服务器的用户数

%U24h - displays the number of users in the last 24 hours 二十四小时以来连接过本服务器的用户数

%UAnonAll - all currently logged in anonymous users 当前连接在服务器上的匿名用户数

%UAnonThisIP - all anonymous users logged into this IP home

%UNonAnonAll - all non-anonymous users currently logged in

%UNonAnonThisIP - all non-anonymous users logged into this IP home

%UThisName - all current users with the current user name logged into this IP home下面是一个例子:

欢迎你在%date %time 访问我们的服务器, 你是第 %unow 个用户,最大用户数为 %maxusers,在上24小时以来,共有 %u24h个朋友访问这里。

注意,CLIENT端每行只显示80个字符,而返回码就占了4个字符。所以,建议定义信息每行最多70个字符。

建议:自建FTP的朋友,建议多使用下面的符号:

%Disk - 用户当前磁盘驱动器

%DFree - 用户当前剩余空间(KB)

%QuotaMax - 最大可用磁盘空间(KB)

以便给上传的朋友知道现在的空间可用情况 。

当然可以设置限额:

Menu--〉setup---〉users...----〉Quota: Enable disk quota: Maximum: XXXMB

这样可以用

%QuotaUsed - 已使用多小配额空间(KB)

%QuotaLeft - 还有多小配额空间可以用(kb)

%QuotaMax - 设定的配额

建议是在登入信息和目录改变信息里加入这些宏,这样使用FTP人会方便很多。

*************************************************************************************

Serv-U FTP Server can display various types of messages:

?Sign-on/sign-off messages

?User specific login messages

?Directory change messages

There are several symbolic parameters that can be entered in the message text. These parameters are expanded while being sent to a client. They all begin with '%'. Here is the complete list:

Time/date

%Time- displays the current time on your PC

%Date- displays the current date on your PC

Server statistics

%ServerDays- displays the number of days the server has been running

%ServerHours- displays the number of hours the server has been running

%ServerMins- displays the number of minutes the server has been up

%ServerSecs- displays the number of seconds the server has been up

%ServerKbUp- displays the no. Kbytes uploaded to the server since server start

%ServerKbDown- displays the no. Kb downloaded from the server since server start

%ServerFilesUp- displays the no. of files uploaded to the server since server start

%ServerFilesDown- displays the no. of files downloaded from the server since server start

%LoggedInAll- displays total no. of logged in users since server start

%ServerAvg- displays the average server throughput since server start

%ServerKBps- displays current server bandwidth use

Server settings

%MaxUsers- displays the maximum no. of users, as set in 'Settings - Domain'

%MaxAnonymous- the maximum no. of anonymous users, as set in 'Settings - Domain'

User info

%Name- displays the user's login name

%IP- displays the user's IP number or name if available

%Dir- displays the user's current directory

%Disk- displays the user's current disk drive

%DFree- displays the amount of free space on the user's current disk in Mb

%FUp- displays the number of files uploaded by the current user

%FDown- displays the number of files downloaded

%FTot- displays the total number of files transferred

%BUp- displays the number of Kbytes uploaded by the user

%Bdown- displays the number of Kbytes downloaded by the user

%BTot- displays the total number of Kbytes transferred

%TconM- displays the total connect time in minutes

%TconS- displays the connect time in seconds - to be used with '%tconm'

%RatioUp- displays the 'upload' ratio part for UL/DL ratios

%RatioDown- displays the 'download' ratio part for UL/DL ratios

%RatioCredit- displays the current download credit for UL/DL ratios (Kb or 'files')

%QuotaUsed- displays how much disk quota is used in Kb

%QuotaLeft- displays how much disk quota is left in Kb

%QuotaMax- displays the maximum amount of disk space that can be used in Kb

Number of users

%UNow- displays the current number of Serv-U users connected

%UAll- displays the number of users since the server was started

%U24h- displays the number of users in the last 24 hours

%UAnonAll- all currently logged in anonymous users

%UAnonThisIP - all anonymous users logged into this IP home

%UNonAnonAll - all non-anonymous users currently logged in

%UNonAnonThisIP- all non-anonymous users logged into this IP home

%UThisName- all current users with the current user name logged into this IP home

The file upload and download message directives are for the current session only (i.e. they do not show the aggregate over multiple sessions).

The '%ServerDays', '%ServerHours', '%ServerMins', and '%ServerSecs' directives are meant for use together. The number of hours is what's left after the number of days is subtracted, and the same goes for the number of minutes and seconds.

Example Message

Welcome to ftp.cat-soft.com, home of Serv-U!

Local time is %time, and %u24h users have visited over the last 24 hours. This server has been up for %ServerDays days, %ServerHours hours, %ServerMins min. and %ServerSecs sec.

Server stats:

Users logged in: %loggedInAll total

Current users: %Unow

Kb downloaded: %ServerKbDown Kb

Kb uploaded: %ServerKbUp Kb

Files downloaded: %ServerFilesDown

Files uploaded: %ServerFilesUp

Average througput: %ServerAvg Kb/sec

Current througput: %ServerKBps Kb/sec

Please keep in mind that the average client has only 80 characters per line, and the first four are taken up by the reply code. Please be brief, 70 characters should generally be considered a safe maximum.

本文出自:亿恩科技【www.enkj.com】

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值