Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php use WHMCS\Database\Capsule; use WHMCS\Module\Addon\fancy_reseller\Admin\AdminDispat..
Decoded Output download
<?php
use WHMCS\Database\Capsule; use WHMCS\Module\Addonancy_reseller\Admin\AdminDispatcher; use WHMCS\Module\Addonancy_reseller\Client\ClientDispatcher; if (!defined('WHMCS')) { die('This file cannot be accessed directly'); } function fancy_reseller_config() { return array('name' => 'Fancy Reseller', 'description' => 'Reseller module to integrate XtreamUI', 'author' => 'XTO Solutions', 'language' => 'english', 'version' => '2.1', 'fields' => array('limit' => array('FriendlyName' => 'Limit', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Limit products to only 1 active per customer to prevent multiple lines being created.'), 'allow_edit' => array('FriendlyName' => 'Allow User Edit', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Allow users to edit their line credentials or MAC address in the client area.', 'Default' => 'on'), 'enable_player' => array('FriendlyName' => 'Enable Player', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Allow users to watch from the client area. (NOTE: HLS must be enabled for the line).', 'Default' => 'on'), 'smarters_compatibility_mode' => array('FriendlyName' => 'Smarters Compatibility Mode', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Enable if you have previously used Smarters Module. (Use Service Id instead of Order Id).'), 'custom_xc_identifier' => array('FriendlyName' => 'Custom Identifier', 'Type' => 'text', 'SimpleMode' => true, 'Description' => 'Use this for custom identifier in XC reseller notes (instead of default "WHMCS")', 'Default' => 'WHMCS'))); } function fancy_reseller_activate() { $sp19e543 = 'Fancy Reseller M3U Email'; $sp90523f = 'Fancy Reseller MAG Email'; $sp3fe6a4 = 'Welcome to {$company_name}'; $sp3cfc05 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>PortalAddress:{$panel_address}get.php?username={$service_username}&password={$service_password}&type=m3u_plus&output=ts</div>
<div></div>
<div>YourUsername:{$service_username}</div>
<div>YourPassword:{$service_password}</div>'; $spf6bf57 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>MAGPortalURL: {$panel_address}c</div>'; Capsule::table('tblemailtemplates')->insert(array(array('type' => 'product', 'name' => $sp19e543, 'subject' => $sp3fe6a4, 'message' => $sp3cfc05, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0), array('type' => 'product', 'name' => $sp90523f, 'subject' => $sp3fe6a4, 'message' => $spf6bf57, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0))); try { Capsule::schema()->create('mod_fancy_reseller', function ($sp00dbbc) { $sp00dbbc->increments('id'); $sp00dbbc->text('demo'); }); return array('status' => 'success', 'description' => 'Well aren\'t you a fancy boi.'); } catch (\Exception $spf1c8f6) { return array('status' => 'error', 'description' => 'Unable to create mod_fancy_reseller: ' . $spf1c8f6->getMessage()); } } function fancy_reseller_deactivate() { Capsule::table('tblemailtemplates')->where('name', '=', 'Fancy Reseller M3U Email')->delete(); Capsule::table('tblemailtemplates')->where('name', '=', 'Fancy Reseller MAG Email')->delete(); try { Capsule::schema()->dropIfExists('mod_fancy_reseller'); return array('status' => 'success', 'description' => 'You are no longer fancy.'); } catch (\Exception $spf1c8f6) { return array('status' => 'error', 'description' => "Unable to drop mod_addonexample: {$spf1c8f6->getMessage()}"); } } function fancy_reseller_upgrade($spaf7589) { $sp618552 = $spaf7589['version']; if ($sp618552 < 1.1) { $sp300f9c = Capsule::schema(); $sp300f9c->table('mod_fancy_reseller', function ($sp00dbbc) { }); } if ($sp618552 < 1.2) { $sp300f9c = Capsule::schema(); $sp300f9c->table('mod_fancy_reseller', function ($sp00dbbc) { }); } if ($sp618552 < 1.3) { $sp19e543 = 'Fancy Reseller M3U Email'; $sp90523f = 'Fancy Reseller MAG Email'; $sp3fe6a4 = 'Welcome to {$company_name}'; $sp3cfc05 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>PortalAddress:{$panel_address}get.php?username={$service_username}&password={$service_password}&type=m3u_plus&output=ts</div>
<div></div>
<div>YourUsername:{$service_username}</div>
<div>YourPassword:{$service_password}</div>'; $spf6bf57 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>MAGPortalURL: {$panel_address}c</div>'; Capsule::table('tblemailtemplates')->insert(array(array('type' => 'product', 'name' => $sp19e543, 'subject' => $sp3fe6a4, 'message' => $sp3cfc05, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0), array('type' => 'product', 'name' => $sp90523f, 'subject' => $sp3fe6a4, 'message' => $spf6bf57, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0))); } } function fancy_reseller_output($spaf7589) { $sp8eb789 = $spaf7589['modulelink']; $spc85df5 = $spaf7589['version']; $spf30a44 = $spaf7589['_lang']; $sp23827e = $spaf7589['Text Field Name']; $spdb812a = $spaf7589['Password Field Name']; $sp26d125 = $spaf7589['Checkbox Field Name']; $spc2ee24 = $spaf7589['Dropdown Field Name']; $sp65ae49 = $spaf7589['Radio Field Name']; $sp439d53 = $spaf7589['Textarea Field Name']; $spd42d73 = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; $sp1ea399 = new AdminDispatcher(); $sp37800a = $sp1ea399->dispatch($spd42d73, $spaf7589); echo $sp37800a; } function fancy_reseller_sidebar($spaf7589) { $sp8eb789 = $spaf7589['modulelink']; $spc85df5 = $spaf7589['version']; $spf30a44 = $spaf7589['_lang']; $sp23827e = $spaf7589['Text Field Name']; $spdb812a = $spaf7589['Password Field Name']; $sp26d125 = $spaf7589['Checkbox Field Name']; $spc2ee24 = $spaf7589['Dropdown Field Name']; $sp65ae49 = $spaf7589['Radio Field Name']; $sp439d53 = $spaf7589['Textarea Field Name']; return null; } function fancy_reseller_clientarea($spaf7589) { $sp8eb789 = $spaf7589['modulelink']; $spc85df5 = $spaf7589['version']; $spf30a44 = $spaf7589['_lang']; $sp23827e = $spaf7589['Text Field Name']; $spdb812a = $spaf7589['Password Field Name']; $sp26d125 = $spaf7589['Checkbox Field Name']; $spc2ee24 = $spaf7589['Dropdown Field Name']; $sp65ae49 = $spaf7589['Radio Field Name']; $sp439d53 = $spaf7589['Textarea Field Name']; $spd42d73 = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; $sp1ea399 = new ClientDispatcher(); return $sp1ea399->dispatch($spd42d73, $spaf7589); } ?>
Did this file decode correctly?
Original Code
<?php
use WHMCS\Database\Capsule; use WHMCS\Module\Addon\fancy_reseller\Admin\AdminDispatcher; use WHMCS\Module\Addon\fancy_reseller\Client\ClientDispatcher; if (!defined('WHMCS')) { die('This file cannot be accessed directly'); } function fancy_reseller_config() { return array('name' => 'Fancy Reseller', 'description' => 'Reseller module to integrate XtreamUI', 'author' => 'XTO Solutions', 'language' => 'english', 'version' => '2.1', 'fields' => array('limit' => array('FriendlyName' => 'Limit', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Limit products to only 1 active per customer to prevent multiple lines being created.'), 'allow_edit' => array('FriendlyName' => 'Allow User Edit', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Allow users to edit their line credentials or MAC address in the client area.', 'Default' => 'on'), 'enable_player' => array('FriendlyName' => 'Enable Player', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Allow users to watch from the client area. (NOTE: HLS must be enabled for the line).', 'Default' => 'on'), 'smarters_compatibility_mode' => array('FriendlyName' => 'Smarters Compatibility Mode', 'Type' => 'yesno', 'SimpleMode' => true, 'Description' => 'Enable if you have previously used Smarters Module. (Use Service Id instead of Order Id).'), 'custom_xc_identifier' => array('FriendlyName' => 'Custom Identifier', 'Type' => 'text', 'SimpleMode' => true, 'Description' => 'Use this for custom identifier in XC reseller notes (instead of default "WHMCS")', 'Default' => 'WHMCS'))); } function fancy_reseller_activate() { $sp19e543 = 'Fancy Reseller M3U Email'; $sp90523f = 'Fancy Reseller MAG Email'; $sp3fe6a4 = 'Welcome to {$company_name}'; $sp3cfc05 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>PortalAddress:{$panel_address}get.php?username={$service_username}&password={$service_password}&type=m3u_plus&output=ts</div>
<div></div>
<div>YourUsername:{$service_username}</div>
<div>YourPassword:{$service_password}</div>'; $spf6bf57 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>MAGPortalURL: {$panel_address}c</div>'; Capsule::table('tblemailtemplates')->insert(array(array('type' => 'product', 'name' => $sp19e543, 'subject' => $sp3fe6a4, 'message' => $sp3cfc05, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0), array('type' => 'product', 'name' => $sp90523f, 'subject' => $sp3fe6a4, 'message' => $spf6bf57, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0))); try { Capsule::schema()->create('mod_fancy_reseller', function ($sp00dbbc) { $sp00dbbc->increments('id'); $sp00dbbc->text('demo'); }); return array('status' => 'success', 'description' => 'Well aren\'t you a fancy boi.'); } catch (\Exception $spf1c8f6) { return array('status' => 'error', 'description' => 'Unable to create mod_fancy_reseller: ' . $spf1c8f6->getMessage()); } } function fancy_reseller_deactivate() { Capsule::table('tblemailtemplates')->where('name', '=', 'Fancy Reseller M3U Email')->delete(); Capsule::table('tblemailtemplates')->where('name', '=', 'Fancy Reseller MAG Email')->delete(); try { Capsule::schema()->dropIfExists('mod_fancy_reseller'); return array('status' => 'success', 'description' => 'You are no longer fancy.'); } catch (\Exception $spf1c8f6) { return array('status' => 'error', 'description' => "Unable to drop mod_addonexample: {$spf1c8f6->getMessage()}"); } } function fancy_reseller_upgrade($spaf7589) { $sp618552 = $spaf7589['version']; if ($sp618552 < 1.1) { $sp300f9c = Capsule::schema(); $sp300f9c->table('mod_fancy_reseller', function ($sp00dbbc) { }); } if ($sp618552 < 1.2) { $sp300f9c = Capsule::schema(); $sp300f9c->table('mod_fancy_reseller', function ($sp00dbbc) { }); } if ($sp618552 < 1.3) { $sp19e543 = 'Fancy Reseller M3U Email'; $sp90523f = 'Fancy Reseller MAG Email'; $sp3fe6a4 = 'Welcome to {$company_name}'; $sp3cfc05 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>PortalAddress:{$panel_address}get.php?username={$service_username}&password={$service_password}&type=m3u_plus&output=ts</div>
<div></div>
<div>YourUsername:{$service_username}</div>
<div>YourPassword:{$service_password}</div>'; $spf6bf57 = '<div>Dear{$client_name},</div>
<div></div>
<div>Thanksforpurchasingourtopratedservice!</div>
<div>{$service_product_name}hasbeenactivated.</div>
<div></div>
<div>MAGPortalURL: {$panel_address}c</div>'; Capsule::table('tblemailtemplates')->insert(array(array('type' => 'product', 'name' => $sp19e543, 'subject' => $sp3fe6a4, 'message' => $sp3cfc05, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0), array('type' => 'product', 'name' => $sp90523f, 'subject' => $sp3fe6a4, 'message' => $spf6bf57, 'disabled' => 0, 'custom' => 1, 'plaintext' => 0))); } } function fancy_reseller_output($spaf7589) { $sp8eb789 = $spaf7589['modulelink']; $spc85df5 = $spaf7589['version']; $spf30a44 = $spaf7589['_lang']; $sp23827e = $spaf7589['Text Field Name']; $spdb812a = $spaf7589['Password Field Name']; $sp26d125 = $spaf7589['Checkbox Field Name']; $spc2ee24 = $spaf7589['Dropdown Field Name']; $sp65ae49 = $spaf7589['Radio Field Name']; $sp439d53 = $spaf7589['Textarea Field Name']; $spd42d73 = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; $sp1ea399 = new AdminDispatcher(); $sp37800a = $sp1ea399->dispatch($spd42d73, $spaf7589); echo $sp37800a; } function fancy_reseller_sidebar($spaf7589) { $sp8eb789 = $spaf7589['modulelink']; $spc85df5 = $spaf7589['version']; $spf30a44 = $spaf7589['_lang']; $sp23827e = $spaf7589['Text Field Name']; $spdb812a = $spaf7589['Password Field Name']; $sp26d125 = $spaf7589['Checkbox Field Name']; $spc2ee24 = $spaf7589['Dropdown Field Name']; $sp65ae49 = $spaf7589['Radio Field Name']; $sp439d53 = $spaf7589['Textarea Field Name']; return null; } function fancy_reseller_clientarea($spaf7589) { $sp8eb789 = $spaf7589['modulelink']; $spc85df5 = $spaf7589['version']; $spf30a44 = $spaf7589['_lang']; $sp23827e = $spaf7589['Text Field Name']; $spdb812a = $spaf7589['Password Field Name']; $sp26d125 = $spaf7589['Checkbox Field Name']; $spc2ee24 = $spaf7589['Dropdown Field Name']; $sp65ae49 = $spaf7589['Radio Field Name']; $sp439d53 = $spaf7589['Textarea Field Name']; $spd42d73 = isset($_REQUEST['action']) ? $_REQUEST['action'] : ''; $sp1ea399 = new ClientDispatcher(); return $sp1ea399->dispatch($spd42d73, $spaf7589); }
Function Calls
None |
Stats
MD5 | 5224e3795e294d12f0cb1c9947edb084 |
Eval Count | 0 |
Decode Time | 110 ms |