From b0c23ea84327d48e3a4383fac3e795c2dc0a1215 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 31 Jan 2014 16:42:40 +0100 Subject: Remove all studying apps code. --- lib/deck/mvent.php | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 lib/deck/mvent.php (limited to 'lib/deck/mvent.php') diff --git a/lib/deck/mvent.php b/lib/deck/mvent.php deleted file mode 100644 index 28a7fa3..0000000 --- a/lib/deck/mvent.php +++ /dev/null @@ -1,33 +0,0 @@ - $card['deckid'], 'name' => $card['deckname']); -$deckid = $card['deckid']; - -$mn = mysql_fetch_assoc(sql("SELECT COUNT(*) AS c FROM cards WHERE deck = $deckid")); -$mn = $mn['c']; -if ($pos > $mn) { - $error = "That number is too big. You don't even have that much cards in your deck."; -} else if ($pos < 1) { - $error = "A position is at least one..."; -} else { - sql("UPDATE cards SET number = 0 WHERE id = $cardid"); - sql("UPDATE cards SET number = number - 1 WHERE number > " . $card['number'] . " AND deck = $deckid ORDER BY number ASC"); - sql("UPDATE cards SET number = number + 1 WHERE number >= $pos AND deck = $deckid ORDER BY number DESC"); - sql("UPDATE cards SET number = $pos WHERE id = $cardid"); - sql("UPDATE deck_study SET need_check = 1 WHERE deck = $deckid"); - header("Location: view-deck-$deckid"); -} - -require("tpl/deck/ef.php"); -- cgit v1.2.3