mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
phpinfo() will now pop-up in a javascript window, the old method made things look very bad
This commit is contained in:
parent
137605c030
commit
e191362086
@ -54,7 +54,7 @@
|
||||
// These need to be added still
|
||||
$file['View Access Log'] = $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiaccess_history.list_history');
|
||||
$file['View Error Log'] = $GLOBALS['phpgw']->link('/admin/log.php');
|
||||
$file['phpInfo'] = $GLOBALS['phpgw']->link('/admin/phpinfo.php');
|
||||
$file['phpInfo'] = "javascript:openwindow('" . $GLOBALS['phpgw']->link('/admin/phpinfo.php') . "')"; //$GLOBALS['phpgw']->link('/admin/phpinfo.php');
|
||||
|
||||
//Do not modify below this line
|
||||
display_section('admin','admin',$file);
|
||||
|
@ -12,12 +12,13 @@
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info['flags'] = array(
|
||||
'currentapp' => 'admin',
|
||||
'enable_nextmatchs_class' => True
|
||||
'noheader' => True,
|
||||
'nonavbar' => True,
|
||||
'currentapp' => 'admin'
|
||||
);
|
||||
include('../header.inc.php');
|
||||
|
||||
phpinfo();
|
||||
|
||||
$phpgw->common->phpgw_footer();
|
||||
// $phpgw->common->phpgw_footer();
|
||||
?>
|
@ -1,4 +1,25 @@
|
||||
<!-- BEGIN list -->
|
||||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||||
var phpinfo;
|
||||
|
||||
function openwindow(url)
|
||||
{
|
||||
if (phpinfo)
|
||||
{
|
||||
if (phpinfo.closed)
|
||||
{
|
||||
phpinfo.stop;
|
||||
phpinfo.close;
|
||||
}
|
||||
}
|
||||
phpinfo = window.open(url, "phpinfoWindow","width=700,height=600,location=no,menubar=no,directories=no,toolbar=no,scrollbars=yes,resizable=yes,status=no");
|
||||
if (phpinfo.opener == null)
|
||||
{
|
||||
phpinfo.opener = window;
|
||||
}
|
||||
}
|
||||
</SCRIPT>
|
||||
|
||||
<table width="75%" border="0" cellspacing="0" cellpadding="0">
|
||||
{rows}
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user