<?php // basic check if (empty($q) || empty($CFG)) { die; } if (Context == 'admin') { if (Action == 'viewspeaker') { preg_match('#^admin/speakers/(\\d+)/?$#', $q, $matches); $speaker_id = !empty($matches) ? (int) $matches[1] : 0; $user = get_speaker($speaker_id); $desc = __('Ponente'); $prop_desc = __('Propuestas enviadas'); } elseif (Action == 'viewperson') { preg_match('#^admin/persons/(\\d+)/?$#', $q, $matches); $person_id = !empty($matches) ? (int) $matches[1] : 0; $user = get_person($person_id); $desc = __('Asistente'); $prop_desc = __('Talleres/Tutoriales inscritos'); } } elseif (Context == 'asistente') { $prop_desc = __('Talleres/Tutoriales inscritos'); $user = get_person($USER->id); } if (!empty($user)) { if (Context == 'asistente') { ?> <h1><?php echo __('Hoja de Registro'); ?>
case 'admin': if (Action == 'newadmin') { $title = __('Registro de Administrador'); } elseif (Action == 'newspeaker') { $title = __('Registro de Ponente'); } else { $title = __('Modificar datos de Administrador'); $user = get_admin($USER->id); } break; case 'ponente': if (Action == 'register') { $title = __('Registro de Ponentes'); } else { $title = __('Modificar datos de Ponente'); $user = get_speaker($USER->id); } break; case 'asistente': if (Action == 'register') { $title = __('Registro de Asistentes'); } else { $title = __('Modificar datos de Asistente'); $user = get_person($USER->id); } break; } require $CFG->comdir . 'user_optional_params.php'; ?> <h1><?php echo $title;