Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user = ""; //FTP Username
- $pass = ""; //FTP Password
- $ip = ""; //FTP Server IP
- $gamefolder = ""; //Path to game folder
- $refreshtime = 15; //Refresh the page every X seconds
- //Workings, do not edit.
- $fileloc = $gamefolder . "/data/EMB/chatlog.txt";
- //$file = fopen("ftp://$user:$pass@$ip/$fileloc", "r");
- $file = fopen("chatlog.txt", "r");
- $text = fread($file,filesize("chatlog.txt"));
- fclose($file);
- echo($text);
- $thispage = $_SERVER['PHP_SELF'];
- header("Refresh: $refreshtime; url=$thispage");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement