[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of Toolbarlist class 4 // 5 // Created on: <05-Mar-2004 13:05:16 wy> 6 // 7 // SOFTWARE NAME: eZ publish 8 // SOFTWARE RELEASE: 3.9.0 9 // BUILD VERSION: 17785 10 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 11 // SOFTWARE LICENSE: GNU General Public License v2.0 12 // NOTICE: > 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of version 2.0 of the GNU General 15 // Public License as published by the Free Software Foundation. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of version 2.0 of the GNU General 23 // Public License along with this program; if not, write to the Free 24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 25 // MA 02110-1301, USA. 26 // 27 // 28 29 /*! \file toolbarlist.php 30 */ 31 32 include_once ( "kernel/common/template.php" ); 33 include_once ( 'lib/ezutils/classes/ezhttptool.php' ); 34 35 $http =& eZHTTPTool::instance(); 36 37 $currentSiteAccess = false; 38 if ( $http->hasSessionVariable( 'eZTemplateAdminCurrentSiteAccess' ) ) 39 $currentSiteAccess = $http->sessionVariable( 'eZTemplateAdminCurrentSiteAccess' ); 40 41 $module =& $Params["Module"]; 42 if ( $Params['SiteAccess'] ) 43 $currentSiteAccess = $Params['SiteAccess']; 44 45 $ini =& eZINI::instance(); 46 $siteAccessList = $ini->variable( 'SiteAccessSettings', 'AvailableSiteAccessList' ); 47 48 if ( $http->hasPostVariable( 'CurrentSiteAccess' ) ) 49 $currentSiteAccess = $http->postVariable( 'CurrentSiteAccess' ); 50 51 if ( !in_array( $currentSiteAccess, $siteAccessList ) ) 52 $currentSiteAccess = $siteAccessList[0]; 53 54 if ( $http->hasPostVariable( 'SelectCurrentSiteAccessButton' ) ) 55 { 56 $http->setSessionVariable( 'eZTemplateAdminCurrentSiteAccess', $currentSiteAccess ); 57 } 58 59 $toolbarIni =& eZINI::instance( "toolbar.ini", null, null, null, true ); 60 $toolbarIni->prependOverrideDir( "siteaccess/$currentSiteAccess", false, 'siteaccess' ); 61 $toolbarIni->loadCache(); 62 63 if ( $toolbarIni->hasVariable( "Toolbar", "AvailableToolBarArray" ) ) 64 { 65 $toolbarArray = $toolbarIni->variable( "Toolbar", "AvailableToolBarArray" ); 66 } 67 $tpl =& templateInit(); 68 69 $tpl->setVariable( 'toolbar_list', $toolbarArray ); 70 $tpl->setVariable( 'siteaccess_list', $siteAccessList ); 71 $tpl->setVariable( 'current_siteaccess', $currentSiteAccess ); 72 73 $Result = array(); 74 $Result['content'] =& $tpl->fetch( "design:visual/toolbarlist.tpl" ); 75 $Result['path'] = array( array( 'url' => false, 76 'text' => ezi18n( 'design/standard/toolbar', 'Toolbar management' ) ) ); 77 78 79 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |