index.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. $v = 3;
  3. session_start();
  4. $http_host = $_SERVER["HTTP_HOST"];
  5. include("../../../functions.php");
  6. $proto = getProtocol();
  7. $con = startdb();
  8. $server = "$proto$http_host";
  9. //Language
  10. $lang = selectLanguage();
  11. include("lang/lang_" . $lang . ".php");
  12. ?>
  13. <!DOCTYPE html>
  14. <html>
  15. <head>
  16. <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
  17. <meta charset='utf-8'/>
  18. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'>
  19. <title>Gasteizko Margolariak API</title>
  20. <link rel='shortcut icon' href='<?=$server?>/img/logo/favicon.ico'>
  21. <!-- CSS files -->
  22. <style>
  23. <?php
  24. include("../../../css/ui.css");
  25. include("../../../css/index.css");
  26. include("styles.css");
  27. ?>
  28. </style>
  29. <!-- CSS for mobile version -->
  30. <style media='(max-width : 990px)'>
  31. <?php
  32. include("../../../css/m/ui.css");
  33. include("../../../css/m/index.css");
  34. include("styles-m.css");
  35. ?>
  36. </style>
  37. <!-- Script files -->
  38. <script type='text/javascript'>
  39. <?php include("../../../script/ui.js"); ?>
  40. </script>
  41. <!-- Meta tags -->
  42. <link rel='canonical' href='<?=$server?>/API/help/V<?=$v?>'/>
  43. <link rel='author' href='<?=$server?>'/>
  44. <link rel='publisher' href='<?=$server?>'/>
  45. <meta name='description' content='Gasteizko Margolariak API v<?=$v?> documentation'/>
  46. <meta property='og:title' content='Gasteizko Margolariak API'/>
  47. <meta property='og:url' content='<?=$server?>/API/help/V<?=$v?>'/>
  48. <meta property='og:description' content='Gasteizko Margolariak API v<?=$v?> documentation'/>
  49. <meta property='og:image' content='<?=$server?>/img/logo/logo-api.png'/>
  50. <meta property='og:site_name' content='Gasteizko Margolariak'/>
  51. <meta property='og:type' content='website'/>
  52. <meta property='og:locale' content='en'/>
  53. <meta name='twitter:card' content='summary'/>
  54. <meta name='twitter:title' content='Gasteizko Margolariak API'/>
  55. <meta name='twitter:description' content='Gasteizko Margolariak API v<?=$v?> documentation'/>
  56. <meta name='twitter:image' content='<?=$server?>/img/logo/logo-api.png'/>
  57. <meta name='twitter:url' content='<?=$server?>/API/help/V<?=$v?>'/>
  58. <meta name='robots' content='index follow'/>
  59. </head>
  60. <body>
  61. <?php include("toolbar.php"); ?>
  62. <div id='content'>
  63. <div class='section'>
  64. <h3 class='section_title'>Public APIs</h3>
  65. <table id='main'>
  66. <tr>
  67. <td class='entry'>
  68. <h3>
  69. <img src='<?=$server?>/API/V<?=$v?>/help/img/sync.png'/>
  70. Data sync
  71. </h3>
  72. <p>Sync data from our site in your persistant-storage app so your users can use it offline.</p>
  73. <a href='<?=$server?>/API/v<?=$v?>/help/sync/'>Documentation and examples</a>
  74. </td>
  75. <td class='entry'>
  76. <h3>
  77. <img src='<?=$server?>/API/V<?=$v?>/help/img/comment.png'/>
  78. Comments
  79. </h3>
  80. <p>Post comment for the content in our site from your apps.</p>
  81. <a href='<?=$server?>/API/v<?=$v?>/help/comment/'>Documentation and examples</a>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td class='entry'>
  86. <h3>
  87. <img src='<?=$server?>/API/V<?=$v?>/help/img/notification.png'/>
  88. Notifications
  89. </h3>
  90. <p>Get notifications sent to your app.</p>
  91. <a href='<?=$server?>/API/v<?=$v?>/help/notifications/'>Documentation and examples</a>
  92. </td>
  93. <td class='entry'>
  94. <h3>
  95. <img src='<?=$server?>/API/V<?=$v?>/help/img/location.png'/>
  96. Location
  97. </h3>
  98. <p>Be able to follow Gasteizko Margolariak in real time during activities and festivals.</p>
  99. <a href='<?=$server?>/API/v<?=$v?>/help/location/'>Documentation and examples</a>
  100. </td>
  101. </tr>
  102. </table>
  103. </div> <!-- .section -->
  104. </div>
  105. </body>
  106. </body>