XF 2.1 Rules Agreement with PHP and RCON

VergilPrime

Member
I am running a Minecraft community on my website Angel's Reach and I have a page with server rules here. I want to put a form submit button at the bottom that sends a signal to the server to add the player to a list and let them access the rest of the server. Here's what I have planned:

Player reaches a point in the tutorial where they are told to click a link to visit the website and read the rules. This URL includes a generated user-specific key.

When the player visits the webpage, php on the page generates a form with a hidden input containing the key from the query string. The submit button reads "I Agree" and triggers script Agree.php.

Agree.php uses PHP-Minecraft-RCON to send a server command, /agree <key>

This command saves the player's UUID in a list signifiying that they have agreed to the rules.

Can I write php using <?php ?> tags in edit page > template HTML? Does anyone have any input / better ideas?
 
Top Bottom