1 <% include( '/elements/header.html', 'Cacti Graphs' ) %>
5 <FORM NAME="CactiGraphForm" ID="CactiGraphForm" style="margin-top: 0">
6 <INPUT TYPE="hidden" NAME="svcnum" VALUE="<% $svcnum %>">
8 <% include( '/elements/progress-init.html',
11 $p.'misc/process/cacti_graphs.cgi',
12 { url => 'javascript:window.location.replace("'.popurl(2).'misc/cacti_graphs.html?svcnum='.$svcnum.'")' },
15 note we use window.location.replace for the callback url above
16 so that this page gets removed from browser history after processing
17 so that process() doesn't get triggered by the back button
19 <P>Loading graphs, please wait...</P>
20 <SCRIPT TYPE="text/javascript">
31 <% slurp($htmlfile) %>
37 use File::Slurp qw( slurp );
39 my $svcnum = $cgi->param('svcnum') or die 'Illegal svcnum';
40 my $load = $cgi->param('load');
41 my $graphnum = $cgi->param('graphnum');
43 my $htmlfile = $FS::UID::cache_dir
47 $htmlfile .= '_graph_' . $graphnum
51 my $error = (-e $htmlfile) ? '' : 'File not found';