anyone know how to put your bans.cfg on a webpage like
Gyazo - 2544cc38518fc29c11797c92c61ea77f.png
thanks.
Banlist on webpage
Discussion in 'Rust Discussion' started by RedZephyr, Dec 19, 2016.
-
You can either automatically copy the bans.cfg to the web-directory or use this php script:
Code:<?php $fileDir = '/home/rust/server/my_server1/cfg/bans.cfg'; if (file_exists($fileDir)) { $contents = file_get_contents($fileDir); echo nl2br($contents); }?>
Change the $fileDir to the directory of your bans.cfg file. Open your webbrowser and direct to the php file.
There you can see your ban list. -
Thanks.