summaryrefslogtreecommitdiff
path: root/lib/study/listrm.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/study/listrm.php')
-rw-r--r--lib/study/listrm.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/study/listrm.php b/lib/study/listrm.php
deleted file mode 100644
index a761e97..0000000
--- a/lib/study/listrm.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-assert_redir(count($args) >= 3, 'study');
-$studyid = intval($args[2]);
-
-$study = mysql_fetch_assoc(sql(
- "SELECT ".
- " list_study.user AS learn_user ".
- "FROM list_study ".
- "WHERE list_study.id = $studyid"));
-assert_error($study && $study['learn_user'] == $user['id'], "You are not at the right place here.");
-
-token_validate("Do you really want to remove this list from your studies ? Your progress will not be lost.", "list-study-$studyid");
-sql("DELETE FROM list_study WHERE id = $studyid");
-header("Location: study");
-die();