Guest User

Untitled

a guest
Dec 28th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.0.8.0
  8. * @ Author : DeZender
  9. * @ Release on : 25.09.2017
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. define( 'CLI_MODE', true );
  15. define( 'SYSTEM_PATH', dirname( __FILE__ ) . '/' );
  16. require SYSTEM_PATH . 'include.php';
  17. require SYSTEM_PATH . 'class_CCSQL.php';
  18. set_time_limit( CONSOLE_TIME_LIMIT );
  19. $args = $_SERVER['argv'];
  20. array_shift( $args );
  21. $no_username_commands = array(
  22. 'sanitycheck',
  23. 'rpchostapps',
  24. 'autoreindex',
  25. 'resetadminpassword',
  26. 'rpchostadd',
  27. 'version',
  28. 'cronjob',
  29. 'installation',
  30. 'batch',
  31. 'listaccounts',
  32. 'processlogs',
  33. 'backup',
  34. 'restore'
  35. );
  36.  
  37. if (1 <= count( $args )) {
  38. $command = strtolower( array_shift( $args ) );
  39. if (!(count( $args )) || (substr( $args[0], 0, 2 ) == '--')) {
  40. if (in_array( $command, $no_username_commands )) {
  41. $username = 'all';
  42. }
  43. else {
  44. $command = false;
  45. $username = false;
  46. $options = false;
  47. }
  48. }
  49. else {
  50. $username = array_shift( $args );
  51. }
  52.  
  53. $options = array( );
  54. }
  55. else {
  56. $command = false;
  57. $username = false;
  58. $options = false;
  59. }
  60.  
  61. if (($command != 'version') && ($command != 'installation')) {
  62. if (!(defined( 'DB_NAME' ) && strlen( DB_NAME ))) {
  63. exit( 'ERR Database not yet installed' . "\n" );
  64. }
  65.  
  66. try {
  67. $sql = new CCSQL( true );
  68. }
  69. catch (Exception $e) {
  70. exit( 'INF Database connection error: ' . $e->getMessage( ) . "\n" . 'ERR Could not connect to database server' . "\n" . '.' . "\n" );
  71. }
  72.  
  73. $sql->plaintext_errors = true;
  74. }
  75.  
  76. require SYSTEM_PATH . 'include_console.php';
  77. require SYSTEM_PATH . 'class_CLIApplication.php';
  78. require SYSTEM_PATH . 'class_ServerControl.php';
  79. require SYSTEM_PATH . 'class_SystemControl.php';
  80. COutput::register_handler( 'CLI' );
  81.  
  82. try {
  83. if ($command === false) {
  84. show_help( );
  85. }
  86.  
  87. if ($command == 'reissuelicense') {
  88. $command = 'cronjob';
  89. ..............................................................
  90. ...............................
  91. .......
Advertisement
Add Comment
Please, Sign In to add comment