[ Index ]

PHP Cross Reference of Mambo 4.6.5

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

title

Body

[close]

/includes/ -> frontend.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @author Mambo Foundation Inc see README.php
   5  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   6  * See COPYRIGHT.php for copyright notices and details.
   7  * @license GNU/GPL Version 2, see LICENSE.php
   8  *
   9  * Redistributions of files must retain the above copyright notice.
  10  *
  11  * Mambo is free software; you can redistribute it and/or
  12  * modify it under the terms of the GNU General Public License
  13  * as published by the Free Software Foundation; version 2 of the License.
  14  */
  15  
  16  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
  17  /**
  18  * Displays the capture output of the main element
  19  */
  20  function mosMainBody() {
  21      $handler =& mosComponentHandler::getInstance();
  22      $handler->mosMainBody();
  23  }
  24  /**
  25  * Utility functions and classes
  26  */
  27  function mosLoadComponent( $name ) {
  28      // set up some global variables for use by the frontend component
  29      global $mainframe, $database;
  30      include( $mainframe->getCfg( 'absolute_path' )."/components/com_$name/$name.php" );
  31  }
  32  /**
  33  * @param string THe template position
  34  */
  35  function mosCountModules( $position='left' ) {
  36      $handler =& mosModuleHandler::getInstance();
  37      return $handler->mosCountModules($position);
  38  }
  39  
  40  /**
  41  * @param string The position
  42  * @param int The style.  0=normal, 1=horiz, -1=no wrapper
  43  */
  44  function mosLoadModules( $position='left', $style=0 ) {
  45      $handler =& mosModuleHandler::getInstance();
  46      return $handler->mosLoadModules($position, $style);
  47  }
  48  /**
  49  * Assembles head tags
  50  */
  51  function mosShowHead($keys='', $exclude='') {
  52      $mainframe =& mosMainFrame::getInstance();
  53      $mainframe->mosShowHead($keys, $exclude);
  54  }
  55  ?>