[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 /** 3 * $Horde: horde/services/portal/index.php,v 1.39.10.7 2006/03/08 18:00:56 chuck Exp $ 4 * 5 * Copyright 2003-2006 Mike Cochrane <mike@graftonhall.co.nz> 6 * 7 * See the enclosed file COPYING for license information (LGPL). If you 8 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 9 */ 10 11 @define('HORDE_BASE', dirname(__FILE__) . '/../..'); 12 require_once HORDE_BASE . '/lib/base.php'; 13 require_once 'Horde/Block/Collection.php'; 14 require_once 'Horde/Block/Layout/View.php'; 15 require_once 'Horde/Identity.php'; 16 17 if (!Auth::isAuthenticated()) { 18 Horde::authenticationFailureRedirect(); 19 } 20 21 // Get full name for title 22 $identity = &Identity::singleton(); 23 $fullname = $identity->getValue('fullname'); 24 if (empty($fullname)) { 25 $fullname = Auth::getAuth(); 26 } 27 28 // Get refresh interval. 29 if ($prefs->getValue('summary_refresh_time')) { 30 $refresh_time = $prefs->getValue('summary_refresh_time'); 31 $refresh_url = Horde::applicationUrl('services/portal/'); 32 } 33 34 // Load layout from preferences. 35 $layout_pref = $prefs->getValue('portal_layout'); 36 if (!$layout_pref) { 37 $layout_pref = Horde_Block_Collection::getFixedBlocks(); 38 } 39 $view = new Horde_Block_Layout_View($layout_pref); 40 $layout_html = $view->toHtml(); 41 $cssApps = $view->getApplications(); 42 $linkTags = $view->getLinkTags(); 43 44 $title = _("My Portal"); 45 require HORDE_TEMPLATES . '/common-header.inc'; 46 require HORDE_TEMPLATES . '/portal/menu.inc'; 47 $notification->notify(array('listeners' => 'status')); 48 echo $layout_html; 49 require HORDE_TEMPLATES . '/common-footer.inc';
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |