Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. <?php
  2. 1.if ($_REQUEST["conf"] == 2)
  3. 2. {
  4. ?>
  5. <?
  6. <form method="POST" name="lizer" action="modsinstall.php?lizer">
  7. <input type="image" src="myimage.gif" border="0" align="center" />
  8. </form>
  9. ?>
  10. <?php
  11. 4. if(isset($_GET["lizer"]))
  12. 5. {
  13. 6. $connection = ssh2_connect($my3, $my4);
  14. 7. ssh2_auth_password($connection, $my1, $my2);
  15. 8. ssh2_exec($connection, $cmd1);
  16. 9. if($type == "Counter-Strike")
  17. 10. {
  18. 11. ssh2_exec($connection, 'cp -r /home/files/beckup/mods/lizer/cstrike ' . $my5 . '/cstrike');
  19. 12. ssh2_exec($connection, 'cd ' . $my5 . '/cstrike/addons/amxmodx/configs' && 'echo "lasermine.amxx" >> plugins.ini');
  20. 13. }
  21. 14. elseif($type == "CS:CZ")
  22. 15. {
  23. 16. ssh2_exec($connection, 'cp -r /home/files/beckup/mods/lizer/czero ' . $my5 . '/czero');
  24. 17. ssh2_exec($connection, 'cd ' . $my5 . '/czero/addons/amxmodx/configs' && 'echo "lasermine.amxx" >> plugins.ini');
  25. 18. }
  26. 19. echo "asds";
  27. 20. }
  28. 21. }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement