Sending data to script
Program POSTs the following form to the script:
<form action="http://yoursite.com/dir/livechat.cgi" method="post">
<input name="port" value="Port Number">
<input name="password" value="Your password">
<input name="unique" value="Unique Computer ID">
<input name="ip" value="IP address">
|port||port number you specified on Server settings dialog box.|
|password||the password you specified on Web dialog box.|
|unique||unique computer ID. It's located in regustry, in |
HKEY_CURRENT_USER\Software\SoftCab\Live Support System\Unique_String. This sting is created by installer. Currently is not used by script, and reserved for future versions.
|ip||your computer IP address or domain name you setup on Server settings dialog box.|
Receiving reply from script
Script replies with "
Program will load this script in NNN minutes.
System will go offline if script is not loaded within specified period of time.
All other server replies are treated as errors.
If erroneous reply was detected, program will load the script again and again with interval of one minute.
Tuning the script
Open script file with Notepad, and edit the following variables:
|$temp_file||Type full path to temporary file. Script must have read/write access to this file.|
|$image_online||Full URL of image that will appear on your website when you are online.|
|$image_offline||Full URL of image that will appear on your website when you are offline.|
|$url_online||Full URL of a page where visitors will be landed when you are online. Leave it blank if you want to redirect visitors directly to chat page.|
|$url_offline||Full URL of a page where visitors will be landed when you are offline. You may specify a text message instead of link.|
|$reload_time||How often to run this script, in minutes. If script is not loaded within specified period, entire system goes offline.|
Query string parameters
The script usually called with the following parameter:
There are four possible values of request variable:
|request=image||This will output image, depending on system offline/online status (see $image_online and $image_online script variables). |
|request=page||This will redirect to page, specified in $url_online script variable.|
|request=chat||This will redirect directly to chat page. It behave the similar to request=page if $url_online variable is blank.|
|request=monitor||This will output 1x1 transparent GIF picture. You should not use this value directly. Use HTML code dialog box for configuring website monitor.|
All other variables will be shown in chat window in list support system program.
Name variable will replace user's IP address in chat window.
For example, here is how you can pass variables to chat window:
<form action="http://yoursite.com/dir/livechat.cgi" method="get">
<input type="hidden" name="request" value="chat">
What is your name? <input type="text" name="name">
Where are you from? <input type="text" name="country">
<input type="submit" value="Chat">
Contents · Home · Download