The rates are showed in the XML file called
prices.xml. The file's structure is defined in another file called
prices.dtd. In this file, has been defined the content and structure that
prices.xml must fulfill. Both files are needed in the same path where the Cyber is executed. The content of
prices.dtd is as follows:
The first element defined is the label
prices. It's the first component that must be appear in the XML file. This component is called root and cannot be part of any other element. In label
prices are defined the following elements:
section: Element used to define a time slot. It's make up of lower index,
lower_index, and superior index,
upper_index, to delimit the time slot defined. These indexes only admit positive and whole number values. In addition, the upper index also supports the string
END, indicating that time slot has not upper limit. The price,
price_section, associated with the time slot, will depend on
type_billing. This price allows decimal and positive numbers. Finally,
type_billing shows the way in which the price associated will be applied to the time slot. It allows three possible values:
F, whose meaning is a fixed price, i.e., to all those connection times included in the limits of the time slot, will apply the amount that indicate
V, variable, i.e. the amount is calculated multiplying the minutes of connection by the price indicated in
M, whose meaning is that the amount associated with the time slot will be applied only in the first round. At least must be defined a time slot and all the elements defined in the section are required.
day_on_offer: Element that is used to identify possible bargain days. Consists of:
day: day in which is applied the offer, and
discount: discount to apply in the final amount to pay for the user. It allows integer numbers, in a range from 1 to 99. That element is not required, but when this element is defined, then,
discount, are required.
season: Element that is used to offer some hours with a fixed price. It consists of
hours: integer numbers, no more than 24 and
money: decimal and positive number. That element is not required, but when this element is defined, then
money are required.
These tables show some valid examples of XML, according to the structure described by the DTD:
Once created the file of rates, it's necessary to be activated. For this, must be select the file created through the menu: Accounting->Prices and select the file made.
For carrying out the sending's files where they are stored the connections is necessary to run
config.bat in Windows or in case of using Linux, writing to the console
Once set up, will ask for some questions to make the configuration file called
Path where the files are placed. The User will put the path where the Cyber is running.
Files' name to send. It will be necessary to write
billing to send information recorded by the Cyber-cafe.
Periodicity of sending in seconds.
Information about the servers:
Destination's user name.
Information about the SMTP mail servers:
SMTP server name.
E-mail address from.
E-mail address to.
Confirm setup test.
You can provide the number of servers that you wish, for each kind of sending. The transfer was carried out to all servers provided in the configuration file.