| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?PHP // $Id: dbperformance.php,v 1.9.2.1 2008/05/02 04:07:27 dongsheng Exp $ 2 // dbperformance.php - shows latest ADOdb stats for the current server 3 4 require_once ('../config.php'); 5 6 // disable moodle specific debug messages that would be breaking the frames 7 disable_debugging(); 8 9 $topframe = optional_param('topframe', 0, PARAM_BOOL); 10 $bottomframe = optional_param('bottomframe', 0, PARAM_BOOL); 11 $do = optional_param('do', '', PARAM_ALPHA); 12 13 require_login(); 14 15 require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)); 16 17 $strdatabaseperformance = get_string("databaseperformance"); 18 $stradministration = get_string("administration"); 19 $site = get_site(); 20 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); 26 exit; 27 } 28 29 if (!empty($bottomframe) or !empty($do)) { 30 $perf =&NewPerfMonitor($db); 31 $perf->UI($pollsecs=5); 32 exit; 33 } 34 35 ?> 36 <head> 37 <title><?php echo "$site->shortname: $strdatabaseperformance" ?></title> 38 </head> 39 40 <frameset rows="80,*"> 41 <frame src="dbperformance.php?topframe=true"> 42 <frame src="dbperformance.php?bottomframe=true"> 43 </frameset>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |