| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/pcisecureform.com/lcapi/ |
Upload File : |
<?
require_once($_SERVER['DOCUMENT_ROOT'].'/lcapi/inc/LCAPI.php');
$fields = array(
'fname',
'lname',
'address',
'city',
'state',
'zip',
'country',
'phone',
'email',
'cc_num',
'cc_exp_month',
'cc_exp_year',
'cc_cvv',
'site',
'description',
'billing_amount',
'rebill_amount',
'next_bill_date',
'referer',
'tc',
'sid',
'cid',
'ipaddress',
'sendemail',
'email_type'
);
if (isset($_POST['submitted'])) {
$formfields = array();
foreach ($fields as $field) {
$formfields[$field] = $_POST[$field];
}
$query = "";
if(!empty($_POST['subscriptions'])) {
$query = "?";
foreach($_POST['subscriptions'] as $index=>$subscription_id) {
if($subscription_id != '' && is_numeric($subscription_id)) {
$query .= "subscriptions[]=".$subscription_id."&";
$query .= "subscription_amount[]=".$_POST['subscription_amount'][$index]."&";
}
}
}
$lcapi = new LCAPI();
$url = "https://www.learningcentersupport.com/lcapi/CreateUser.php";
$result = $lcapi->PostFields($url.$query, $formfields);
if ($result->status != 'Success') {
$errormessage = $result->errormessage;
} else {
echo "Success! UserID: " . $result->userid;
exit();
}
}
?>
<html>
<head>
<title>Test Page for <?=$url;?></title>
</head>
<body>
<form action="<?=$_SERVER['SCRIPT_NAME'];?>" method="POST">
<table border="0" cellpadding="2" cellspacing="2" align="center">
<? if (isset($errormessage)) {
echo "<tr style=\"color:#fff;background:#ff0000;\"><td colspan=\"2\">$errormessage</td></tr>";
}
foreach ($fields as $field) {
echo "<tr><td>$field</td><td><input type=\"text\" name=\"$field\" value=\"{$_POST[$field]}\"></td></tr>";
}
?>
<tr></tr>
<tr>
<td colspan="2">Subscriptions</td>
</tr>
<?php for($i=0; $i<2; $i++) : ?>
<tr>
<td>id</td>
<td><input type="text" name="subscriptions[]" value="<?= (isset($_POST['subscriptions'][$i])) ? $_POST['subscriptions'][$i] : null; ?>" /></td>
</tr>
<tr>
<td>amount</td>
<td><input type="text" name="subscription_amount[]" value="<?= (isset($_POST['subscription_amount'][$i])) ? $_POST['subscription_amount'][$i] : null; ?>" /></td>
</tr>
<?php endfor; ?>
<tr>
<td colspan="2" align="center"><input type="submit" value="Create Account"></td>
</tr>
</table>
<input type="hidden" name="submitted" value="submitted">
</form>
</body>
</html>