require_once INSTALLDIR.'/scripts/commandline.inc.php';
-if (empty($args[0]) || !Validate::uri($args[0])) {
+$validate = new Validate();
+
+if (empty($args[0]) || !$validate->uri($args[0])) {
print "$helptext";
exit(1);
}
print " Verify token: $sub->verify_token\n";
print " Signature secret: $sub->secret\n";
print " Sub start date: $sub->sub_start\n";
+ print " Sub end date: $sub->sub_end\n";
+ print " Sub lease remaining: {$sub->getLeaseRemaining()}\n";
print " Record created: $sub->created\n";
print " Record modified: $sub->modified\n";
}