function do_rebill($vars) { global $config; $d = strftime($config['date_format'], strtotime($vars['date'])); $d1 = strftime($config['date_format'], strtotime($vars['date1'])); $d2 = strftime($config['date_format'], strtotime($vars['date2'])); $ds = date('Y-m-d', strtotime($vars['date'])); $t = new_smarty(); $t->display('admin/header.inc.html'); print "<h1>Running Rebill for [{$d}], please wait patiently...</h1>"; print "<p>Rebilling dates from [{$d1}] to [{$d2}].</p>"; ob_end_flush(); cc_core_rebill($vars['paysys_id'], $vars['date'], $from_cron = false); /// next $vars['date'] = date('Y-m-d', strtotime($vars['date']) + 3600 * 24); if ($vars['date'] > $vars['date2']) { print "<font size=3>Rebilling Finished! <a href='rebill.php'>Back to the form</a></font>"; $t->display('admin/footer.inc.html'); return; } $d = strftime($config['date_format'], strtotime($vars['date'])); print <<<CUT \t<form method=post> \t<input type=submit name=confirm value="Process next date[{$d}]" /> \t<input type=hidden name=date value='{$vars['date']}' /> \t<input type=hidden name=date1 value='{$vars['date1']}' /> \t<input type=hidden name=date2 value='{$vars['date2']}' /> \t<input type=hidden name=paysys_id value='{$vars['paysys_id']}' /> \t</form> CUT; $t->display('admin/footer.inc.html'); }
function cc_demo_rebill() { return cc_core_rebill('cc_demo'); }
function payvision_rebill() { return cc_core_rebill('payvision'); }
function micropayment_cc_rebill() { return cc_core_rebill('micropayment_cc'); }
function authorize_aim_rebill() { return cc_core_rebill('authorize_aim'); }
function plugnpay_rebill() { return cc_core_rebill('plugnpay'); }
function firstpay_rebill() { return cc_core_rebill('firstpay'); }
function cobrebem_rebill() { return cc_core_rebill('cobrebem'); }
function eprocessingnetwork_rebill() { return cc_core_rebill('eprocessingnetwork'); }
function paymentsgateway_rebill() { return cc_core_rebill('paymentsgateway'); }
function psigate_rebill() { return cc_core_rebill('psigate'); }
function moneris_rebill() { return cc_core_rebill('moneris'); }
function eway_rebill() { return cc_core_rebill('eway'); }
function merchantone_rebill() { return cc_core_rebill('merchantone'); }
function innovative_rebill() { return cc_core_rebill('innovative'); }
function google_checkout_rebill() { return cc_core_rebill('google_checkout'); }
function adultprocessor_rebill() { return cc_core_rebill('adultprocessor'); }
function directone_rebill() { return cc_core_rebill('directone'); }
function epayeu_rebill() { return cc_core_rebill('epayeu'); }
function secpay_rebill() { return cc_core_rebill('secpay'); }
function logiccommerce_rebill() { return cc_core_rebill('logiccommerce'); }
function manual_cc_rebill() { return cc_core_rebill('manual_cc'); }
function migs_cc_rebill() { return cc_core_rebill('migs_cc'); }
function inspirepay_rebill() { return cc_core_rebill('inspirepay'); }
function protxdirect_rebill() { return cc_core_rebill('protxdirect'); }
function netbilling_cc_rebill() { return cc_core_rebill('netbilling_cc'); }
function esolutions_rebill() { return cc_core_rebill('esolutions'); }
function realex_rebill() { return cc_core_rebill('realex'); }
function netregistry_rebill() { return cc_core_rebill('netregistry'); }
function safecharge_rebill() { return cc_core_rebill('safecharge'); }