Advertisement
Guest User

hltv connect zwame

a guest
Sep 8th, 2012
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.47 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4.   <title>Connect HLTV-chatuM</title>
  5.   <link href="http://www.slipgate.de/hltv/logo.jpg" rel="icon"
  6.  type="image/x-icon">
  7. </head>
  8. <body>
  9. <form name="dados" action="" method="post">
  10.   <div style="text-align: center;"> <img
  11.  style="width: 541px; height: 178px;" alt=""
  12.  src="images/logohltv.png"><br>
  13.   </div>
  14.   <label for="nome"></label>
  15.   <div style="text-align: center;"><label
  16.  style="font-weight: bold;" for="nome">Server:</label><span
  17.  style="font-weight: bold;">
  18.   </span><input name="nome" placeholder="Server IP"
  19.  type="text"> <label style="font-weight: bold;"
  20.  for="idade">Password:</label>
  21.   <input name="idade" placeholder="Password"
  22.  type="text"> <input name="enviar" value="Enviar!"
  23.  type="submit"> </div>
  24. </form>
  25. <div style="text-align: center;"><?php if(isset($_POST['enviar'])){
  26. $nome = $_POST['nome'];
  27. $idade = $_POST['idade'];
  28. if(empty($nome)){
  29. echo 'Digite o seu servidor.';
  30. exit;
  31. }else if(empty($idade)){
  32. echo 'Digite a password do servidor. Caso não tenha password digite "nopass"';
  33. exit;
  34. }
  35. $sufixo = mt_rand(100000,999999);
  36. //CRIA UM FICHEIRO DO TIPO .TXT
  37. $ficheiro = fopen("D:\HLServer/ippw.cfg","w+");
  38. //ESCREVE NO FICHEIRO
  39. if(fwrite($ficheiro,'connect '.$nome."".';serverpassword '.$idade)){
  40. echo 'Os seus dados foram guarados com sucesso! HLTV connected!';
  41. echo exec('D:\HLServer/hltv');
  42. }
  43. //FECHA O FICHEIRO
  44. fclose($ficheiro);
  45. }
  46. ?>
  47. </div>
  48. </body>
  49. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement