-
Notifications
You must be signed in to change notification settings - Fork 3
/
servcheck_curl_code.php
61 lines (50 loc) · 2.5 KB
/
servcheck_curl_code.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
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2024 The Cacti Group |
| |
| 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; either version 2 |
| of the License, or (at your option) any later version. |
| |
| 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. |
+-------------------------------------------------------------------------+
| Cacti: The Complete RRDtool-based Graphing Solution |
+-------------------------------------------------------------------------+
| This code is designed, written, and maintained by the Cacti Group. See |
| about.php and/or the AUTHORS file for specific developer information. |
+-------------------------------------------------------------------------+
| http://www.cacti.net/ |
+-------------------------------------------------------------------------+
*/
chdir('../../');
include_once('./include/auth.php');
include_once($config['base_path'] . '/plugins/servcheck/includes/functions.php');
include_once($config['base_path'] . '/plugins/servcheck/includes/arrays.php');
top_header();
servcheck_show_tab('servcheck_curl_code.php');
$findcode = get_filter_request_var('findcode');
html_start_box('', '100%', '', '3', 'center', '');
if (cacti_sizeof($curl_error)) {
foreach ($curl_error as $id=>$code) {
form_alternate_row('line' . $id, true);
if ($id == $findcode) {
print '<td class="bold">' . $id . '</td>';
print '<td class="bold">' . $code['title'] . '</td>';
print '<td class="bold">' . $code['description'] . '</td>';
} else {
print '<td>' . $id . '</td>';
print '<td>' . $code['title'] . '</td>';
print '<td>' . $code['description'] . '</td>';
}
form_end_row();
}
} else {
print '<tr><td colspan="' . $columns . '"><em>' . __('No error codes', 'servcheck') . '</em></td></tr>';
}
html_end_box(false);
bottom_footer();