[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_templates/ -> toolbar.templates.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Templates
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  /** ensure this file is being included by a parent file */
  18  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  19  
  20  require_once( $mainframe->getPath( 'toolbar_html' ) );
  21  
  22  $client = mosGetParam( $_REQUEST, 'client', '' );
  23  
  24  switch ($task) {
  25  
  26      case "view":
  27          TOOLBAR_templates::_VIEW();
  28          break;
  29  
  30      case "edit_source":
  31          TOOLBAR_templates::_EDIT_SOURCE();
  32          break;
  33  
  34      case "edit_css":
  35          TOOLBAR_templates::_EDIT_CSS();
  36          break;
  37  
  38      case "assign":
  39          TOOLBAR_templates::_ASSIGN();
  40          break;
  41  
  42      case "positions":
  43          TOOLBAR_templates::_POSITIONS();
  44          break;
  45  
  46      default:
  47          TOOLBAR_templates::_DEFAULT($client);
  48          break;
  49  
  50  }
  51  ?>