[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: toolbar.modules.php 5014 2006-09-11 19:35:26Z friesengeist $ 4 * @package Joomla 5 * @subpackage Modules 6 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 7 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // no direct access 16 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 17 18 require_once( $mainframe->getPath( 'toolbar_html' ) ); 19 switch ($task) { 20 21 case 'editA': 22 case 'edit': 23 $cid = mosGetParam( $_POST, 'cid', 0 ); 24 if ( !is_array( $cid ) ){ 25 $mid = intval( mosGetParam( $_POST, 'id', 0 ) ); 26 } else { 27 $mid = $cid[0]; 28 } 29 30 $published = 0; 31 if ( $mid ) { 32 $query = "SELECT published" 33 . "\n FROM #__modules" 34 . "\n WHERE id = " . (int) $mid 35 ; 36 $database->setQuery( $query ); 37 $published = $database->loadResult(); 38 } 39 $cur_template = $mainframe->getTemplate(); 40 TOOLBAR_modules::_EDIT( $cur_template, $published ); 41 break; 42 43 case 'new': 44 TOOLBAR_modules::_NEW(); 45 break; 46 47 default: 48 TOOLBAR_modules::_DEFAULT(); 49 break; 50 } 51 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |