[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgroupware login.php,1.76,1.77
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgroupware login.php,1.76,1.77 |
Date: |
Sun, 17 Feb 2002 03:07:40 -0500 |
Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv8525
Modified Files:
login.php
Log Message:
auto-redirect to setup if missing header.inc.php
Index: login.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/login.php,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -r1.76 -r1.77
*** login.php 5 Dec 2001 16:00:39 -0000 1.76
--- login.php 17 Feb 2002 08:07:38 -0000 1.77
***************
*** 21,26 ****
'noheader' => True
);
- include('./header.inc.php');
$GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT .
'/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set'];
$tmpl = CreateObject('phpgwapi.Template',
$GLOBALS['phpgw_info']['server']['template_dir']);
--- 21,36 ----
'noheader' => True
);
+ if(file_exists('./header.inc.php'))
+ {
+ include('./header.inc.php');
+ }
+ else
+ {
+ Header('Location: setup/index.php');
+ exit;
+ }
+
+
$GLOBALS['phpgw_info']['server']['template_dir'] = PHPGW_SERVER_ROOT .
'/phpgwapi/templates/' . $GLOBALS['phpgw_info']['login_template_set'];
$tmpl = CreateObject('phpgwapi.Template',
$GLOBALS['phpgw_info']['server']['template_dir']);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgroupware login.php,1.76,1.77,
Dan Kuykendall <address@hidden> <=