. /** * Page module version information * * @package mod_palestra * @copyright 2021 Interlegis (https://www.interlegis.leg.br) * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require('../../config.php'); require_once($CFG->dirroot.'/mod/palestra/lib.php'); $id = optional_param('id', null, PARAM_INT); if (!$id) { echo get_string('presence_unregistered', 'palestra'); } else { $DB->set_field('palestra_presence', 'lastcheck', time(), array('id'=>$id)); echo "done"; }