@Gertjan:
@ishtiaqaj:
i made the changes please check once i will try …..
To check code - or just make it readable for others at least, place it in bbcode.
If you test-drive on a non-critical system, just run it.
It won't explode, neither byte.
pfSense will survive a PHP error :)
success.,
i tried the code and its work well with pfsense 2.3 fresh install,
but you can't update on existing install it will show some expired voucher to active state not all but some…(means to say, i last update my system at 22-04-2016 and than last night with new code and it show voucher active that was expire b/w 22-04-2016 to 27-04-2016.
can you provide code that delete the existing db for voucher and than restore...
Even i delete captive portal and reset pfsense to factory default than restore, but again it show some expire voucher to active state.
Gertjan