cFosSpeed is the official Internet Accelerator for ASUS, GIGABYTE, ASRock and MSI gaming products
Get a free license (cFosSpeed) for helping us with 10 or more reviews.
Some texts are generated by machine translation. Help us to improve these texts. Click the button to start revision mode.
The cFos PNet standard scripts
You can use script debugging with Visual studio or Visual Web Developer. For the script debugging you need a Visual studio or Visual Web Developer version with remote debugging support, ie. Visual studio Professional Edition. To enable script debugging, set the key enable_script_debugging=1 in the section [param] of the file GLOBAL.INI in the c:\programdata\cFos\cFosPNet folder.
If you don't have a script debugger installed, set this to 0. Otherwise scripts may hang on some machines. You can also load cfospnet.exe with -enable_script_debugging or -esd command line switch to enable script debugging for this program start.
Script-based user administration and authentication
In the pub folder is a sub-folder users with a subfolder for every user, who has an account on your cFos PNet server. The users password or other optional profile data is stored in a hash list, named PROFILE.TXT. This allows speedy and cached accesses for by cFos PNet built-in HTTP authentication. In the public folder is also a sub-folder www with a subfolder for every user. This folder can contain downloadable files of that user. The file_op.jss script also allows the user to upload files into this folder.
The scripts perform authentication according to the respective .htaccess settings. So you need appropriated user credentials for the user to which the directory belongs.
Here a short description of the scripts. You should take a look into the source code, to see how they work.
If no index.htm or index.html file are present in the requested directory cFos PNet starts this script to generate a directory listing.
Performs file operations according to the authentication above. File operations are rename, delete, mkdir to create a folder and upload. Upload typically needs authentication. Because the browser always first sends the whole uploaded file to the server and then get the authentication information, it would send the file twice. To give the browser the authentication information first, the file_op.jss script supports an upload pre-flight operation. The browser, using an Ajax request, asks the server for the HTTP authentication response (401) and then automatically uses it for the actual upload. Upload is handled by a function in upload.jss, which uses cFos PNet's file object to allow upload of files with an arbitrary size.
Performs basic user administration functions: create, delete, reset password and list. The admin user is required for authentication.
Because hash list play an important role for cFos PNet, list_op.jss provides basic list operations available for Ajax requests. The same authentication scheme as described above is performed. That is: Depending on the location of the script the user for which the authentication is required is chosen. The authentication is done according to the directives in the respective .htaccess files. list_op.jss offers the following operations:
Performs DynDNS register or unregister, using the config data in the hash list dyndns.txt in the private folder.
Used to display the current HTTP connections. HTTP is done via TCP. To speed up HTTP requests, the browsers try to re-use TCP connections for HTTP requests. The actual HTTP request is only a short message and a response. After that the browser closes the TCP connection after a few seconds. So you may see a user only for a short time. If authentication was successfull the user's name is also returned with the users IP address.
Because it is always a burden to the web master to resize images to the format used the web page, we implemented a little script, which uses the cFos PNet image object (GDI+). It uses a filename and a w (width) and h (height) parameter in the URL's query string. If your images are of arbitrary size, you should use only one parameter to preserve the image's aspect ratio. makedir2.jss uses links to this script to display thumbnail images for images stored in the current folder.
Collection of utility functions to simplify server side scripting. Offers the following functionality:
cFos Personal Net documentation
cFos Personal Net documentation
The standard scripts
Documentation of the included standard scripts of cFos Personal Net