Incomplete PHP library to access static data from eve-online
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

groups.php 871B

1234567891011121314151617181920212223242526272829303132
  1. <?PHP
  2. require('inc/common.php');
  3. require('inc/database.php');
  4. $sql = 'SELECT groupID, groupName, graphicID, published FROM invGroups WHERE categoryID = ' . ((int) $_GET['category']);
  5. $res = mysql_query($sql);
  6. header('Content-type: text/xml');
  7. echo "<?xml version='1.0' encoding='UTF-8'?>\n";
  8. echo "<eveapi version='2' etversion='1'>\n";
  9. echo " <currentTime>", date('Y-m-d H:i:s'), "</currentTime>\n";
  10. echo " <result>\n";
  11. echo ' <rowset name="groups" key="groupID" columns="groupID,groupName,graphicID,published">', "\n";
  12. while ($row = mysql_fetch_assoc($res)) {
  13. echo ' <row';
  14. foreach ($row as $key => $value) {
  15. echo ' ', $key, '="', htmlspecialchars($value), '"';
  16. }
  17. echo '/>', "\n";
  18. }
  19. echo ' </rowset>', "\n";
  20. echo " </result>\n";
  21. echo " <cachedUntil>", date('Y-m-d H:i:s', CACHEDUNTIL), "</cachedUntil>\n";
  22. echo "</eveapi>\n";
  23. ?>