At the top of header.html:
<?php $CFG->startpagetime = microtime(); ?>
Near the bottom of footer.html:
<?php
if (isadmin()) {
echo "<p align=right><font size=-3>";
echo microtime_diff($CFG->startpagetime, microtime());
echo "</font></p>";
}
?>
<?php $CFG->startpagetime = microtime(); ?>
<?php
if (isadmin()) {
echo "<p align=right><font size=-3>";
echo microtime_diff($CFG->startpagetime, microtime());
echo "</font></p>";
}
?>
<?php
include_once('config.php');
require_login();
if (isadmin()) {
$perf =&NewPerfMonitor($db);
$perf->UI($pollsecs=5);
} else {
error("Sorry, admins only.");
}
?>
Nice, I put it behind a button on the administration overview page.
If I press trhe button I get this screen. Great, what does it mean?
Thanks, I will sent your compliments to my Linux administrator.
We have sometimes problems with the clock, for example when a teachers creates a quizz with a time window and the clock is not in synch with real life: would be nice to have a date & timechecker in the administration-menu, to check now and then.
(A date/time checker AND resetter is asking to much?)
I now use these two open sources for clock and date, each behind a button,
Maybe You forgot to place in header.html of your styleset:
<?php $CFG->startpagetime = microtime(); ?>