01.07.2009, 14:27
Quote:
Originally Posted by andersffs
Well it's easy made with PHP.. I'll see what I can do
![]() edit: Here you got! Change the "samp.ban" to the exact source. Код:
<?php $file = "samp.ban"; $handle = fopen($file, 'r'); $data = fread($handle, filesize($file)); fclose($handle); echo nl2br($data); ?> |
just so that it retrieves the ban list every time you run the script
Код:
<?php $conn = ftp_connect("your servers ftp address here") or die("Could not connect"); ftp_login($conn,"user ftp login"," user password login"); ftp_get($conn,"samp.ban","directory/file where samp.ban is located on your ftp",FTP_ASCII); $file = "samp.ban"; $handle = fopen($file, 'r'); $data = fread($handle, filesize($file)); fclose($handle); ftp_close($conn); echo nl2br($data); ?>