Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. $act = $HTTP_GET_VARS['act'];
  3.  
  4. if( $_POST['pass'] == '12345' ): //coloca a senha ali...
  5. if ( $act == 'start' ):
  6. $output = shell_exec("./Server.exe start");
  7. echo $output;
  8. elseif ( $act == 'stop' ):
  9. $output = shell_exec("./Server.exe stop");
  10. echo $output;
  11. endif;
  12. else:
  13. ?>
  14. <form name="form1" method="post" action="?act=<?php echo $act; ?>">
  15. <label for="pass"></label>
  16. <input type="text" name="pass" id="pass">
  17. <input type="submit" name="button" id="button" value="OK">
  18. </form>
  19. <?php
  20. endif;
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement