KXStudio Website https://kx.studio/
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.

Development.php 4.5KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. $PAGE_TITLE = "KXStudio : Development Timeline";
  3. $PAGE_TYPE = "DEVELOPMENT";
  4. $PAGE_SOURCE_1 = ARRAY("/Development");
  5. $PAGE_SOURCE_2 = ARRAY("Development Timeline");
  6. include_once("includes/header.php");
  7. require_once("/home/falktx/bin/simplepie/SimplePie.compiled.php");
  8. ?>
  9. <?php
  10. function print_sha8($id) {
  11. $id = strstr($id, '/');
  12. echo substr($id, 1, 9);
  13. }
  14. function print_feed_title($title) {
  15. $title = strstr($title, ':', true);
  16. echo strrchr($title, ' ');
  17. }
  18. function print_content($content) {
  19. $content2 = strstr($content, 'Signed-off-by', true);
  20. if (! $content2) {
  21. $content2 = $content;
  22. }
  23. echo trim($content2);
  24. }
  25. $feed = new SimplePie();
  26. $feed->set_cache_location("/home/falktx/bin/simplepie/cache");
  27. $feed->set_feed_url(ARRAY(
  28. 'https://github.com/DISTRHO/DISTRHO-Ports/commits/master.atom',
  29. 'https://github.com/DISTRHO/DISTRHO-Ports-Extra/commits/master.atom',
  30. 'https://github.com/DISTRHO/DPF/commits/develop.atom',
  31. 'https://github.com/DISTRHO/DPF-Max-Gen/commits/master.atom',
  32. 'https://github.com/DISTRHO/DPF-Plugins/commits/master.atom',
  33. 'https://github.com/DISTRHO/DPF-Widgets/commits/main.atom',
  34. 'https://github.com/DISTRHO/Cardinal/commits/main.atom',
  35. 'https://github.com/DISTRHO/glBars/commits/master.atom',
  36. 'https://github.com/DISTRHO/Ildaeil/commits/main.atom',
  37. 'https://github.com/DISTRHO/JuicePlugins/commits/master.atom',
  38. 'https://github.com/DISTRHO/Kars/commits/master.atom',
  39. 'https://github.com/DISTRHO/Mini-Series/commits/master.atom',
  40. 'https://github.com/DISTRHO/Nekobi/commits/master.atom',
  41. 'https://github.com/DISTRHO/MVerb/commits/master.atom',
  42. 'https://github.com/DISTRHO/ndc-Plugs/commits/master.atom',
  43. 'https://github.com/DISTRHO/OneKnob-Series/commits/main.atom',
  44. 'https://github.com/DISTRHO/PawPaw/commits/master.atom',
  45. 'https://github.com/DISTRHO/ProM/commits/master.atom',
  46. 'https://github.com/DISTRHO/STK-Plugins/commits/master.atom',
  47. 'https://github.com/DISTRHO/Website/commits/master.atom',
  48. 'https://github.com/falkTX/Cadence/commits/master.atom',
  49. 'https://github.com/falkTX/Cadence-Tools/commits/master.atom',
  50. 'https://github.com/falkTX/Carla/commits/main.atom',
  51. 'https://github.com/falkTX/Carla-Manual/commits/master.atom',
  52. 'https://github.com/falkTX/Carla-Plugins/commits/master.atom',
  53. 'https://github.com/falkTX/Carla-Releases/commits/main.atom',
  54. 'https://github.com/falkTX/Catia/commits/master.atom',
  55. 'https://github.com/falkTX/Chibi/commits/master.atom',
  56. 'https://github.com/falkTX/drmr/commits/lv2unstable.atom',
  57. 'https://github.com/falkTX/FluidPlug/commits/master.atom',
  58. 'https://github.com/falkTX/Hylia/commits/master.atom',
  59. 'https://github.com/falkTX/JackAss/commits/master.atom',
  60. 'https://github.com/falkTX/jack_interposer/commits/master.atom',
  61. 'https://github.com/falkTX/kuriborosu/commits/main.atom',
  62. 'https://github.com/falkTX/lv2vst/commits/master.atom',
  63. 'https://github.com/falkTX/protrekkr/commits/master.atom',
  64. 'https://github.com/jackaudio/jack2/commits/develop.atom',
  65. 'https://github.com/jackaudio/jack2-releases/commits/master.atom',
  66. 'https://github.com/KXStudio/Artwork/commits/master.atom',
  67. 'https://github.com/KXStudio/KXStudio/commits/master.atom',
  68. 'https://github.com/KXStudio/LV2-Extensions/commits/master.atom',
  69. 'https://github.com/KXStudio/Repository/commits/master.atom',
  70. 'https://github.com/KXStudio/Website/commits/master.atom',
  71. ));
  72. $feed->init(); // or die($feed->error());
  73. $feed->handle_content_type();
  74. $lastdate = null;
  75. foreach ($feed->get_items() as $item):
  76. $date = $item->get_gmdate('Y-m-d');
  77. if ($lastdate != $date)
  78. {
  79. if ($lastdate != null) { ?> <hr/> <?php }
  80. $lastdate = $date;
  81. ?>
  82. <h3 id="<?php echo $date ?>">&sect; <a href="#<?php echo $date ?>"><?php echo $item->get_gmdate('F j, Y') ?></a></h3>
  83. <?php
  84. }
  85. ?>
  86. <div class="changeset">
  87. <p>
  88. At
  89. <i><?php echo $item->get_gmdate('g:i a'); ?></i>
  90. by
  91. <b><a href="<?php echo $item->get_author()->get_link(); ?>" target="_blank">
  92. <?php echo $item->get_author()->get_name(); ?></a></b>
  93. <a href="<?php echo $item->get_permalink(); ?>">
  94. [<?php print_sha8($item->get_id()); ?>]</a>
  95. <!-- <?php echo $item->get_title(); ?></a> -->
  96. in
  97. <b><?php print_feed_title($item->get_feed()->get_title()); ?></b>
  98. <div class="box box-description"><?php print_content($item->get_content(true)); ?></div>
  99. </p>
  100. </div>
  101. <?php
  102. endforeach;
  103. include_once("includes/footer.php");
  104. ?>