mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
show notify-window-link only if that app is enabled,
some cleanup of the html (as talked with seek3r)
This commit is contained in:
parent
e13cdddda8
commit
a6f239235c
16
home.php
16
home.php
@ -118,7 +118,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((isset($GLOBALS['phpgw_info']['user']['apps']['admin']) &&
|
if ((isset($GLOBALS['phpgw_info']['user']['apps']['admin']) &&
|
||||||
$GLOBALS['phpgw_info']['user']['apps']['admin']) &&
|
$GLOBALS['phpgw_info']['user']['apps']['admin']) &&
|
||||||
(isset($GLOBALS['phpgw_info']['server']['checkfornewversion']) &&
|
(isset($GLOBALS['phpgw_info']['server']['checkfornewversion']) &&
|
||||||
$GLOBALS['phpgw_info']['server']['checkfornewversion']))
|
$GLOBALS['phpgw_info']['server']['checkfornewversion']))
|
||||||
{
|
{
|
||||||
@ -170,6 +170,10 @@
|
|||||||
unset($_app_string);
|
unset($_app_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($GLOBALS['phpgw_info']['user']['apps']['notifywindow']) &&
|
||||||
|
$GLOBALS['phpgw_info']['user']['apps']['notifywindow'])
|
||||||
|
{
|
||||||
?>
|
?>
|
||||||
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
|
||||||
var NotifyWindow;
|
var NotifyWindow;
|
||||||
@ -193,17 +197,11 @@
|
|||||||
</SCRIPT>
|
</SCRIPT>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo '<p><table border="0" width="100%" align="center">';
|
echo '<a href="javascript:opennotifywindow()">' . lang('Open notify window') . '</a>';
|
||||||
//Uncomment the next line to enable the notify window. It will not work until a notifywindow app is added.
|
}
|
||||||
echo '<a href="javascript:opennotifywindow()">' . lang('Open notify window') . '</a>';
|
|
||||||
|
|
||||||
$GLOBALS['phpgw']->common->hook('home',array('email','calendar','news','addressbook','squirrelmail'));
|
$GLOBALS['phpgw']->common->hook('home',array('email','calendar','news','addressbook','squirrelmail'));
|
||||||
|
|
||||||
//$phpgw->common->debug_phpgw_info();
|
//$phpgw->common->debug_phpgw_info();
|
||||||
//$phpgw->common->debug_list_core_functions();
|
//$phpgw->common->debug_list_core_functions();
|
||||||
?>
|
|
||||||
<TR><TD></TD></TR>
|
|
||||||
</TABLE>
|
|
||||||
<?php
|
|
||||||
$GLOBALS['phpgw']->common->phpgw_footer();
|
$GLOBALS['phpgw']->common->phpgw_footer();
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user