Connecting logs with website,and another thing - 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: Connecting logs with website,and another thing (
/showthread.php?tid=555133)
Connecting logs with website,and another thing -
SWAT4 - 06.01.2015
guys,
Ive made a Ban log , and connected it to my website, and it worked
TAke a look of what i used
https://sampforum.blast.hk/showthread.php?tid=101773
its like this :
Код:
<?php
$ftp_host = "serverhostname ex: could be a ip address"; //put the ip / hostname to your ftp here
$ftp_user = "ftp login"; //put your login here
$ftp_pass = "ftp password"; //put your password here
$banfile = "samp.ban";
$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, "ban.txt", $banfile, FTP_ASCII);
ftp_close($con);
$file = fopen("ban.txt", "r");
$bans = fread($file, filesize("ban.txt"));
fclose($file);
echo nl2br($bans);
?>
Butt,
i made a Chatlog too
ITs in : Logs/Chat.txt
And i don't know how to connect it
i made it with this :
https://sampforum.blast.hk/showthread.php?tid=264770
Someone help me?

thanks
/2 AND PLEASE
i want to know,
i saw in some websites ,
it shows the Admins list , and near EVERY Name there is a small ICon, if the admin is online it goes green,
if he's offline it goes Red, do u know how to do that?
Re: Connecting logs with website,and another thing -
SWAT4 - 12.01.2015
bump? please?