| [ 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 22 if (basename($_SERVER['SCRIPT_NAME']) == '_bottom.php') exit; 23 24 if (count($m->user->webs) > 1): 25 // propose the switch form 26 $arry_sites = array(); 27 reset($m->user->webs); 28 foreach ($m->user->webs as $site => $score) { 29 $arry_sites[$m->user->wdata[$site]['website_name']] = $site; 30 } 31 ?> 32 <div id='switch'> 33 <form action='index.php' method='post' id='formSwitch'> 34 <p> 35 <span class="nowrap"><label for="switchid" 36 style="display:inline"><?php echo __('<strong>Current site</strong>:'); ?></label> 37 <?php echo form::combobox('switchid',$arry_sites,$m->user->website); ?> 38 <input type='submit' class="submit" value='<?php echo __('Change'); ?>' /> 39 <input name="goto" id="goto" type="submit" class="submit" value='<?php echo __('See the site'); ?>' /></span> 40 </p> 41 </form> 42 </div> 43 <?php else: ?> 44 <div id='switch'> 45 <p> 46 <?php echo __('<strong>Current site</strong>:'); ?> <a href="index.php?goto=1&switchid=<?php echo $m->user->website; ?>"><?php echo $m->user->wdata[$m->user->website]['website_name']; ?></a> 47 </p> 48 </div> 49 <?php endif;?> 50 51 52 </div> 53 </div> 54 <div id="footer"> 55 <a href="http://www.plume-cms.net/"><img 56 src="themes/<?php echo $_px_theme; ?>/images/plume-cms-powered.png" alt="PLUME CMS" /></a></div> 57 58 </body> 59 </html> 60 <?php 61 if (!empty($m->con) && is_object($m->con)) { 62 $m->con->close(); 63 } 64 showDebugInfo(); 65 ?> 66
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 |
|