| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
AloaGoaDee Postet sich warm
|
Verfasst am: 15.01.2003 - 00:37 Titel: Wie bekomme ich meine Infos zum FTP-Server in die HTML |
|
|
| Wenn ich bspw. über die MP3-Suche FTP Server finde zeigt mir oth.net immer wenn man das Fragezeichen des entsprechenden Serverslinks anklickt eine Serverbeschreibung mit Infos (zB bevorzugte Musikrichtung, Qualität der Files...) zum jeweiligen Server. Wie bekomme ich diese Infodatei bei meinem eigenen FTP-Server hin? Nutze Serv-U. |
|
| Nach oben |
|
 |
EagleTM MPeX.net Crew
|
Verfasst am: 15.01.2003 - 01:02 Titel: RE: Wie bekomme ich meine Infos zum FTP-Server in die HTML |
|
|
Es müsste eine Option "Greeting Message" geben, da gehört sowas rein. Serv-U nennt es "Signon message file"
oth.net zeigt ja den kompletten einlog-vorgang an.
Aus der ServU-Knowledge Base -- ganz unten ein walk-thru
| Zitat: |
Knowledge Base Search Results
Customizing the Messages Serv-U Displays to the Client
There are several special words that you can enter in your sign-on and sign-off message text that get 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
%MaxAnonymous - the maximum no. of anonymous users
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 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 FTP 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). Not all of these directives make sense for both the sign-on and sign-off message text: There is little point in putting ‘%disk’ in the sign-on message, since the user is not yet logged in. Likewise for some other directives. However, these same directives can also be used in directory change messages and login messages, which are covered in the following sections. There they can be very useful.
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.
All the above may sound a bit theoretical, so let’s get practical and set up a simple sign-on message. Press the little button next to the ‘Signon message file’ part, (this is located under the domain you have setup, select "settings" and then the "messages" tab.) so the file selection dialog box pops up. Say we want to store our sign-on message in a file named C:\SERV-U\SIGNON.TXT, so that is what we put in. Hit the ‘Open’ button and your text editor will pop up with that file loaded. Now it is time to enter the sign-on text itself:
Welcome, it is %time on %date, and you are user number %unow of %maxusers Over the last 24 hours, %u24h people have visited this site
Save the file. I’m sure you’ll figure out by yourself what this will look like to the user.
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. So keep your lines short if you want the users to actually see your prose (70 characters should generally be considered a safe maximum).
|
|
|
| Nach oben |
|
 |
|
|
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen.
|
Powered by phpBB © 2001, 2005 phpBB Group
|