summaryrefslogtreecommitdiff
path: root/tt-rss.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-10-01 05:05:12 +0100
committerAndrew Dolgov <[email protected]>2006-10-01 05:05:12 +0100
commit461766f33ef735eca51d0bf63fa1557c59aa5451 (patch)
treea8705bc57d544fed10a1946d81257943136c1e3a /tt-rss.php
parent803cfab11a6f94bbd395d723c7522b5b5272b3db (diff)
add debug mode only fast user switcher
Diffstat (limited to 'tt-rss.php')
-rw-r--r--tt-rss.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tt-rss.php b/tt-rss.php
index a323922b4..4894cf92f 100644
--- a/tt-rss.php
+++ b/tt-rss.php
@@ -210,6 +210,16 @@ window.onload = init;
<?php } ?>
<div id="footer">
+ <?php if (defined('_DEBUG_USER_SWITCH')) { ?>
+ <select id="userSwitch" onchange="userSwitch()">
+ <?php
+ foreach (array('admin', 'fox', 'test') as $u) {
+ $op_sel = ($u == $_SESSION["name"]) ? "selected" : "";
+ print "<option $op_sel>$u</option>";
+ }
+ ?>
+ </select>
+ <? } ?>
<a href="http://tt-rss.spb.ru/">Tiny Tiny RSS</a> v<?php echo VERSION ?> &copy; 2005-2006 Andrew Dolgov
</div>