setHeaders();
if ( !$wgUser->isDeveloper() ) {
$wgOut->addWikiText( "You're not allowed, go away" );
return;
}
$res=wfQuery("SHOW FULL PROCESSLIST",DB_READ);
$output=array();
$output = "
";
while ( $row=wfFetchObject($res)){
$output .= "";
$fields = get_object_vars($row);
foreach ($fields as $name => $value ) {
$output .= "" . htmlspecialchars( $value ) . " | ";
}
$output .= "
";
}
$output .= "
";
$wgOut->addHTML( $output );
}
}
SpecialPage::addPage( new ShowProcesslistPage );
} # End of extension function
?>