Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $ftp_host = ""; //put the ip / hostname to your ftp here
  5. $ftp_user = ""; //put your login here
  6. $ftp_pass = ""; //put your password here
  7. $banfile = "samp.ban";
  8.  
  9. $con = ftp_connect($ftp_host) or die("Couldnt connect to your ftp (check your settings!");
  10. ftp_login($con, $ftp_user, $ftp_pass);
  11. ftp_get($con, "ban.txt", $banfile, FTP_ASCII);
  12. ftp_close($con);
  13.  
  14. $file = fopen("ban.txt", "r");
  15. @ $bans = fread($file, filesize("ban.txt"));
  16. fclose($file);
  17.  
  18. echo nl2br($bans);
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement