2 // dbperformance.php - shows latest ADOdb stats for the current server
4 require_once('../config.php');
6 // disable moodle specific debug messages that would be breaking the frames
9 $topframe = optional_param('topframe', 0, PARAM_BOOL
);
10 $bottomframe = optional_param('bottomframe', 0, PARAM_BOOL
);
11 $do = optional_param('do', '', PARAM_ALPHA
);
15 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM
, SITEID
));
17 $strdatabaseperformance = get_string("databaseperformance");
18 $stradministration = get_string("administration");
21 $navigation = build_navigation(array(
22 array('name'=>$stradministration, 'link'=>'index.php', 'type'=>'misc'),
23 array('name'=>$strdatabaseperformance, 'link'=>null, 'type'=>'misc')));
24 if (!empty($topframe)) {
25 print_header("$site->shortname: $strdatabaseperformance", "$site->fullname", $navigation);
29 if (!empty($bottomframe) or !empty($do)) {
30 $perf =&NewPerfMonitor($db);
31 $perf->UI($pollsecs=5);
37 <title
><?php
echo "$site->shortname: $strdatabaseperformance" ?
></title
>
40 <frameset rows
="80,*">
41 <frame src
="dbperformance.php?topframe=true">
42 <frame src
="dbperformance.php?bottomframe=true">