I have a basic page set up with custom content, and have added files to my custom theme set up to bring in the html that I need. I'd like to know if there is a way that I can require my user to login without having a course object attached.
I'm using Moodle 2.7
<?php
require_once('../../config.php');
$PAGE->set_context(get_system_context());
$PAGE->set_pagelayout('aod');
$PAGE->set_title("AOD: Analyst On Demand");
$PAGE->set_heading("AOD: Analyst On Demand");
$PAGE->set_url($CFG->wwwroot.'/tools/aod/test.php');
$content = "create some content";
echo $OUTPUT->header();
echo $content;
echo $OUTPUT->footer();