[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sms index.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] sms index.php |
Date: |
Tue, 16 Jan 2007 11:24:51 +0000 |
CVSROOT: /sources/phpgroupware
Module name: sms
Changes by: Sigurd Nes <sigurdne> 07/01/16 11:24:51
Modified files:
. : index.php
Log message:
notice
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/sms/index.php?cvsroot=phpgroupware&r1=1.2&r2=1.3
Patches:
Index: index.php
===================================================================
RCS file: /sources/phpgroupware/sms/index.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- index.php 15 Sep 2006 13:28:09 -0000 1.2
+++ index.php 16 Jan 2007 11:24:51 -0000 1.3
@@ -1,8 +1,14 @@
<?php
- /**
* phpGroupWare - HRM: a human resource competence management system.
*
* @author Sigurd Nes <address@hidden>
* @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package hrm
* @version $Id: index.php,v 1.2 2006/09/15 13:28:09 sigurdne Exp $
*/
+ /**
* phpGroupWare - HRM: a human resource competence management system.
*
* @author Sigurd Nes <address@hidden>
* @copyright Copyright (C) 2003-2005 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package hrm
* @version $Id: index.php,v 1.3 2007/01/16 11:24:51 sigurdne Exp $
*/
/**
* Start page
*
* This script will check if there is defined a startpage in the users
* preferences - and then forward the user to this page
*/
$currentapp='sms';
$GLOBALS['phpgw_info']['flags'] = array(
'noheader' => True,
'nonavbar' => True,
'currentapp' => $currentapp
);
include('../header.inc.php');
-
$start_page=$GLOBALS['phpgw_info']['user']['preferences'][$currentapp]['default_start_page'];
- if ($start_page)
{
$start_page = array('menuaction'=>
$currentapp.'.ui'.$start_page.'.index');
}
else
{
$start_page = array('menuaction'=> $currentapp.'.uisms.index');
}
- $GLOBALS['phpgw']->redirect_link('/index.php',$start_page);
+ $start_page = 'sms';
+
+ if (
isset($GLOBALS['phpgw_info']['user']['preferences']['property']['default_start_page'])
+ &&
$GLOBALS['phpgw_info']['user']['preferences']['property']['default_start_page']
)
+ {
+ $start_page =
$GLOBALS['phpgw_info']['user']['preferences']['property']['default_start_page'];
+ }
+
+ $GLOBALS['phpgw']->redirect_link('/index.php',array('menuaction' =>
"sms.ui{$start_page}.index"));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sms index.php,
Sigurd Nes <=