|
From: Ulf E. <ulf...@us...> - 2005-09-09 20:20:17
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20457/templates/default Modified Files: bugdisplay.html Log Message: Remove the options to vote or bookmark bugs unless the user is logged on Index: bugdisplay.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- bugdisplay.html 27 Aug 2005 13:14:28 -0000 1.51 +++ bugdisplay.html 9 Sep 2005 20:20:10 -0000 1.52 @@ -235,6 +235,7 @@ </table> </form> <div align="center" class="bugdisplaylinks"> +<?php if (isset($_SESSION['uid']) && !empty($_SESSION['uid'])) { ?> <?php if (!$already_bookmarked) { ?> <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=addbookmark&bugid=<?php echo $bug_id; ?>"><?php echo translate("Bookmark this bug"); ?></a></b> | <?php } else { ?> @@ -242,6 +243,7 @@ <?php } ?> <?php if (!empty($error['vote'])) echo "<div class=\"error\">{$error['vote']}</div>" ?> <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=vote&bugid=<?php echo $bug_id; ?>" onClick="if (<?php echo $already_voted; ?>) { alert ('<?php echo translate("You have already voted for this bug"); ?>'); return false; }"><?php echo translate("Vote for this bug"); ?></a></b> | +<?php } ?> <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=viewvotes&bugid=<?php echo $bug_id; ?>"><?php echo translate("View votes"); ?> (<?php echo $num_votes; ?>)</a></b> | <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=history&bugid=<?php echo $bug_id; ?>"><?php echo translate("View bug history"); ?></a></b> <!-- |