summaryrefslogtreecommitdiff
path: root/lib/study/deckadd.php
diff options
context:
space:
mode:
authorroot <root@adnab.me>2014-01-31 16:42:40 +0100
committerroot <root@adnab.me>2014-01-31 16:42:40 +0100
commitb0c23ea84327d48e3a4383fac3e795c2dc0a1215 (patch)
tree625a8f0882815d9442a4ff2ec15a49e669a15ed3 /lib/study/deckadd.php
parentcee55b766230837c21453f85e76a921cb5b8b89e (diff)
downloadBits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.tar.gz
Bits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.zip
Remove all studying apps code.
Diffstat (limited to 'lib/study/deckadd.php')
-rw-r--r--lib/study/deckadd.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/study/deckadd.php b/lib/study/deckadd.php
deleted file mode 100644
index b95648c..0000000
--- a/lib/study/deckadd.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
-assert_redir(count($args) == 3, 'deck');
-$deckid = intval($args[2]);
-$deck = mysql_fetch_assoc(sql("SELECT id FROM decks WHERE id = $deckid"));
-assert_error($deck, "This deck does not exist.");
-
-assert_error(!mysql_fetch_assoc(sql("SELECT id FROM deck_study WHERE deck = $deckid AND user = " . $user['id'])),
- "You are already studying this deck.");
-
-sql("INSERT INTO deck_study(user, deck) VALUES(" . $user['id'] . ", $deckid)");
-header("Location: deck-study-".mysql_insert_id());
-die();