Annotation of /mambo/branches/4.6/administrator/components/com_modules/toolbar.modules.php
Parent Directory
|
Revision Log
Revision 1396 - (view) (download)
| 1 : | root | 1 | <?php |
| 2 : | /** | ||
| 3 : | elpie | 964 | * @package Mambo |
| 4 : | root | 1 | * @subpackage Modules |
| 5 : | ocs_cms | 1396 | * @author Mambo Foundation Inc see README.php |
| 6 : | * @copyright Mambo Foundation Inc. | ||
| 7 : | * See COPYRIGHT.php for copyright notices and details. | ||
| 8 : | * @license GNU/GPL Version 2, see LICENSE.php | ||
| 9 : | * Mambo is free software; you can redistribute it and/or | ||
| 10 : | * modify it under the terms of the GNU General Public License | ||
| 11 : | * as published by the Free Software Foundation; version 2 of the License. | ||
| 12 : | */ | ||
| 13 : | root | 1 | |
| 14 : | /** ensure this file is being included by a parent file */ | ||
| 15 : | defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); | ||
| 16 : | |||
| 17 : | require_once( $mainframe->getPath( 'toolbar_html' ) ); | ||
| 18 : | switch ($task) { | ||
| 19 : | |||
| 20 : | case 'editA': | ||
| 21 : | case 'edit': | ||
| 22 : | $cid = mosGetParam( $_POST, 'cid', 0 ); | ||
| 23 : | if ( !is_array( $cid ) ){ | ||
| 24 : | $mid = mosGetParam( $_POST, 'id', 0 );; | ||
| 25 : | } else { | ||
| 26 : | $mid = $cid[0]; | ||
| 27 : | } | ||
| 28 : | |||
| 29 : | $published = 0; | ||
| 30 : | if ( $mid ) { | ||
| 31 : | $query = "SELECT published FROM #__modules WHERE id='$mid'"; | ||
| 32 : | $database->setQuery( $query ); | ||
| 33 : | $published = $database->loadResult(); | ||
| 34 : | } | ||
| 35 : | $cur_template = $mainframe->getTemplate(); | ||
| 36 : | TOOLBAR_modules::_EDIT( $cur_template, $published ); | ||
| 37 : | break; | ||
| 38 : | |||
| 39 : | case 'new': | ||
| 40 : | TOOLBAR_modules::_NEW(); | ||
| 41 : | break; | ||
| 42 : | |||
| 43 : | default: | ||
| 44 : | TOOLBAR_modules::_DEFAULT(); | ||
| 45 : | break; | ||
| 46 : | } | ||
| 47 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

