Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Connect HLTV-chatuM</title>
- <link href="http://www.slipgate.de/hltv/logo.jpg" rel="icon"
- type="image/x-icon">
- </head>
- <body>
- <form name="dados" action="" method="post">
- <div style="text-align: center;"> <img
- style="width: 541px; height: 178px;" alt=""
- src="images/logohltv.png"><br>
- </div>
- <label for="nome"></label>
- <div style="text-align: center;"><label
- style="font-weight: bold;" for="nome">Server:</label><span
- style="font-weight: bold;">
- </span><input name="nome" placeholder="Server IP"
- type="text"> <label style="font-weight: bold;"
- for="idade">Password:</label>
- <input name="idade" placeholder="Password"
- type="text"> <input name="enviar" value="Enviar!"
- type="submit"> </div>
- </form>
- <div style="text-align: center;"><?php if(isset($_POST['enviar'])){
- $nome = $_POST['nome'];
- $idade = $_POST['idade'];
- if(empty($nome)){
- echo 'Digite o seu servidor.';
- exit;
- }else if(empty($idade)){
- echo 'Digite a password do servidor. Caso não tenha password digite "nopass"';
- exit;
- }
- $sufixo = mt_rand(100000,999999);
- //CRIA UM FICHEIRO DO TIPO .TXT
- $ficheiro = fopen("D:\HLServer/ippw.cfg","w+");
- //ESCREVE NO FICHEIRO
- if(fwrite($ficheiro,'connect '.$nome."".';serverpassword '.$idade)){
- echo 'Os seus dados foram guarados com sucesso! HLTV connected!';
- echo exec('D:\HLServer/hltv');
- }
- //FECHA O FICHEIRO
- fclose($ficheiro);
- }
- ?>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement