2006-04-20 22:36:22 +00:00
|
|
|
<?php //$Id$
|
2006-03-09 07:37:40 +00:00
|
|
|
|
2006-03-09 07:41:18 +00:00
|
|
|
if (!defined('MOODLE_INTERNAL')) {
|
|
|
|
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
|
|
|
}
|
2006-03-16 08:49:20 +00:00
|
|
|
|
|
|
|
echo '<p style="text-align:center;">';
|
2006-03-09 07:37:40 +00:00
|
|
|
if (!empty($CFG->enablestats)) {
|
|
|
|
echo '<a href="'.$CFG->wwwroot.'/course/report/stats/index.php?course='.$course->id.'">'.get_string('stats').'</a>';
|
2006-03-16 08:49:20 +00:00
|
|
|
} else {
|
|
|
|
echo '<a href="'.$CFG->wwwroot.'/admin/config.php#configsectionstats">'.get_string('statsoff').'</a>';
|
2006-03-09 07:37:40 +00:00
|
|
|
}
|
2006-03-16 08:49:20 +00:00
|
|
|
echo '</p>';
|
|
|
|
?>
|