1<?php 2/** 3 * Smartmobile portal page. 4 * 5 * Copyright 2002-2017 Horde LLC (http://www.horde.org/) 6 * 7 * See the enclosed file COPYING for license information (LGPL-2). If you 8 * did not receive this file, see http://www.horde.org/licenses/lgpl. 9 * 10 * @author Chuck Hagenbuch <chuck@horde.org> 11 * @category Horde 12 * @license http://www.horde.org/licenses/lgpl LGPL-2 13 * @package Horde 14 */ 15 16require_once __DIR__ . '/../../lib/Application.php'; 17Horde_Registry::appInit('horde'); 18 19$identity = $injector->getInstance('Horde_Core_Factory_Identity')->create(); 20$fullname = $identity->getValue('fullname'); 21if (empty($fullname)) { 22 $fullname = $registry->getAuth(); 23} 24 25$links = $mobile_links = array(); 26foreach (array_diff($registry->listApps(), array('horde')) as $app) { 27 $name = $registry->get('name', $app); 28 $tmp = array( 29 new Horde_Core_Smartmobile_Url(Horde::url($registry->getInitialPage($app))), 30 $registry->get('icon', $app) 31 ); 32 if ($registry->hasView($registry::VIEW_SMARTMOBILE, $app)) { 33 $mobile_links[$name] = $tmp; 34 } else { 35 $links[$name] = $tmp; 36 } 37} 38ksort($links, SORT_LOCALE_STRING); 39ksort($mobile_links, SORT_LOCALE_STRING); 40 41$notification->notify(array('listeners' => 'status')); 42 43$page_output->header(array( 44 'title' => _("Welcome"), 45 'view' => $registry::VIEW_SMARTMOBILE 46)); 47require HORDE_TEMPLATES . '/portal/smartmobile.inc'; 48$page_output->footer(); 49