Guest User

Untitled

a guest
Sep 28th, 2010
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <html>
  2. <body bgcolor="#727272" text="black">
  3. <center><img src="http://1.bp.blogspot.com/_D3pz8-oLrYA/TC8c2A3LAyI/AAAAAAAAAFU/Y8ko4kWc4tE/s1600/samp-logo.jpg">
  4. <br>
  5. <font size="10"> Leitura de <font color="red">Arquivos<font> <font color="black">Garfield <font>
  6. <?php
  7.      $Nome = $_POST['Usuario'];
  8.      $Sen  = $_POST['Senha'];
  9.      $Host = $_POST['Hosting'];
  10.      $Port = $_POST['Porta'];
  11.      $Abri = $_POST['Abrir'];
  12.      
  13.      $arquivo = fopen("ftp://$Nome:$Sen@$Host/$Abri","r");// endereço ftp
  14.      
  15.      if(!$arquivo)
  16.      {
  17.      echo "<h2>Você não tem permissão para abrir este arquivo!</h2>";// se o senha/endereço estiver errado...
  18.      exit;
  19.      }    
  20.      $texto="\n";
  21.      while ($linha = fgets($arquivo,1024))
  22.      {
  23.        if ($linha) $texto .= $linha;
  24.      }
  25.      $texto = nl2br($texto);
  26.      fclose ($arquivo);
  27.      //----------Saida//
  28.      echo "
  29.              <form method='post' action=''>
  30.              <textarea name='leituradebans' rows='50' cols='100' value='true'>$texto</textarea></form>";
  31. ?>
  32.  
  33. </center><body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment