123456789101112131415161718192021 |
- <?php
- /* For licensing terms, see /license.txt */
- require_once '../inc/global.inc.php';
- $allow = api_get_configuration_value('extra');
- if (empty($allow)) {
- exit;
- }
- api_block_anonymous_users();
- $ex_user_id = isset($_GET['student_id']) ? (int) $_GET['student_id'] : 0;
- $num = isset($_GET['num']) ? (int) $_GET['num'] : 0;
- $table = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCISES);
- $sql = "DELETE FROM $table WHERE exe_id = $num";
- Database::query($sql);
- header("location: myStudents.php?student=$ex_user_id");
- exit;
|