This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dmrshark.php
346 lines (327 loc) · 19 KB
/
dmrshark.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
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<?php
/**
* Plugin Name: dmrshark wordpress plugin
* Plugin URI: https://github.com/nonoo/dmrshark-wordpress-plugin
* Description: Displays a searchable, live amateur radio Hytera DMR network log table. Data is from https://github.com/nonoo/dmrshark
* Version: 1.0
* Author: Nonoo
* Author URI: http://dp.nonoo.hu/
* License: MIT
*/
include_once(dirname(__FILE__) . '/dmrshark-config.inc.php');
function dmrshark_log_generate() {
$out = '<img id="dmrshark-log-loader" src="' . plugins_url('loader.gif', __FILE__) . '" />' . "\n";
$out .= '<form id="dmrshark-log-search">' . "\n";
$out .= ' <input type="text" id="dmrshark-log-search-string" />' . "\n";
$out .= ' <input type="submit" id="dmrshark-log-search-button" value="' . __('Search', 'dmrshark') . '" />' . "\n";
$out .= '</form>' . "\n";
$out .= '<div id="dmrshark-log-container"></div>' . "\n";
$out .= '<script type="text/javascript">' . "\n";
$out .= ' var dmrshark_log_searchfor = "";' . "\n";
$out .= ' $(document).ready(function () {' . "\n";
$out .= ' $("#dmrshark-log-container").jtable({' . "\n";
$out .= ' paging: true,' . "\n";
$out .= ' sorting: true,' . "\n";
$out .= ' defaultSorting: "startts desc",' . "\n";
$out .= ' loadingAnimationDelay: 1000,' . "\n";
$out .= ' actions: {' . "\n";
$out .= ' listAction: "' . plugins_url('dmrshark-log-getdata.php', __FILE__) . '",' . "\n";
$out .= ' },' . "\n";
$out .= ' fields: {' . "\n";
$out .= ' startts: { title: "' . __('Call start', 'dmrshark') . '", width: "8%" },' . "\n";
$out .= ' endts: { title: "' . __('Call end', 'dmrshark') . '", width: "8%", display: function (data) {' . "\n";
$out .= ' if (data.record.endts == "00:00:00")' . "\n";
$out .= ' return "' . __('In call', 'dmrshark') . '";' . "\n";
$out .= ' else' . "\n";
$out .= ' return data.record.endts;' . "\n";
$out .= ' } },' . "\n";
$out .= ' src: { title: "' . __('From', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' txt = data.record.srcid;' . "\n";
$out .= ' if (data.record.srcname != null) txt += " " + data.record.srcname;' . "\n";
$out .= ' return "<span title=\"" + txt + "\">" + data.record.src + "</span>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' dst: { title: "' . __('To', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' txt = data.record.dstid;' . "\n";
$out .= ' if (data.record.dstname != null) txt += " " + data.record.dstname;' . "\n";
$out .= ' calltype = (data.record.calltype == 0 ? "' . __('Priv.', 'dmrshark') . '" : "' . __('Group', 'dmrshark') . '");' . "\n";
$out .= ' return "<span title=\"" + txt + "\">" + data.record.dst + " (" + calltype + ")</span>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' repeater: { title: "' . __('Repeater/TS', 'dmrshark') . '", width: "5%", display: function (data) {' . "\n";
$out .= ' if (data.record.repeater == "0")' . "\n";
$out .= ' return "' . __('N/A', 'dmrshark') . '";' . "\n";
$out .= ' return "<span title=\"" + data.record.repeaterid + "\">" + data.record.repeater + " / TS" + data.record.timeslot + "</span>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' rssi: { title: "' . __('RSSI/avg.', 'dmrshark') . '", listClass: "rssi", display: function (data) {' . "\n";
$out .= ' if (data.record.currrssi < -130 || data.record.avgrssi < -130)' . "\n";
$out .= ' return "Leszakadt";' . "\n";
$out .= ' var rssi_str;' . "\n";
$out .= ' if (data.record.currrssi == "0")' . "\n";
$out .= ' rssi_str = "?";' . "\n";
$out .= ' else' . "\n";
$out .= ' rssi_str = data.record.currrssi;' . "\n";
$out .= ' var avgrssi_str;' . "\n";
$out .= ' if (data.record.avgrssi == "0")' . "\n";
$out .= ' avgrssi_str = "?";' . "\n";
$out .= ' else' . "\n";
$out .= ' avgrssi_str = data.record.avgrssi;' . "\n";
$out .= ' return "<span class=\"currrssi\">" + rssi_str + "</span><span class=\"separator\">/</span><span class=\"avgrssi\">" + avgrssi_str + "</span>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' vol: { title: "' . __('Vol./avg.', 'dmrshark') . '", listClass: "vol", display: function (data) {' . "\n";
$out .= ' var vol_str;' . "\n";
$out .= ' if (data.record.currrmsvol == "127")' . "\n";
$out .= ' vol_str = "?";' . "\n";
$out .= ' else' . "\n";
$out .= ' vol_str = data.record.currrmsvol;' . "\n";
$out .= ' var avg_vol_str;' . "\n";
$out .= ' if (data.record.avgrmsvol == "127")' . "\n";
$out .= ' avg_vol_str = "?";' . "\n";
$out .= ' else' . "\n";
$out .= ' avg_vol_str = data.record.avgrmsvol;' . "\n";
$out .= ' var avg_vol_str;' . "\n";
$out .= ' if (data.record.avgrmsvol == "127")' . "\n";
$out .= ' avg_vol_str = "?";' . "\n";
$out .= ' else' . "\n";
$out .= ' avg_vol_str = data.record.avgrmsvol;' . "\n";
$out .= ' var avgvol_volclass = "green";' . "\n";
$out .= ' if (data.record.avgrmsvol > -10)' . "\n";
$out .= ' avgvol_volclass = "yellow";' . "\n";
$out .= ' if (data.record.avgrmsvol > -9)' . "\n";
$out .= ' avgvol_volclass = "red";' . "\n";
$out .= ' if (data.record.avgrmsvol < -12)' . "\n";
$out .= ' avgvol_volclass = "yellow";' . "\n";
$out .= ' if (data.record.avgrmsvol < -14)' . "\n";
$out .= ' avgvol_volclass = "red";' . "\n";
$out .= ' if (data.record.avgrmsvol == 127)' . "\n";
$out .= ' avgvol_volclass = "unkown";' . "\n";
$out .= ' return "<span class=\"currvol\">" + vol_str + "</span><span class=\"separator\">/</span><span class=\"avgvol\">" +' . "\n";
$out .= ' avg_vol_str + "</span><div class=\"avgvol-display avgvol-" + avgvol_volclass + "\"></div>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' info: { title: "' . __('Info', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' switch (data.record.datatype) {' . "\n";
$out .= ' case "unknown": return "";' . "\n";
$out .= ' case "gps position":' . "\n";
$out .= ' aprscallsign = data.record.src + "-" + data.record.dstid.slice(-1);' . "\n";
$out .= ' return "<cite style=\"cursor: help;\" title=\"" + data.record.datadecoded + "\"><a href=\"http://aprs.fi/#!call=" + aprscallsign + "\" target=\"_blank\">' . __('gps position', 'dmrshark') . '</a></cite>";' . "\n";
$out .= ' default: break;' . "\n";
$out .= ' }' . "\n";
$out .= ' return "<cite style=\"cursor: help;\" title=\"" + data.record.datadecoded + "\">" + data.record.datatype + "</cite>";' . "\n";
$out .= ' } }' . "\n";
$out .= ' }' . "\n";
$out .= ' });' . "\n";
$out .= ' function dmrshark_log_update_showloader() {' . "\n";
$out .= ' $("#dmrshark-log-loader").fadeIn();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_log_update_hideloader() {' . "\n";
$out .= ' $("#dmrshark-log-loader").fadeOut();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_log_update() {' . "\n";
$out .= ' $("#dmrshark-log-container").jtable("load", {' . "\n";
$out .= ' searchfor: dmrshark_log_searchfor' . "\n";
$out .= ' }, dmrshark_log_update_hideloader);' . "\n";
$out .= ' };' . "\n";
$out .= ' $("#dmrshark-log-search-button").click(function (e) {' . "\n";
$out .= ' e.preventDefault();' . "\n";
$out .= ' dmrshark_log_update_showloader();' . "\n";
$out .= ' dmrshark_log_searchfor = $("#dmrshark-log-search-string").val();' . "\n";
$out .= ' dmrshark_log_update();' . "\n";
$out .= ' });' . "\n";
$out .= ' setInterval(function() { dmrshark_log_update_showloader(); $("#dmrshark-log-container").jtable("reload", dmrshark_log_update_hideloader); }, 500);' . "\n";
$out .= ' dmrshark_log_update();' . "\n";
$out .= ' });' . "\n";
$out .= '</script>' . "\n";
return $out;
}
function dmrshark_repeaters_generate() {
$out = '<img id="dmrshark-repeaters-loader" src="' . plugins_url('loader.gif', __FILE__) . '" />' . "\n";
$out .= '<form id="dmrshark-repeaters-search">' . "\n";
$out .= ' <input type="text" id="dmrshark-repeaters-search-string" />' . "\n";
$out .= ' <input type="submit" id="dmrshark-repeaters-search-button" value="' . __('Search', 'dmrshark') . '" />' . "\n";
$out .= '</form>' . "\n";
$out .= '<div id="dmrshark-repeaters-container"></div>' . "\n";
$out .= '<script type="text/javascript">' . "\n";
$out .= ' var dmrshark_repeaters_searchfor = "";' . "\n";
$out .= ' $(document).ready(function () {' . "\n";
$out .= ' $("#dmrshark-repeaters-container").jtable({' . "\n";
$out .= ' paging: true,' . "\n";
$out .= ' sorting: true,' . "\n";
$out .= ' defaultSorting: "callsign desc",' . "\n";
$out .= ' loadingAnimationDelay: 1000,' . "\n";
$out .= ' actions: {' . "\n";
$out .= ' listAction: "' . plugins_url('dmrshark-repeaters-getdata.php', __FILE__) . '",' . "\n";
$out .= ' },' . "\n";
$out .= ' fields: {' . "\n";
$out .= ' callsign: { title: "' . __('Callsign', 'dmrshark') . '", listClass: "callsign", width: "18%", display: function(data) {' . "\n";
$out .= ' return data.record.callsign + " <div class=\"tx-display" + (data.record.txfwdpower > 0 ? " transmitting" : "") + "\"></div>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' id: { title: "' . __('ID', 'dmrshark') . '" },' . "\n";
$out .= ' type: { title: "' . __('Type', 'dmrshark') . '" },' . "\n";
$out .= ' fwversion: { title: "' . __('FW ver.', 'dmrshark') . '" },' . "\n";
$out .= ' dlfreq: { title: "' . __('DL freq.', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' return (data.record.dlfreq/1000000).toFixed(3);' . "\n";
$out .= ' } },' . "\n";
$out .= ' ulfreq: { title: "' . __('UL freq.', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' return (data.record.ulfreq/1000000).toFixed(3);' . "\n";
$out .= ' } },' . "\n";
$out .= ' psuvoltage: { title: "Tápfesz.", display: function(data) {' . "\n";
$out .= ' return (data.record.psuvoltage != 0 ? Number(data.record.psuvoltage).toFixed(1) + "V" : "N/A");' . "\n";
$out .= ' } },' . "\n";
$out .= ' patemperature: { title: "Hőfok", display: function(data) {' . "\n";
$out .= ' return Number(data.record.patemperature).toFixed(1) + "°C";' . "\n";
$out .= ' } },' . "\n";
$out .= ' vswr: { title: "VSWR", display: function(data) {' . "\n";
$out .= ' return Number(data.record.vswr).toFixed(1);' . "\n";
$out .= ' } },' . "\n";
$out .= ' txfwdpower: { title: "Tx fwd pwr", display: function(data) {' . "\n";
$out .= ' return Number(data.record.txfwdpower).toFixed(1) + "W";' . "\n";
$out .= ' } },' . "\n";
$out .= ' txrefpower: { title: "Tx ref pwr", display: function(data) {' . "\n";
$out .= ' return Number(data.record.txrefpower).toFixed(1) + "W";' . "\n";
$out .= ' } },' . "\n";
$out .= ' lastactive: { title: "' . __('Last act.', 'dmrshark') . '" }' . "\n";
$out .= ' }' . "\n";
$out .= ' });' . "\n";
$out .= ' function dmrshark_repeaters_update_showloader() {' . "\n";
$out .= ' $("#dmrshark-repeaters-loader").fadeIn();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_repeaters_update_hideloader() {' . "\n";
$out .= ' $("#dmrshark-repeaters-loader").fadeOut();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_repeaters_update() {' . "\n";
$out .= ' $("#dmrshark-repeaters-container").jtable("load", {' . "\n";
$out .= ' searchfor: dmrshark_repeaters_searchfor' . "\n";
$out .= ' }, dmrshark_repeaters_update_hideloader);' . "\n";
$out .= ' };' . "\n";
$out .= ' $("#dmrshark-repeaters-search-button").click(function (e) {' . "\n";
$out .= ' e.preventDefault();' . "\n";
$out .= ' dmrshark_repeaters_update_showloader();' . "\n";
$out .= ' dmrshark_repeaters_searchfor = $("#dmrshark-repeaters-search-string").val();' . "\n";
$out .= ' dmrshark_repeaters_update();' . "\n";
$out .= ' });' . "\n";
$out .= ' setInterval(function() { dmrshark_repeaters_update_showloader(); $("#dmrshark-repeaters-container").jtable("reload", dmrshark_repeaters_update_hideloader); }, 500);' . "\n";
$out .= ' dmrshark_repeaters_update();' . "\n";
$out .= ' });' . "\n";
$out .= '</script>' . "\n";
return $out;
}
function dmrshark_stats_generate() {
$out = '<img id="dmrshark-stats-loader" src="' . plugins_url('loader.gif', __FILE__) . '" />' . "\n";
$out .= '<div id="dmrshark-stats-search-container">' . "\n";
$out .= ' <input type="text" id="dmrshark-stats-startts" placeholder="' . __('From time', 'dmrshark') . '"/>' . "\n";
$out .= ' <input type="text" id="dmrshark-stats-endts" placeholder="' . __('To time', 'dmrshark') . '"/>' . "\n";
$out .= ' <form id="dmrshark-stats-search">' . "\n";
$out .= ' <input type="text" id="dmrshark-stats-search-string" />' . "\n";
$out .= ' <input type="submit" id="dmrshark-stats-search-button" value="' . __('Search', 'dmrshark') . '" />' . "\n";
$out .= ' </form>' . "\n";
$out .= '</div>' . "\n";
$out .= '<div id="dmrshark-stats-search-helper-container">' . "\n";
$out .= ' <input type="button" id="dmrshark-stats-searchhelper-all" value="' . __('All', 'dmrshark') . '" onclick="javascript:dmrshark_stats_resetts();" />' . "\n";
$out .= ' <input type="button" id="dmrshark-stats-searchhelper-today" value="' . __('Today', 'dmrshark') . '" onclick="javascript:dmrshark_stats_helper_today();" />' . "\n";
$out .= ' <input type="button" id="dmrshark-stats-searchhelper-yesterday" value="' . __('Yesterday', 'dmrshark') . '" onclick="javascript:dmrshark_stats_helper_yesterday();" />' . "\n";
$out .= '</div>' . "\n";
$out .= '<div id="dmrshark-stats-container"></div>' . "\n";
$out .= '<script type="text/javascript">' . "\n";
$out .= ' var dmrshark_stats_searchfor = "";' . "\n";
$out .= ' function dmrshark_stats_helper_today() {' . "\n";
$out .= ' $("#dmrshark-stats-startts").datepicker("setDate", new Date());' . "\n";
$out .= ' $("#dmrshark-stats-endts").datepicker("setDate", new Date(new Date().getTime() + 24 * 60 * 60 * 1000));' . "\n";
$out .= ' dmrshark_stats_update();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_stats_helper_yesterday() {' . "\n";
$out .= ' $("#dmrshark-stats-startts").datepicker("setDate", new Date(new Date().getTime() - 24 * 60 * 60 * 1000));' . "\n";
$out .= ' $("#dmrshark-stats-endts").datepicker("setDate", new Date());' . "\n";
$out .= ' dmrshark_stats_update();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_stats_resetts() {' . "\n";
$out .= ' $("#dmrshark-stats-startts").datepicker("setDate", null);' . "\n";
$out .= ' $("#dmrshark-stats-endts").datepicker("setDate", null);' . "\n";
$out .= ' dmrshark_stats_update();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_stats_update() {' . "\n";
$out .= ' $("#dmrshark-stats-container").jtable("load", {' . "\n";
$out .= ' searchfor: dmrshark_stats_searchfor,' . "\n";
$out .= ' startts: $("#dmrshark-stats-startts").datepicker("getDate") / 1000,' . "\n";
$out .= ' endts: $("#dmrshark-stats-endts").datepicker("getDate") / 1000,' . "\n";
$out .= ' }, dmrshark_stats_update_hideloader);' . "\n";
$out .= ' };' . "\n";
$out .= ' function dmrshark_stats_update_showloader() {' . "\n";
$out .= ' $("#dmrshark-stats-loader").fadeIn();' . "\n";
$out .= ' }' . "\n";
$out .= ' function dmrshark_stats_update_hideloader() {' . "\n";
$out .= ' $("#dmrshark-stats-loader").fadeOut();' . "\n";
$out .= ' }' . "\n";
$out .= ' $("#dmrshark-stats-search-button").click(function (e) {' . "\n";
$out .= ' e.preventDefault();' . "\n";
$out .= ' dmrshark_stats_update_showloader();' . "\n";
$out .= ' dmrshark_stats_searchfor = $("#dmrshark-stats-search-string").val();' . "\n";
$out .= ' dmrshark_stats_update();' . "\n";
$out .= ' });' . "\n";
$out .= ' $(document).ready(function () {' . "\n";
$out .= ' $("#dmrshark-stats-startts").datepicker({ firstDay: 1, dateFormat: "yy/mm/dd", defaultDate: "now", onClose: function() { dmrshark_stats_update(); } });' . "\n";
$out .= ' $("#dmrshark-stats-endts").datepicker({ firstDay: 1, dateFormat: "yy/mm/dd", defaultDate: "+1d", onClose: function() { dmrshark_stats_update(); } });' . "\n";
$out .= ' $("#dmrshark-stats-container").jtable({' . "\n";
$out .= ' paging: true,' . "\n";
$out .= ' sorting: true,' . "\n";
$out .= ' defaultSorting: "talktime desc",' . "\n";
$out .= ' loadingAnimationDelay: 1000,' . "\n";
$out .= ' actions: {' . "\n";
$out .= ' listAction: "' . plugins_url('dmrshark-stats-getdata.php', __FILE__) . '"' . "\n";
$out .= ' },' . "\n";
$out .= ' fields: {' . "\n";
$out .= ' nr: { title: "#", width: "1%", display: function (data) {' . "\n";
$out .= ' return data.record.nr;' . "\n";
$out .= ' } },' . "\n";
$out .= ' callsign: { title: "' . __('Callsign', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' if (data.record.callsign == null)' . "\n";
$out .= ' return data.record.id;' . "\n";
$out .= ' else' . "\n";
$out .= ' return "<span title=\"" + data.record.id + "\">" + data.record.callsign + " " + data.record.name + "</span>";' . "\n";
$out .= ' } },' . "\n";
$out .= ' talktime: { title: "' . __('Talktime (min.)', 'dmrshark') . '", display: function (data) {' . "\n";
$out .= ' return (data.record.talktime/60).toFixed(1);' . "\n";
$out .= ' } }' . "\n";
$out .= ' }' . "\n";
$out .= ' });' . "\n";
$out .= ' setInterval(function() { dmrshark_stats_update_showloader(); $("#dmrshark-stats-container").jtable("reload", dmrshark_stats_update_hideloader); }, 60000);' . "\n";
$out .= ' dmrshark_stats_helper_today();' . "\n";
$out .= ' });' . "\n";
$out .= '</script>' . "\n";
return $out;
}
function dmrshark_filter($content) {
$startpos = strpos($content, '<dmrshark-');
if ($startpos === false)
return $content;
for ($j=0; ($startpos = strpos($content, '<dmrshark-log', $j)) !== false;) {
$endpos = strpos($content, '>', $startpos);
$block = substr($content, $startpos, $endpos - $startpos + 1);
$out = dmrshark_log_generate();
$content = str_replace($block, $out, $content);
$j = $endpos;
}
for ($j=0; ($startpos = strpos($content, '<dmrshark-repeaters', $j)) !== false;) {
$endpos = strpos($content, '>', $startpos);
$block = substr($content, $startpos, $endpos - $startpos + 1);
$out = dmrshark_repeaters_generate();
$content = str_replace($block, $out, $content);
$j = $endpos;
}
for ($j=0; ($startpos = strpos($content, '<dmrshark-stats', $j)) !== false;) {
$endpos = strpos($content, '>', $startpos);
$block = substr($content, $startpos, $endpos - $startpos + 1);
$out = dmrshark_stats_generate();
$content = str_replace($block, $out, $content);
$j = $endpos;
}
return $content;
}
load_plugin_textdomain('dmrshark', false, basename(dirname(__FILE__)) . '/languages');
add_filter('the_content', 'dmrshark_filter');
add_filter('the_content_rss', 'dmrshark_filter');
add_filter('the_excerpt', 'dmrshark_filter');
add_filter('the_excerpt_rss', 'dmrshark_filter');
function dmrshark_jscss() {
echo '<link rel="stylesheet" type="text/css" media="screen" href="' . plugins_url('jtable-theme/jtable_basic.css', __FILE__) . '" />';
echo '<link rel="stylesheet" type="text/css" media="screen" href="' . plugins_url('dmrshark.css', __FILE__) . '" />';
}
add_action('wp_head', 'dmrshark_jscss');
?>