]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove _DEBUG_USER_SWITCH
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 13 Jan 2010 17:08:18 +0000 (20:08 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 13 Jan 2010 17:08:18 +0000 (20:08 +0300)
functions.php
prefs.php
tt-rss.php

index 672d9ef1d60b6c6348c69567ff78c469a20a12dc..369a3bcf7cde963f7827a84025dedafd054d9a7f 100644 (file)
        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                    
index 8a0b5237aac7b6cb5084dde0512094dc677c2b95..656bdaf19b1c74a8b68e3b1c341a90a5aeeee461 100644 (file)
--- a/prefs.php
+++ b/prefs.php
 <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 ?> 
index bf5575b95c56bea0ba4e1d017c58c3d238ab1934..0cd784ee00c54bdbd12f5028b5e531ca9aad85ae 100644 (file)
 <?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 ?>