Overview
In this lesson, you'll learn how to use the return file.
Step One - Specify the file name
In lesson 1, you've already created a plugin - "First
Plugin". The return file of the "First Plugin"
is "include.wfs".
Enable=True
StartFile=
ReturnFile=include.wfs
RunOnce=False
DisplayName=First Plugin
User= |
Actually you may set ReturnFile as almost any file name.
Normally the return file will be a html file. Let's change
it to "hello.htm":
Enable=True
StartFile=
ReturnFile=hello.htm
RunOnce=False
DisplayName=First Plugin
User= |
Step Two - Create the html file
Now please create a new html file - "hello.htm",
by any text editor or html editor, and save it into the directory
"First Plugin".
Then type following code into "hello.htm".
<html>
<head> </head>
<body bgcolor=#FFFFFF>
Hello World!
</body>
</html> |
Step Three - Test the plugin
Please run WWW File Share Pro and open a browser to visit
"First Plugin" again.
Click on "First Plugin" you will see:
It's time to explain how the "ReturnFile" works:
- The return file is what a visitor will see when he clicks
the name of the plugin.
- If the file extension of the return file is ".wfs",
WWW File Share Pro will insert the code of "xxx.wfs"
into the "standard" html page of WWW File Share
Pro and send it to the visitor. This it a useful trick to
return a "standard" page. Otherwise WWW File Share
Pro will directly send the return file to the visitor.
- Of course you may use your own html file and set ReturnFile
as the file name of the html file.
- The return file can be other type of files. For example,
the return file for plugin "CaptureScreen" is
"screen.jpg".
- At present (plugin system version 1.0) WWW File Share
Pro does NOT allow the visitor to download these type of
files:
.ini, .wfs, .mdb, .xml, .cfg, .exe, .bat, .vbs, .com,
.pif, .log, .dat, .db
Summary
At the conclusion of this lesson, you should be able to
do the following:
- Modify the setting file to set the return file.
- How to use "include.wfs"
- How to set return file to other type of files.
|