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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
<?php
/**
* index.php - Part of the dri-devel IRC logging facilities
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* Copyright (C) 2009-2012 Christoph Brill <egore911@egore911.de>
*/
// Value taken from /etc/localtime on annarchy
date_default_timezone_set('US/Pacific');
define('LOG_DIR', './');
$channels = array ('dri-devel', 'radeon', 'nouveau', 'wayland', 'd3d9', 'freedreno', 'lima', 'etnaviv');
if (isset($_GET['channel']))
$channel = $_GET['channel'];
else if (isset($_COOKIE['last_channel']))
$channel = $_COOKIE['last_channel'];
else
$channel = 'dri-devel';
setcookie('last_channel', $channel, time()+2592000);
if (isset($_GET['date'])) {
$date = valid_date($_GET['date']);
} else if (isset($_GET['page'])) {
$date = get_date($_GET['page']);
}
function valid_date($get_date) {
if ($get_date == 'today') {
return date('Y-m-d');
}
if ($get_date == 'yesterday') {
return date('Y-m-d', time() - (24*60*60));
}
if (preg_match('/[0-9]{4}-[0-9]{2}-[0-9]{2}/', $get_date)) {
return $get_date;
}
return null;
}
function get_date($filename) {
return substr($filename, 10, 10);
}
function is_from_selected_channel($line, $channel) {
return strstr($line, '#'.$channel.':');
}
function filter_join($line) {
global $show_joins, $show_irssi;
if (!$show_joins && strstr($line, 'has joined')) return true;
if (!$show_irssi && strstr($line, '-!-')) return true;
return false;
}
function get_user($line) {
$result = array();
if (preg_match('=(<.|\* )[a-zA-Z0-9_`\]\[\^-]+(>| )=', $line, $result)) {
return $result[0];
}
}
function get_time($line) {
$result = array();
if (preg_match('=^([0-9:]+)=', $line, $result)) {
return $result[0];
}
return "";
}
function get_image($user) {
global $gravatars, $freedesktop, $custom;
if (isset($gravatars[$user])) {
return 'http://www.gravatar.com/avatar/'.$gravatars[$user];
}
if (isset($freedesktop[$user])) {
return 'http://planet.freedesktop.org/faces/'.$freedesktop[$user];
}
if (isset($custom[$user])) {
return $custom[$user];
}
return null;
}
// This is the MD5-sums of the emails for some known users
$gravatars = array();
$gravatars['airlied'] = '48abc804ac80b2fb25ce46dbf1506748';
$gravatars['jobermayr'] = 'bdb8b9712e2fe7eeb8efa895867636c2';
$gravatars['fritsch'] = '95f4cc6433f2f59214ab9c7affc6e453';
$freedesktop = array();
$freedesktop['ajax'] = 'ajax.png';
$freedesktop['alanc'] = 'alanc.png';
$freedesktop['anholt'] = 'anholt.png';
$freedesktop['cworth'] = 'cworth.png';
$freedesktop['dberkholz'] = 'dberkholz.png';
$freedesktop['idr'] = 'idr.png';
$freedesktop['krh'] = 'krh.png';
$freedesktop['libv'] = 'libv.png';
$freedesktop['omcfadde'] = 'z3ro.png';
$custom = array();
$custom['darktama'] = 'https://lh4.googleusercontent.com/-8Lx3KozwWDk/AAAAAAAAAAI/AAAAAAAAACU/vbakuLWZFmE/s90-c/photo.jpg';
$custom['dvdhrm'] = 'https://lh6.googleusercontent.com/-ogpdJ0Pf984/AAAAAAAAAAI/AAAAAAAAAHw/XcIa0ybcm6M/s90-c/photo.jpg';
$custom['ickle'] = 'https://lh4.googleusercontent.com/-MzNPVnrPOJY/AAAAAAAAAAI/AAAAAAAAAyo/cjxwRnKVXA0/s90-c/photo.jpg';
$custom['imirkin'] = 'https://avatars3.githubusercontent.com/u/817874?v=2&s=460';
$custom['jbarnes'] = 'https://lh3.googleusercontent.com/-l2-D6D43gVs/AAAAAAAAAAI/AAAAAAAAAUI/Ak7Yhy-zPMA/s90-c/photo.jpg';
$custom['marcheu'] = 'https://lh6.googleusercontent.com/-b3WZZvcLyz8/AAAAAAAAAAI/AAAAAAAAB6s/HdkxCZXg_GQ/s90-c/photo.jpg';
$custom['mjg59'] = 'http://l-userpic.livejournal.com/4975639/1051328';
$custom['Kayden'] = 'http://media.linkedin.com/mpr/pub/image-JLwJ9fTJBTv3Ur9xL18X4Ph00E8D3v8e6S8E_fOH0R2stCRVJLwEu36J0rLw30i-AL_r/kenneth-graunke.jpg';
$custom['keithp'] = 'https://lh6.googleusercontent.com/-s3zvCtonD-E/AAAAAAAAAAI/AAAAAAAAAE4/_MWh9P1Ku3A/s90-c/photo.jpg';
$custom['Prf_Jakob'] = 'https://lh5.googleusercontent.com/-978JYHxUyF8/AAAAAAAAAAI/AAAAAAAAAa0/rl_POiPf6fA/s90-c/photo.jpg';
$custom['robclark'] = 'https://lh6.googleusercontent.com/-LbzNNfquAK8/AAAAAAAAAAI/AAAAAAAAAEQ/YmZvmdvb8XU/s90-c/photo.jpg';
$custom['skeggsb'] = 'https://lh4.googleusercontent.com/-8Lx3KozwWDk/AAAAAAAAAAI/AAAAAAAAACU/vbakuLWZFmE/s90-c/photo.jpg';
$custom['SardemFF7'] = 'https://avatars3.githubusercontent.com/u/222943?v=3&s=460';
$custom['stereotype441'] = 'https://lh5.googleusercontent.com/-JmmSeCPUy2E/AAAAAAAAAAI/AAAAAAAAAUs/wmdZsitKwLs/s90-c/photo.jpg';
$custom['RSpliet'] = 'http://userserve-ak.last.fm/serve/126/35506029.png';
$realname = array();
$realname['_ds_'] = 'Darren Salt';
$realname['adrien'] = 'Adrien Nader';
$realname['agd5f'] = 'Alex Deucher';
$realname['airlied'] = 'Dave Airlie';
$realname['ajax'] = 'Adam Jackson';
$realname['alanc'] = 'Alan Coopersmith';
$realname['anholt'] = 'Eric Anholt';
$realname['arekm'] = 'Arkadiusz Miskiewicz';
$realname['bbrezillon'] = 'Boris Brezillon';
$realname['bnieuwenhuizen'] = 'Bas Nieuwenhuizen';
$realname['bryce'] = 'Bryce Harrington';
$realname['bryce_'] = 'Bryce Harrington';
$realname['calim'] = 'Christoph Bumiller';
$realname['careym'] = 'Mark Carey';
$realname['chadversary'] = 'Chad Versace';
$realname['cheako'] = 'Mike Mestnik';
$realname['ckoenig'] = 'Christian Koenig';
$realname['CosmicPenguin'] = 'Jordan Crouse';
$realname['curro'] = 'Francisco Jerez';
$realname['cwabbott'] = 'Connor Abbott';
$realname['cworth'] = 'Carl Worth';
$realname['daniels'] = 'Daniel Stone';
$realname['danvet'] = 'Daniel Vetter';
$realname['danvet_'] = 'Daniel Vetter';
$realname['darktama'] = 'Ben Skeggs';
$realname['dberkholz'] = 'Donnie Berkholz';
$realname['dboyan'] = 'Boyan Ding';
$realname['dvdhrm'] = 'David Herrmann';
$realname['egbert'] = 'Egbert Eich';
$realname['egore'] = 'Christoph Brill';
$realname['glisse'] = 'Jerome Glisse';
$realname['giucam'] = 'Guilio Camuffo';
$realname['fredrikh'] = 'Fredrik Höglund';
$realname['fritsch'] = 'Peter Frühberger';
$realname['funfunctor'] = 'Edward O\'Callaghan';
$realname['haagch'] = 'Christoph Haag';
$realname['hakzsam'] = 'Samuel Pitoiset';
$realname['HdkR'] = 'Ryan Houdek';
$realname['ickle'] = 'Chris Wilson';
$realname['idr'] = 'Ian Romanick';
$realname['imirkin'] = 'Ilia Mirkin';
$realname['imirkin_'] = 'Ilia Mirkin';
$realname['jbarnes'] = 'Jesse Barnes';
$realname['jcristau'] = 'Julien Cristau';
$realname['jekstrand'] = 'Jason Ekstrand';
$realname['jobermayr'] = 'Johannes Obermayr';
$realname['joi'] = 'Marcin Ślusarz';
$realname['juergbi'] = 'Jürgen Billeter';
$realname['karolherbst'] = 'Karol Herbst';
$realname['Kayden'] = 'Kenneth Graunke';
$realname['keithp'] = 'Keith Packard';
$realname['krh'] = 'Kristian Høgsberg';
$realname['libv'] = 'Luc Verhaegen';
$realname['lordheavy'] = 'Laurent Carlier';
$realname['lostgoat'] = 'Andres Rodriguez';
$realname['lynxeye'] = 'Lucas Stach';
$realname['mannerov'] = 'Axel Davy';
$realname['mareko'] = 'Marek Olšák';
$realname['marcheu'] = 'Stephane Marchesin';
$realname['mattst88'] = 'Matt Turner';
$realname['mjg59'] = 'Matthew Garrett';
$realname['mlankhorst'] = 'Maarten Lankhorst';
$realname['MostAwesomeDude'] = 'Corbin Simpson';
$realname['MrCooper'] = 'Michel Dänzer';
$realname['mupuf'] = 'Martin Peres';
$realname['nha'] = 'Nicolai Hähnle';
$realname['olesalscheider'] = 'Niels Ole Salscheider';
$realname['okias'] = 'David Heidelberger';
$realname['okias_'] = 'David Heidelberger';
$realname['omcfadde'] = 'Oliver McFadden';
$realname['otaylor'] = 'Owen Taylor';
$realname['ParkerR'] = 'Parker Reed';
$realname['pinchartl'] = 'Laurent Pinchart';
$realname['pq'] = 'Pekka Paalanen';
$realname['Prf_Jakob'] = 'Jakob Bornecrantz';
$realname['robclark'] = 'Rob Clark';
$realname['RSpliet'] = 'Roy Spliet';
$realname['SardemFF7'] = 'Quentin Glidic';
$realname['seanpaul'] = 'Sean Paul';
$realname['siro'] = 'Patrick Rudolph';
$realname['siro__'] = 'Patrick Rudolph';
$realname['skeggsb'] = 'Ben Skeggs';
$realname['soreau'] = 'Scott Moreau';
$realname['spstarr'] = 'Shawn Starr';
$realname['spreeuw'] = 'Hanno Spreeuw';
$realname['stereotype441'] = 'Paul Berry';
$realname['stringfellow'] = 'Henry Verbeet';
$realname['suokko'] = 'Pauli Nieminen';
$realname['tarceri'] = 'Timothy Arceri';
$realname['tizbac'] = 'Tiziano Bacocco';
$realname['tstellar'] = 'Tom Stellard';
$realname['TTimo'] = 'Timothee Besset';
$realname['vadimg'] = 'Vadim Girlin';
$realname['vlj'] = 'Vincent Lejeune';
$realname['vsyrjala'] = 'Ville Syrjälä';
$realname['w00t'] = 'Robin Burchell';
$realname['whot'] = 'Peter Hutterer';
$realname['Wizzup'] = 'Merlijn Wajer';
$realname['xexaxo'] = 'Emil Velikov';
$realname['xexaxo1'] = 'Emil Velikov';
$realname['zgreg'] = 'Grigori Goronzy';
$realname['zgreg_'] = 'Grigori Goronzy';
$ignore = array();
array_push($ignore, 'joss193');
array_push($ignore, 'fdo-vcs');
|