Problem ban log php
#1

Hello to mp.com. How can I integrate and log money on a table. That help me?
PHP код:
<?php
    $ftp_host 
""//put the ip / hostname to your ftp here
    
$ftp_user ""//put your login here
    
$ftp_pass ""//put your password here
    
$banfile "samp03/scriptfiles/LuxAdmin/Logs/BanLog.txt";
    
    
$con ftp_connect($ftp_host) or die("Couldnt connect to your ftp (check your settings!");
    
ftp_login($con$ftp_user$ftp_pass);
    
ftp_get($con"BanLog.txt"$banfileFTP_ASCII);
    
ftp_close($con);
    
    
$file fopen("BanLog.txt""r");
    
$bans fread($filefilesize("BanLog.txt"));
    
fclose($file);
    
    echo 
nl2br($bans);
?>
[17:28:46] | [RNG]MoonWalk | has banned niGGa.niGGa for 5 days | (Reason: hack-uri)
Reply


Messages In This Thread
Problem ban log php - by alex02 - 17.04.2014, 22:41
Re: Problem ban log php - by doreto - 18.04.2014, 08:43

Forum Jump:


Users browsing this thread: 1 Guest(s)