course)) { error("Course is misconfigured"); } if (! $glossary = get_record("glossary", "id", $cm->instance)) { error("Course module is incorrect"); } require_login($course->id); if (!isteacher($course->id)) { error("You must be a teacher to use this page."); } $newentry->id = $eid; $newentry->approved = 1; if (! update_record("glossary_entries", $newentry)) { error("Could not update your glossary"); } else { add_to_log($course->id, "glossary", "approve entry", "showentry.php?id=$cm->id&eid=$eid", "$eid",$cm->id); } redirect("view.php?id=$cm->id&mode=$mode&hook=$hook",get_string("entryapproved","glossary"),1); die; ?>