" . $JScode . "\n"; } function js_var($vars) { $JScode = ''; foreach ($vars as $k => $v) { $JScode .= "var $k='$v';"; } echo '\n"; } $graph_type = input_val('gtype'); $jsvars = ['graph_type' => $graph_type]; switch ($graph_type) { case 'Server': $title = 'Server'; break; case 'VH': $vhost = input_val('vhost'); $jsvars['vhost'] = $vhost; $title = "VHost $vhost"; break; case 'EXTAPP': $vhost = input_val('vhost'); $extapp = input_val('extapp'); $jsvars['vhost'] = $vhost; $jsvars['extapp'] = $extapp; $title = ($vhost == '_Server') ? 'Server Level' : "VHost $vhost"; $title .= " -> $extapp"; break; default: die('illegal access'); } $jsvars['graph_title'] = $title; js_var($jsvars); echo GUI::header(); ?>
|
|
|
|
|
|
|
|
|
|
|
|