remove _DEBUG_USER_SWITCH
This commit is contained in:
parent
1a697fa300
commit
f0c33497b1
3 changed files with 0 additions and 28 deletions
|
@ -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
|
||||
|
|
10
prefs.php
10
prefs.php
|
@ -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 ?>
|
||||
|
|
10
tt-rss.php
10
tt-rss.php
|
@ -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 ?>
|
||||
|
|
Loading…
Reference in a new issue