diff options
author | Nicolas BERNSTEIN <alexis211@gmail.com> | 2011-09-17 19:36:41 +0200 |
---|---|---|
committer | Nicolas BERNSTEIN <alexis211@gmail.com> | 2011-09-17 19:36:41 +0200 |
commit | 8d9321225140a3db0b72796d4d0236d6cacfeb8a (patch) | |
tree | 766e25ed98b86ed4cbf6d0517d9daaecc5ce3c18 /tpl/general | |
parent | b6b341d949437c913fcce3d1a7c302945f67b22b (diff) | |
download | Bits-8d9321225140a3db0b72796d4d0236d6cacfeb8a.tar.gz Bits-8d9321225140a3db0b72796d4d0236d6cacfeb8a.zip |
Started working on a study program.
Diffstat (limited to 'tpl/general')
-rw-r--r-- | tpl/general/top.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tpl/general/top.php b/tpl/general/top.php index e87e466..28a9658 100644 --- a/tpl/general/top.php +++ b/tpl/general/top.php @@ -24,9 +24,12 @@ if ($user['id'] == 0) { <a href="notes">Notebooks</a> <?php if ($user['id'] != 0) { - echo '<a href="image">Uploaded images</a>'; -} elseif ($user['priv'] >= $apps['image']['upload']) { - echo '<a href="upload-image">Upload image</a>'; + echo '<a href="image">Uploaded images</a><a href="study">My studies</a>'; +} else { + if ($user['priv'] >= $apps['image']['upload']) { + echo '<a href="upload-image">Upload image</a>'; + } + echo '<a href="deck">Study decks</a>'; } ?> </div> |