summaryrefslogtreecommitdiff
path: root/lib/list/view.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/list/view.php
parentcee55b766230837c21453f85e76a921cb5b8b89e (diff)
downloadBits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.tar.gz
Bits-b0c23ea84327d48e3a4383fac3e795c2dc0a1215.zip
Remove all studying apps code.
Diffstat (limited to 'lib/list/view.php')
-rw-r--r--lib/list/view.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/list/view.php b/lib/list/view.php
deleted file mode 100644
index 2055523..0000000
--- a/lib/list/view.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-assert_redir(count($args) == 3, 'list');
-$listid = intval($args[2]);
-
-$list = mysql_fetch_assoc(sql(
- "SELECT lists.id AS id, lists.name AS name, lists.comment_html AS comment, account.login AS owner, ".
- "account.id AS owner_id ".
- "FROM lists LEFT JOIN account ON account.id = lists.owner ".
- "WHERE lists.id = $listid"));
-assert_error($list, "This list does not exist.");
-
-$can_edit = false;
-if ($list["owner_id"] == $user['id']) $can_edit = true;
-
-$batches = array();
-$n = sql(
- "SELECT id, name FROM batches WHERE list = $listid ".
- "ORDER BY name ASC"
- );
-while ($nn = mysql_fetch_assoc($n)) $batches[] = $nn;
-
-$can_start_study = false;
-if ($user['id'] != 0) {
- if (!mysql_fetch_assoc(sql("SELECT id FROM list_study WHERE list = $listid AND user = " . $user['id'])))
- $can_start_study = true;
-} else {
- $message = "You should create an account in order to study this list.";
-}
-
-require("tpl/list/view.php");