api_login($username, $password); if (strlen($sid) == 0) die("Got A Blank Session"); $res = $client->api_get_prepay_list($sid); //echo '$res = '.var_export($res, true).'
';
} catch (Exception $ex) {
echo "Exception Occured!\n";
echo "Code:{$ex->faultcode}\n";
echo "String:{$ex->faultstring}\n";
};
// $res is an array of prepayment accounts.
// Mow we only have one prepay_ID so instead of figuring out how to scan PHP
// arrays I've deleted all the other empty PrePay IDs so there's only one.
$pp = $res[0];
echo "There are
";
// echo $pp['prepay_remaining']; // This line stops the script in its tracks!
foreach ($pp as $k => $v) {
if ($k == 'prepay_remaining') { $remaining = $v; echo $v; }
}
echo "
dollars remaining in the account.";
echo "
"; echo "and Interserver deduct $6 per month on the 18th, which means it's covered up to the next 18th of the month"; $monthsremaining = floor($remaining / 6); if ($monthsremaining >= 1) { echo " plus another "; } if ($monthsremaining == 1) { echo "month"; } else { if ($monthsremaining > 1) { echo $monthsremaining; echo " months"; } } echo "."; ?>
The domain names delia-derbyshire.net and wikidelia.net expire on the 3rd January 2025 and the 18th December 2024 respectively, so it'd be worth paying up to 18th December 2024.
If you would like delia-derbyshire.net and the wikidelia to stay online, you can charge the prepayment meter directly by using this link and you can check that it worked by reloading this page.