[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Definition of eZStepSecurity class 4 // 5 // Created on: <13-Aug-2003 10:42:32 kk> 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 ezstep_security.php 30 */ 31 include_once ( 'kernel/setup/steps/ezstep_installer.php'); 32 include_once ( "kernel/common/i18n.php" ); 33 34 /*! 35 \class eZStepSecurity ezstep_security.php 36 \brief The class eZStepSecurity does 37 38 */ 39 40 class eZStepSecurity extends eZStepInstaller 41 { 42 /*! 43 Constructor 44 */ 45 function eZStepSecurity( &$tpl, &$http, &$ini, &$persistenceList ) 46 { 47 $this->eZStepInstaller( $tpl, $http, $ini, $persistenceList, 48 'security', 'Security' ); 49 } 50 51 /*! 52 \reimp 53 */ 54 function processPostData() 55 { 56 return true; // Always continue 57 } 58 59 /*! 60 \reimp 61 */ 62 function init() 63 { 64 if ( $this->hasKickstartData() ) 65 { 66 $data = $this->kickstartData(); 67 68 return $this->kickstartContinueNextStep(); 69 } 70 71 if ( file_exists( '.htaccess' ) ) 72 { 73 return true; 74 } 75 include_once ( 'lib/ezutils/classes/ezsys.php' ); 76 return eZSys::indexFileName() == '' ; // If in virtual host mode, continue (return true) 77 } 78 79 /*! 80 \reimp 81 */ 82 function &display() 83 { 84 $this->Tpl->setVariable( 'setup_previous_step', 'Security' ); 85 $this->Tpl->setVariable( 'setup_next_step', 'Registration' ); 86 87 $this->Tpl->setVariable( 'path', realpath( '.' ) ); 88 89 // Return template and data to be shown 90 $result = array(); 91 // Display template 92 $result['content'] = $this->Tpl->fetch( 'design:setup/init/security.tpl' ); 93 $result['path'] = array( array( 'text' => ezi18n( 'design/standard/setup/init', 94 'Securing site' ), 95 'url' => false ) ); 96 return $result; 97 } 98 } 99 100 ?>
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 |