34 |
# You need to update this to point to the URL |
# You need to update this to point to the URL |
35 |
# you use to access Cricket. |
# you use to access Cricket. |
36 |
# $gBaseURL = "http://localhost/~cricket/grapher.cgi"; |
# $gBaseURL = "http://localhost/~cricket/grapher.cgi"; |
37 |
$gBaseURL = "http://romul.pliva.hr/cgi-bin/cricket/grapher.cgi"; |
my $hostname = `hostname -f`; |
38 |
|
chomp($hostname); |
39 |
|
$gBaseURL = "http://$hostname/cgi-bin/cricket/grapher.cgi"; |
40 |
|
|
41 |
# change this to destination directory |
# change this to destination directory |
42 |
$path = "/data/mon/"; |
$path = "/data/mon/"; |
181 |
$URL = "$gBaseURL?type=png&target=$paramtarget"; |
$URL = "$gBaseURL?type=png&target=$paramtarget"; |
182 |
$URL .= "&dslist=$dslist&range=$paramrange"; |
$URL .= "&dslist=$dslist&range=$paramrange"; |
183 |
my $desc = "$paramtarget $vname"; |
my $desc = "$paramtarget $vname"; |
184 |
|
$desc .= " <b>".$target->{'short-desc'}."</b>" if (defined $target->{'short-desc'}); |
185 |
if ($paraminst ne "") { |
if ($paraminst ne "") { |
186 |
$URL .= "&inst=$paraminst"; |
$URL .= "&inst=$paraminst"; |
187 |
} |
} |
199 |
$URL = "$gBaseURL?type=png&target=$paramtarget"; |
$URL = "$gBaseURL?type=png&target=$paramtarget"; |
200 |
$URL .= "&dslist=$dslist&range=$paramrange"; |
$URL .= "&dslist=$dslist&range=$paramrange"; |
201 |
my $desc ="$paraminst $rangeLabel"; |
my $desc ="$paraminst $rangeLabel"; |
202 |
|
$desc .= " <b>".$target->{'short-desc'}."</b>" if (defined $target->{'short-desc'}); |
203 |
if ($paraminst ne "") { |
if ($paraminst ne "") { |
204 |
$URL .= "&inst=$paraminst"; |
$URL .= "&inst=$paraminst"; |
205 |
} |
} |