Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include '../core.php';
- GenerateHTML('Commands', '<div class="content">
- Commands are keywords that allow you to control STEAMp3 from Steam group chats and private messages.
- <p>Below you will find a list of all commands supported by STEAMp3.
- </div>
- <div class="subtitle">All Commands: N/A</div>
- <div class="content">
- ' . EchoCommands() . '
- </div>
- <div class="subtitle">Media Commands: N/A</div>
- <div class="content">
- Coming soon!
- </div>
- <div class="subtitle">Web Commands: N/A</div>
- <div class="content">
- Coming soon!
- </div>
- <div class="subtitle">Misc. Commands: N/A</div>
- <div class="content">
- Coming soon!
- </div>');
- function EchoCommands()
- {
- $result = '';
- $xml = new SimpleXMLElement(file_get_contents('commands.xml'));
- foreach ($xml->Command as $command)
- {
- if (!empty($command['Param'])) $result += '<p>' . $command['ID'] . ' (' . $command['Param'] . ')</p>';
- else $result += "<p>" . $command["ID"] . "</p>";
- }
- return $result;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement