CoreFiles by mySites.guru
toolbar.modules.php51 lines, 1,334 bytes, from Joomla_1.0.7-Stable-Full_Package.zip
Raw History Compare with 1.0.6
md5
7d38fcb315e3757d9771d246a3db141a
sha1
4e6395ee35c14f7612e77fd9fe1a940cc4ae9a8a
sha256
97158d552d6b0125c8eb02398dcc78ff9ada593169fc307a82c0c96ccee4c31b
<?php
/**
* @version $Id: toolbar.modules.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @subpackage Modules
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

require_once( $mainframe->getPath( 'toolbar_html' ) );
switch ($task) {

	case 'editA':
	case 'edit':
		$cid = mosGetParam( $_POST, 'cid', 0 );
		if ( !is_array( $cid ) ){
			$mid = mosGetParam( $_POST, 'id', 0 );;
		} else {
			$mid = $cid[0];
		}

		$published = 0;
		if ( $mid ) {
			$query = "SELECT published"
			. "\n FROM #__modules"
			. "\n WHERE id = $mid"
			;
			$database->setQuery( $query );
			$published = $database->loadResult();
		}
		$cur_template = $mainframe->getTemplate();
		TOOLBAR_modules::_EDIT( $cur_template, $published );
		break;

	case 'new':
		TOOLBAR_modules::_NEW();
		break;

	default:
		TOOLBAR_modules::_DEFAULT();
		break;
}
?>

The same content is in 4 releases, Joomla 1.0.3 to 1.0.8. See them all, or every version of this file.