Advertisement
Guest User

Untitled

a guest
Mar 7th, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. include( '../../include/config.inc.php' );
  15. include( HOME_DIR . '/include/class_srv_minecraft.php' );
  16. $sess_userid = $strona->page_access( );
  17. $minecraft = new srv_minecraft( );
  18. $minecraft->userid = $sess_userid;
  19. $minecraft->serverid = $_GET['id'];
  20. $minecraft->level = 3;
  21. $minecraft->game_access( $_GET['id'] );
  22. $minecraft->status_check( );
  23. $minecraft->s_type_verify( 'minecraft' );
  24.  
  25. if ($minecraft->gameservers['online'] == 1) {
  26. $minecraft->ssh2_connect( );
  27.  
  28. if ($minecraft->sshconnect) {
  29. if (( isset( $_POST['srvcmd'] ) && $_POST['srvcmd'] != '' )) {
  30. $minecraft->ssh2_cmd( 'screen -p 0 -S start' . $minecraft->gameservers['serverid'] . ( ( '' . ' -X eval \'stuff "' . $_POST['srvcmd'] . '
  31. ' ) . '"\'' ) );
  32. sleep( 1 );
  33. }
  34.  
  35. $minecraft->ssh2_cmd( 'tail -100 /home/nozofiles/s' . $minecraft->gameservers['serverid'] . '/server_files/server.log' );
  36. $konsola = $minecraft->ssh2_output( );
  37. } else {
  38. $konsola = NULL;
  39. }
  40. }
  41. ........................................................................
  42. .........................................
  43. ................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement