Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvHsqw4FvyajunZAYWNTOG993km8N57vn7g9dyo..
Decoded Output download
require_once 'modules/Subscription/Helper.php';
class Subscription_List_View extends Vtiger_Index_View{
public function get() {
global $site_URL;
$site_URL;
$xmlFilePath = 'https://services.smackcoders.com/vt_subscriptions/public/assets/vtigercrm.xml';
// Read the contents of the XML file
$xmlContents = file_get_contents($xmlFilePath);
// Parse the XML contents into an XML object
$xmlObject = simplexml_load_string($xmlContents);
$json = json_encode($xmlObject);
$array = json_decode($json, true);
return $array;
}
public function process(Vtiger_Request $request){
global $site_URL, $current_user, $adb;
$helper = new Helper();
$authorization = false;
$userDetails = $adb->pquery("SELECT * FROM vtiger_smack_subscriber");
$userData = $adb->fetch_array($userDetails);
$key = $userData['license_key'];
$status = $userData['status'];
$userId = $userData['id'];
$lastUpdatedTime = $userData['last_modifieddate'];
$setting = $_GET['page'];
if(!empty($key) && $status == 'active'){
date_default_timezone_set('Asia/Kolkata');
$currentDateTime = date('Y-m-d H:i:s');
$cronTime = strtotime($currentDateTime) - strtotime($lastUpdatedTime);
if($cronTime >= 3600){
$checkLinceseKeyValid = $helper->validateLinceseKey($key, $site_URL);
if($checkLinceseKeyValid->status == 'valid'){
$updateQuery = "UPDATE vtiger_smack_subscriber SET `username` = ?,`license_key` = ?,`status` = ?,`email` = ?,`laravel_user_id` = ?,`plan` = ?,`start_date` = ?,`expire_date` = ?,`last_modifieddate` = ? WHERE `id` = ?"; // Assuming `id` is the primary key column name
$adb->pquery($updateQuery, array(
$checkLinceseKeyValid->data->userName,
$checkLinceseKeyValid->data->licenseKey,
"active",
$checkLinceseKeyValid->data->email,
$checkLinceseKeyValid->data->userId,
$checkLinceseKeyValid->data->plan,
$checkLinceseKeyValid->data->start_date,
$checkLinceseKeyValid->data->expiry_date,
$currentDateTime,
$userId // the value of the ID you want to update
));
}else{
$updateQuery = "UPDATE vtiger_smack_subscriber SET `status` = ?, `last_modifieddate`= ? WHERE `id` = ?";
$adb->pquery($updateQuery, array(
"inactive",
$currentDateTime,
$userId // the value of the ID you want to update
));;
}
}
$check_auth = $adb->pquery("SELECT * FROM vtiger_smack_subscriber WHERE license_key = '$key'");
$auth = $adb->num_rows($check_auth);
if($auth > 0){
$user = $adb->fetch_array($check_auth);
$userId = $user['id'];
$username = $user['username'];
$startDate = $user['start_date'];
$plan = $user['plan'];
$lincense = $user['license_key'];
$expireDate = $user['expire_date'];
$authorization = true;
}
}
$user_id = $user['id'];
$searchTerm = $this->get();
$phpversion = phpversion();
if (isset($_SERVER['HTTP_HOST'])) {
$domain_name = str_replace('www.', '', $_SERVER['HTTP_HOST']);
}
$moduleDetails = $adb->pquery("SELECT * FROM vtiger_smack_extension WHERE user_id = '$user_id'");
$installedModules = array();
while ($moduleInstall = $adb->fetch_array($moduleDetails)) {
$installedModules[] = $moduleInstall['module_name']; // Add each 'module_name' to the array
}
$qualifiedModuleName = $request->getModule(false);
$viewer = $this->getViewer($request);
$viewer->assign('EXTENSIONS_LIST', $searchTerm);
$viewer->assign('phpversion', $phpversion);
$viewer->assign('AUTH', $authorization);
$viewer->assign('USER_NAME', $username);
$viewer->assign('adad', 'adsadasd');
$viewer->assign('startDate', $startDate);
$viewer->assign('plan', $plan);
$viewer->assign('expireDate', $expireDate);
$viewer->assign('ValidKey', $laravelValidation);
$viewer->assign('Key', $lincense);
$viewer->assign('domain', $domain_name);
$viewer->assign('MODULE', $qualifiedModuleName);
$viewer->assign('INSTALL', $installedModules);
$viewer->assign('site_URL', $site_URL);
$viewer->assign('Page', $setting);
if($setting == "Settings"){
$viewer->view('Settings.tpl', $qualifiedModuleName);
}else{
$viewer->view('Index.tpl', $qualifiedModuleName);
}
}
}
Did this file decode correctly?
Original Code
eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvHsqw4FvyajunZAYWNTOG993km8N57vn7g9dyoKFcXISSdPGwytdTD/ffWH/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wagVrveXpwgwcEDjATc79I0f610Vcsm5AGsmsnO0VHDad5WnMkhMRH7zGxL3KLxJ7sWDLUGO6cw29MexBWsDfbO/6KaZCQHXMXz/z/fzr3+/ff/4H')))));
Function Calls
strrev | 3 |
gzinflate | 11 |
str_rot13 | 11 |
gzuncompress | 4 |
rawurldecode | 1 |
base64_decode | 18 |
Stats
MD5 | c25508e21a85e9ef028ca97bfb280b9d |
Eval Count | 16 |
Decode Time | 86 ms |