Re-apply Logout patch to HEAD
authorchriskl <chriskl>
Wed, 29 Jun 2005 05:15:06 +0000 (05:15 +0000)
committerchriskl <chriskl>
Wed, 29 Jun 2005 05:15:06 +0000 (05:15 +0000)
classes/Misc.php

index 88c3f41d14a93144cdfb0735c204bec90ee57585..1f4ecfddbb8b3da8b7998ec91e4f5dfda82513d1 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.103 2005/06/29 04:16:54 chriskl Exp $
+        * $Id: Misc.php,v 1.104 2005/06/29 05:15:06 chriskl Exp $
         */
         
        class Misc {
                                $window_id = htmlspecialchars('sqledit:'.$_REQUEST['server']);
                                
                                echo "<td align=\"right\">";
-                               
+
                                echo "<a class=\"toplink\" href=\"{$url}sql\" target=\"sqledit\" onclick=\"window.open('{$url}sql','{$window_id}','toolbar=no,width=600,height=400,resizable=yes,scrollbars=no').focus(); return false;\">{$lang['strsql']}</a> | ";
                                
-                               echo "<a class=\"toplink\" href=\"{$url}find\" target=\"sqledit\" onclick=\"window.open('{$url}find','{$window_id}','toolbar=no,width=600,height=400,resizable=yes,scrollbars=no').focus(); return false;\">{$lang['strfind']}</a>";
+                               echo "<a class=\"toplink\" href=\"{$url}find\" target=\"sqledit\" onclick=\"window.open('{$url}find','{$window_id}','toolbar=no,width=600,height=400,resizable=yes,scrollbars=no').focus(); return false;\">{$lang['strfind']}</a> | ";
+                               
+                               echo "<a class=\"toplink\" href=\"servers.php?action=logout&logoutServer=".htmlspecialchars($server_info['host']).":".htmlspecialchars($server_info['port'])."\">{$lang['strlogout']}</a>";
                                
                                echo "</td>";
                        }