You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
534 B
22 lines
534 B
![]()
7 years ago
|
<?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;
|