|
New in v5.1.3 e
Examples with a new style
A new style of examples is introduced in version 5.1.3 in order to make easier the configuration used in conjunction with a new utility called configurator that allows to generate configuration code and then insert it into the code of the applications. With minor variations, the operation of the examples is the same as in previous versions.
A new utility, the configurator
This is a wizard to create configuration code and then insert it into the application.
New control panel cp5.php
Added in this version a new control panel that displays data from the OLM in a more convenient way than before. You can access it from here: http://av-soft.com/olm513/cp5.php (the password is mypass).
Bug corrections
Some minor bugs fixed.
New in v5.1 e
Methods added:
OnlineRenew2()
We added this method as a variant of OnlineRenew(). This allows to activate a new period adding to it the remaining days from the previous period. For example if in the OLM record (Days = 180) and the current period has 15 remaining days, the new period will starts from the current date for a period of 195 days. For more information see the last part of the section (using AVLock SIMPLE> Examples > PayPal IPN).
OnlineSendEmail()
This method lets you send emails to users or to yourself to be informed of the user's activities and operations in the OLM. See Example 5 the code associated with the button [Send Email].
Utilitarian functions added:
file2arrstr()
Read a text file and dumps it to an array of type TArrStr.
avFloat2Str()
Converts a floating number to string formatted with two decimal places. Differs from FormatFloat on that always uses the point as decimal separator regardless of the configuration of Windows.
avStr2Float()
Converts to floating number a string with numeric format passed as parameter which can use either; point or comma as decimal separator.
avIsNum()
As parameter is passed a string to be analyzed and returns True if it contains only numeric character or decimal point.
Function names changed
They changed the names of the following utility functions to avoid conflicts with certain popular libraries like TurboPower SysTools and others that use those names.
Previous name New name
--------------------------------
isdigit() avisdigit()
str2word() avstr2word()
paddl() avpaddl()
paddr() avpaddr()
leftstr() avleftstr()
rightstr() avrightstr()
OLM changes
The link to access to the v5.1 control panel is http://av-soft.com/olm51/s5cp.php
The password is abc123
We added two scripts to the advanced OLM; ipn.php and prices.php. For more information see the last part of the section (using AVLock SIMPLE> Examples > PayPal IPN).
The script advancedolm.php has been changed in order to support the new methods OnlineRenew2() and OnlineSendEmail().
Changes in the utilities
KeyGen now allows you to save the key in a text file with user data. This is useful when using keys based on user data.
In the RegMonitor the fields were redistributed allowing you to view and edit the Other field as a list of strings. In the given example PayPal IPN uses this feature allowing you to view and edit your transactions fields.
Examples added
Two new examples has been added in order to full understand how to integrate AVLock and the OLM with the IPN PayPal service. The second example shows how to implement discount coupons.
|