Guest User

Untitled

a guest
May 17th, 2025
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP8 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 8.2.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 27.10.2023
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. if (!defined('WHMCS')) {
  15. exit('This file cannot be accessed directly');
  16. }
  17.  
  18. ob_clean();
  19.  
  20. if ($Action == 'AjaxRestart') {
  21. $RebootVM = $LeasewebVPS->VPSAction('reboot', $VPSID);
  22. $LeasewebVPS->LSWVPS_Log('Reboot', $params, '{"VPS ID": "' . $VPSID . '" }', $RebootVM);
  23.  
  24. if (!!(array) $RebootVM) {
  25. $result['message'] = $_LANG['RebootError'];
  26. }
  27. else {
  28. $result['status'] = 'success';
  29. $result['message'] = $_LANG['RebootSuccess'];
  30. }
  31.  
  32. echo json_encode($result);
  33. exit();
  34. }
  35. else if ($Action == 'AjaxStart') {
  36. $BootVM = $LeasewebVPS->VPSAction('start', $VPSID);
  37. $LeasewebVPS->LSWVPS_Log('start', $params, '{"VPS ID": "' . $VPSID . '" }', $BootVM);
  38.  
  39. if (!!(array) $BootVM) {
  40. $result['message'] = $_LANG['StartError'];
  41. }
  42. else {
  43. $result['status'] = 'success';
  44. $result['message'] = $_LANG['StartSuccess'];
  45. }
  46.  
  47. echo json_encode($result);
  48. exit();
  49. }
  50. else if ($Action == 'AjaxStop') {
  51. $ShutdownVM = $LeasewebVPS->VPSAction('stop', $VPSID);
  52. $LeasewebVPS->LSWVPS_Log('stop', $params, '{"VPS ID": "' . $VPSID . '" }', $ShutdownVM);
  53.  
  54. if (!!(array) $ShutdownVM) {
  55. $result['message'] = $_LANG['StopError'];
  56. }
  57. else {
  58. $result['status'] = 'success';
  59. $result['message'] = $_LANG['StopSuccess'];
  60. }
  61.  
  62. echo json_encode($result);
  63. exit();
  64. }
  65. else if ($Action == 'Rebuild') {
  66. $OSID = $_POST['osimg'];
  67. $ReinstallVM = $LeasewebVPS->VPSReinstall($OSID, $VPSID);
  68. $LeasewebVPS->LSWVPS_Log('Reinstall', $params, '{"VPS ID": "' . $VPSID . '", "OS Name": "' . $OSID . '" }', $ReinstallVM);
  69.  
  70. if (!!(array) $ReinstallVM) {
  71. $result['message'] = $_LANG['RebuildError'];
  72. }
  73. else {
  74. $VPSInfo = $LeasewebVPS->SingleVPS($VPSID);
  75. $mergefields['block_ip'] = $VPSInfo[0]['VPSIP'];
  76. ...................................................................
  77. ............................................
  78. ...................
Advertisement
Add Comment
Please, Sign In to add comment