[ Index ] |
|
Code source de Plume CMS 1.2.2 |
1 <?php 2 # ***** BEGIN LICENSE BLOCK ***** 3 # This file is part of Plume CMS, a website management application. 4 # Copyright (C) 2001-2005 Loic d'Anterroches and contributors. 5 # 6 # Plume CMS is free software; you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation; either version 2 of the License, or 9 # (at your option) any later version. 10 # 11 # Plume CMS is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public License 17 # along with this program; if not, write to the Free Software 18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 19 # 20 # ***** END LICENSE BLOCK ***** 21 require_once dirname(__FILE__).'/prepend.php'; 22 $_px_p = 20; //percentage of wizard done. 23 24 if (empty($_SESSION['step2'])) { 25 header('Location: check.php'); 26 exit; 27 } 28 29 //load the language file 30 $_PX_config['encoding'] = 'utf-8'; 31 $l = new l10n($_SESSION['lang'], 'install'); 32 33 $manager_langs = l10n::getAvailableLocales(); 34 $isocodes = l10n::getIsoCodes(); 35 36 $mlangs = array(); //list of languages for the manager 37 38 reset($manager_langs); 39 foreach ($manager_langs as $iso) { 40 $mlangs[$isocodes[$iso]] = $iso; 41 } 42 43 if (!empty($_POST['mlang'])) { 44 $_SESSION['manager_encoding'] = 'utf-8'; 45 $_SESSION['manager_lang'] = $_POST['mlang']; 46 $_SESSION['step3'] = true; 47 header('Location: dbinfo.php'); 48 exit; 49 } 50 51 include dirname(__FILE__).'/_top.php'; 52 53 echo '<form action="encoding.php" method="post" id="formPost">'."\n\n"; 54 55 echo '<h2>'.__('Default language for the manager').'</h2>'."\n\n"; 56 57 echo '<p>'.__('The default language of the manager is the one the users entering the manager for the first time will see. At any time they can change it in their preferences.').'</p>'."\n\n"; 58 ?> 59 <p class="field"> 60 <label class="float" for="mlang" style="display:inline"><?php echo __('Default manager language:'); ?></label> 61 <?php echo form::combobox('mlang', $mlangs, $_SESSION['lang']); ?> 62 <input name="next" type="submit" class="submit" value="<?php echo __('Next'); ?>" accesskey="n" /> 63 </p> 64 </form> 65 66 <?php 67 include dirname(__FILE__).'/_bottom.php'; 68 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 11:57:01 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |