Problem ban log php - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem ban log php (
/showthread.php?tid=507506)
Problem ban log php -
alex02 - 17.04.2014
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", $banfile, FTP_ASCII);
ftp_close($con);
$file = fopen("BanLog.txt", "r");
$bans = fread($file, filesize("BanLog.txt"));
fclose($file);
echo nl2br($bans);
?>
[17:28:46] | [RNG]MoonWalk | has banned niGGa.niGGa for 5 days | (Reason: hack-uri)
Re: Problem ban log php -
doreto - 18.04.2014
Quote:
Originally Posted by alex02
Hello to mp.com.
|
Who ?
This is not a php forum.