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