Skip to content

Commit 7e5e355

Browse files
acolombeflegastelois
authored andcommitted
Close treeview on log out
1 parent 71f4202 commit 7e5e355

2 files changed

Lines changed: 4 additions & 27 deletions

File tree

inc/config.class.php

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -266,36 +266,10 @@ function seeTreeview() {
266266
function hideTreeview() {
267267
global $CFG_GLPI;
268268

269-
echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN'
270-
'http://www.w3.org/TR/html4/frameset.dtd'>";
271-
echo "\n<html><head><title>". sprintf(__('%1$s - %2$s'), "GLPI", __('Tree view', 'treeview'));
272-
echo "</title>";
273-
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
274-
275-
// Send extra expires header if configured
276-
echo "<meta http-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>\n";
277-
echo "<meta http-equiv='Pragma' content='no-cache'>\n";
278-
echo "<meta http-equiv='Cache-Control' content='no-cache'>\n";
279-
echo "<link rel='stylesheet' type='text/css' media='print' href='".
280-
$CFG_GLPI["root_doc"]."/css/print.css' >\n";
281-
echo "<link rel='shortcut icon' type='images/x-icon' href='".
282-
$CFG_GLPI["root_doc"]."/pics/favicon.ico' >\n";
283-
284-
// Must be always the top window
285269
echo "<script type=\"text/javascript\">";
286270
echo "if (top != self)";
287271
echo "top.location = self.location;";
288-
echo "</script></head>";
289-
echo "<frameset cols='250,*'>";
290-
//echo "<frame src='".$CFG_GLPI['root_doc']."/plugins/treeview/left.php' name='left' scrolling='yes'>";
291-
echo "<frame src='".$CFG_GLPI['root_doc']."/front/central.php' name='right'>";
292-
echo "<noframes>";
293-
echo "<body>";
294-
echo "<p><a href='".$CFG_GLPI['root_doc']."/front/central.php'>GLPI</a></p>";
295-
echo "</body>";
296-
echo "</noframes>";
297-
echo "</frameset>";
298-
echo "</html>";
272+
echo "</script>";
299273
}
300274

301275

treeview.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,7 @@ body {
6464
#explorer_close {
6565
padding: 3px;
6666
text-align:right;
67+
}
68+
#explorer_close img {
69+
cursor: pointer;
6770
}

0 commit comments

Comments
 (0)