moodle-block_mytreestudyplan/globallevels.php

26 lines
613 B
PHP
Raw Normal View History

<?php
if(isset($_SERVER['SCRIPT_FILENAME']))
{
// If SCRIPT_FILENAME is set, use that one to handle the symlinked directories the develope uses
$cwd = dirname($_SERVER['SCRIPT_FILENAME']);
$root = dirname(dirname($cwd));
print "ROOT {$root}\n";
require_once($root."/config.php");
}
else
{
// If not, assume the cwd is not symlinked
require_once("../../config.php");
}
require_once($CFG->libdir.'/adminlib.php');
admin_externalpage_setup("block_gradelevel_default_levels");
print $OUTPUT->header();
print "<h1>".get_string('cfgpage_globallevels', 'block_gradelevel')."</h1>";
print $OUTPUT->footer();