VIEW buttons help you navigate:
Outline offers a bird's eye view;
Numbers and Labels show hotlinks you can click
to Jump to, or right click to Copy Link to;
Numbers show where you are.
Learn more.
frontend.php
150 ) {
$mosmsg = substr( $mosmsg, 0, 150 );
}
// mosmsg outputed within html
if ($mosmsg && !$popMessages && $browserCheck && $sessionCheck) {
echo "\n
$mosmsg
";
}
echo $GLOBALS['_MOS_OPTION']['buffer'];
// mosmsg outputed in JS Popup
if ($mosmsg && $popMessages && $browserCheck && $sessionCheck) {
echo "\n";
}
}
/**
* Utility functions and classes
*/
function mosLoadComponent( $name ) {
// set up some global variables for use by frontend components
global $mainframe, $database, $my, $acl;
global $task, $Itemid, $id, $option, $gid;
include( $mainframe->getCfg( 'absolute_path' )."/components/com_$name/$name.php" );
}
/**
* Cache some modules information
* @return array
*/
function &initModules() {
global $database, $my, $Itemid;
if (!isset( $GLOBALS['_MOS_MODULES'] )) {
$Itemid = intval($Itemid);
$check_Itemid = '';
if ($Itemid) {
$check_Itemid = "OR mm.menuid = " . (int) $Itemid;
}
$query = "SELECT id, title, module, position, content, showtitle, params"
. "\n FROM #__modules AS m"
. "\n INNER JOIN #__modules_menu AS mm ON mm.moduleid = m.id"
. "\n WHERE m.published = 1"
. "\n AND m.access <= ". (int) $my->gid
. "\n AND m.client_id != 1"
. "\n AND ( mm.menuid = 0 $check_Itemid )"
. "\n ORDER BY ordering";
$database->setQuery( $query );
$modules = $database->loadObjectList();
foreach ($modules as $module) {
$GLOBALS['_MOS_MODULES'][$module->position][] = $module;
}
}
return $GLOBALS['_MOS_MODULES'];
}
/**
* @param string THe template position
*/
function mosCountModules( $position='left' ) {
global $database, $my, $Itemid;
$tp = intval( mosGetParam( $_GET, 'tp', 0 ) );
if ($tp) {
return 1;
}
$modules =& initModules();
if (isset( $GLOBALS['_MOS_MODULES'][$position] )) {
return count( $GLOBALS['_MOS_MODULES'][$position] );
} else {
return 0;
}
}
/**
* @param string The position
* @param int The style. 0=normal, 1=horiz, -1=no wrapper
*/
function mosLoadModules( $position='left', $style=0 ) {
global $mosConfig_gzip, $mosConfig_absolute_path, $database, $my, $Itemid, $mosConfig_caching;
$tp = intval( mosGetParam( $_GET, 'tp', 0 ) );
if ($tp) {
echo '