[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: wcm/website/templates frame.tpl,1.13,1.14
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: wcm/website/templates frame.tpl,1.13,1.14 |
Date: |
Wed, 27 Feb 2002 00:38:03 -0500 |
Update of /cvsroot/phpgroupware/wcm/website/templates
In directory subversions:/tmp/cvs-serv9287/website/templates
Modified Files:
frame.tpl
Log Message:
switch to define for anon
Index: frame.tpl
===================================================================
RCS file: /cvsroot/phpgroupware/wcm/website/templates/frame.tpl,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** frame.tpl 27 Feb 2002 05:00:11 -0000 1.13
--- frame.tpl 27 Feb 2002 05:38:01 -0000 1.14
***************
*** 15,26 ****
$login = '{anonusername}';
$passwd = '{anonpassword}';
- $anon = False;
/* User did not login, use anon account values and create a session */
if(!$GLOBALS['sessionid'])
{
! $anon = True;
$GLOBALS['sessionid'] =
@$GLOBALS['phpgw']->session->create($login,$passwd,'text');
}
?>
{header}
--- 15,26 ----
$login = '{anonusername}';
$passwd = '{anonpassword}';
/* User did not login, use anon account values and create a session */
if(!$GLOBALS['sessionid'])
{
! define('anon', True);
$GLOBALS['sessionid'] =
@$GLOBALS['phpgw']->session->create($login,$passwd,'text');
}
+ $GLOBALS['phpgw']->template = CreateObject('phpgwapi.Template');
?>
{header}
***************
*** 138,143 ****
$p = CreateObject('wcm.bopage');
- $GLOBALS['phpgw']->template = CreateObject('phpgwapi.Template');
-
$site_id = $s->name2id($sname);
$page_id = $p->name2id($pname);
--- 138,141 ----
***************
*** 168,172 ****
}
}
! if($anon && $GLOBALS['sessionid'])
{
@$GLOBALS['phpgw']->session->destroy($GLOBALS['sessionid'],$GLOBALS['kp3']);
--- 166,170 ----
}
}
! if(defined('anon') && $GLOBALS['sessionid'])
{
@$GLOBALS['phpgw']->session->destroy($GLOBALS['sessionid'],$GLOBALS['kp3']);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: wcm/website/templates frame.tpl,1.13,1.14,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.14,1.15 class.soelement.inc.php,1.14,1.15 class.uielement.inc.php,1.14,1.15
- Next by Date:
[Phpgroupware-cvs] CVS: cdb/doc cdb.views.txt,1.2,1.3
- Previous by thread:
[Phpgroupware-cvs] CVS: wcm/inc class.bosite.inc.php,1.14,1.15 class.soelement.inc.php,1.14,1.15 class.uielement.inc.php,1.14,1.15
- Next by thread:
[Phpgroupware-cvs] CVS: cdb/doc cdb.views.txt,1.2,1.3
- Index(es):