Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body bgcolor="#727272" text="black">
- <center><img src="http://1.bp.blogspot.com/_D3pz8-oLrYA/TC8c2A3LAyI/AAAAAAAAAFU/Y8ko4kWc4tE/s1600/samp-logo.jpg">
- <br>
- <font size="10"> Leitura de <font color="red">Arquivos<font> <font color="black">Garfield <font>
- <?php
- $Nome = $_POST['Usuario'];
- $Sen = $_POST['Senha'];
- $Host = $_POST['Hosting'];
- $Port = $_POST['Porta'];
- $Abri = $_POST['Abrir'];
- $arquivo = fopen("ftp://$Nome:$Sen@$Host/$Abri","r");// endereço ftp
- if(!$arquivo)
- {
- echo "<h2>Você não tem permissão para abrir este arquivo!</h2>";// se o senha/endereço estiver errado...
- exit;
- }
- $texto="\n";
- while ($linha = fgets($arquivo,1024))
- {
- if ($linha) $texto .= $linha;
- }
- $texto = nl2br($texto);
- fclose ($arquivo);
- //----------Saida//
- echo "
- <form method='post' action=''>
- <textarea name='leituradebans' rows='50' cols='100' value='true'>$texto</textarea></form>";
- ?>
- </center><body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment