remove _DEBUG_USER_SWITCH

This commit is contained in:
Andrew Dolgov 2010-01-13 20:08:18 +03:00
parent 1a697fa300
commit f0c33497b1
3 changed files with 0 additions and 28 deletions

View file

@ -1909,14 +1909,6 @@
function login_sequence($link, $mobile = false) {
if (!SINGLE_USER_MODE) {
if (defined('_DEBUG_USER_SWITCH') && $_SESSION["uid"]) {
$swu = db_escape_string($_REQUEST["swu"]);
if ($swu) {
$_SESSION["prefs_cache"] = false;
return authenticate_user($link, $swu, null, true);
}
}
$login_action = $_POST["login_action"];
# try to authenticate user if called from login form

View file

@ -149,16 +149,6 @@
<div id="dialog_overlay" style="display : none"> </div>
<div id="prefFooter">
<?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>
<?php } ?>
<a href="http://tt-rss.org/">Tiny Tiny RSS</a>
<?php if (!defined('HIDE_VERSION')) { ?>
v<?php echo VERSION ?>

View file

@ -254,16 +254,6 @@
<?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>
<?php } ?>
<a href="http://tt-rss.org/">Tiny Tiny RSS</a>
<?php if (!defined('HIDE_VERSION')) { ?>
v<?php echo VERSION ?>