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