initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:57:21 -06:00
commit fd8ad64063
22097 changed files with 1960930 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
###################################################################################################### prints a single course type description
if($_CMDS['query'][1] == 'intllegalenglish')
{
include 'html_intllegalenglish.php';
return;
}
global $_COURSES,$_WORDS; // the globals we'll need
$course_path = $_DOC_ROOT.'/data/course_types/'.$_CMDS['query'][1].'.xml'; // the xml file with course's data
$desc = $_COURSES['default_desc']; // a default description in case there is not info on this person
if(!file_exists($course_path)) { // if no file exists, neither does the person
print "
<div class='page_subtitle'>{$_ERRORS['courses']['nosuch_title']}</div>
<div class='page_content'>
{$_ERRORS['courses']['nosuch_msg']}
</div>";
return;
}
$data = xml_parse_file($course_path); // parse the xml into an associative array<u></u>
$data = $data['coursetype'][$_LANG];
html_print_xml_page($data);
?>