Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for ionCube Encoder)
- *
- * @ Version : 8.2.0.1
- * @ Author : DeZender
- * @ Release on : 27.10.2023
- * @ Official site : http://DeZender.Net
- *
- */
- if (!defined('WHMCS')) {
- exit('This file cannot be accessed directly');
- }
- ob_clean();
- if ($Action == 'AjaxRestart') {
- $RebootVM = $LeasewebVPS->VPSAction('reboot', $VPSID);
- $LeasewebVPS->LSWVPS_Log('Reboot', $params, '{"VPS ID": "' . $VPSID . '" }', $RebootVM);
- if (!!(array) $RebootVM) {
- $result['message'] = $_LANG['RebootError'];
- }
- else {
- $result['status'] = 'success';
- $result['message'] = $_LANG['RebootSuccess'];
- }
- echo json_encode($result);
- exit();
- }
- else if ($Action == 'AjaxStart') {
- $BootVM = $LeasewebVPS->VPSAction('start', $VPSID);
- $LeasewebVPS->LSWVPS_Log('start', $params, '{"VPS ID": "' . $VPSID . '" }', $BootVM);
- if (!!(array) $BootVM) {
- $result['message'] = $_LANG['StartError'];
- }
- else {
- $result['status'] = 'success';
- $result['message'] = $_LANG['StartSuccess'];
- }
- echo json_encode($result);
- exit();
- }
- else if ($Action == 'AjaxStop') {
- $ShutdownVM = $LeasewebVPS->VPSAction('stop', $VPSID);
- $LeasewebVPS->LSWVPS_Log('stop', $params, '{"VPS ID": "' . $VPSID . '" }', $ShutdownVM);
- if (!!(array) $ShutdownVM) {
- $result['message'] = $_LANG['StopError'];
- }
- else {
- $result['status'] = 'success';
- $result['message'] = $_LANG['StopSuccess'];
- }
- echo json_encode($result);
- exit();
- }
- else if ($Action == 'Rebuild') {
- $OSID = $_POST['osimg'];
- $ReinstallVM = $LeasewebVPS->VPSReinstall($OSID, $VPSID);
- $LeasewebVPS->LSWVPS_Log('Reinstall', $params, '{"VPS ID": "' . $VPSID . '", "OS Name": "' . $OSID . '" }', $ReinstallVM);
- if (!!(array) $ReinstallVM) {
- $result['message'] = $_LANG['RebuildError'];
- }
- else {
- $VPSInfo = $LeasewebVPS->SingleVPS($VPSID);
- $mergefields['block_ip'] = $VPSInfo[0]['VPSIP'];
- ...................................................................
- ............................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment