1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-09 05:42:13 +00:00

add debug mode only fast user switcher

This commit is contained in:
Andrew Dolgov
2006-10-01 05:05:12 +01:00
parent 803cfab11a
commit 461766f33e
5 changed files with 44 additions and 5 deletions

View File

@@ -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>