mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
globals
This commit is contained in:
parent
d2fa0405b6
commit
913baf2bda
@ -13,22 +13,22 @@
|
||||
/* $Id$ */
|
||||
|
||||
// TODO:
|
||||
// Limit which users can access this program (ACL check)
|
||||
// Global disabler
|
||||
// Detect bad logins and passwords, spit out generic message
|
||||
// Limit which users can access this program (ACL check)
|
||||
// Global disabler
|
||||
// Detect bad logins and passwords, spit out generic message
|
||||
|
||||
// If your are going to use multiable accounts, remove the following lines
|
||||
$login = 'anonymous';
|
||||
$passwd = 'anonymous';
|
||||
|
||||
$phpgw_info['flags'] = array(
|
||||
'disable_template_class' => True,
|
||||
$GLOBALS['phpgw_info']['flags'] = array(
|
||||
'disable_Template_class' => True,
|
||||
'login' => True,
|
||||
'currentapp' => 'login',
|
||||
'noheader' => True);
|
||||
|
||||
'noheader' => True
|
||||
);
|
||||
include('./header.inc.php');
|
||||
|
||||
$sessionid = $phpgw->session->create($login,$passwd);
|
||||
$phpgw->redirect($phpgw->link('/index.php'));
|
||||
?>
|
||||
$sessionid = $GLOBALS['phpgw']->session->create($login,$passwd);
|
||||
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/index.php'));
|
||||
?>
|
||||
|
11
notify.php
11
notify.php
@ -11,7 +11,8 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info['flags'] = array(
|
||||
$phpgw_info = array();
|
||||
$GLOBALS['phpgw_info']['flags'] = array(
|
||||
'noheader' => True,
|
||||
'nonavbar' => True,
|
||||
'disable_Template_class' => True,
|
||||
@ -28,16 +29,16 @@
|
||||
<!-- Activate Cloaking Device
|
||||
function CheckEmail()
|
||||
{
|
||||
window.opener.document.location.href="<?php echo $phpgw->link('/index.php','menuaction=email.uiindex.index'); ?>";
|
||||
window.opener.document.location.href="<?php echo $GLOBALS['phpgw']->link('/index.php','menuaction=email.uiindex.index'); ?>";
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor="<?php echo $phpgw_info['theme']['bg_color']; ?>" alink="blue" vlink="blue" link="blue">
|
||||
<body bgcolor="<?php echo $GLOBALS['phpgw_info']['theme']['bg_color']; ?>" alink="blue" vlink="blue" link="blue">
|
||||
<table>
|
||||
<tr><td><a href="<?php echo $phpgw->link('/notify.php'); ?>">Check Now</a></td></tr>
|
||||
<tr><td><a href="<?php echo $GLOBALS['phpgw']->link('/notify.php'); ?>">Check Now</a></td></tr>
|
||||
<?php
|
||||
$phpgw->common->hook('notifywindow',array('email'));
|
||||
$GLOBALS['phpgw']->common->hook('notifywindow',array('email'));
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
|
@ -11,9 +11,15 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "notifywindow");
|
||||
include("header.inc.php");
|
||||
$phpgw_info = array();
|
||||
$GLOBALS['phpgw_info']['flags'] = array(
|
||||
'noheader' => True,
|
||||
'nonavbar' => True,
|
||||
'currentapp' => 'notifywindow'
|
||||
);
|
||||
include('./header.inc.php');
|
||||
|
||||
echo '<html><body>';
|
||||
$phpgw->common->hook("simple",array("email"));
|
||||
$GLOBALS['phpgw']->common->hook('simple',array('email'));
|
||||
echo '</body></html>';
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user