| 12 |
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); |
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); |
| 13 |
|
|
| 14 |
require_once( $mainframe->getPath( 'front_html', 'com_content' ) ); |
require_once( $mainframe->getPath( 'front_html', 'com_content' ) ); |
| 15 |
|
require_once($mainframe->getPath('class')); |
| 16 |
|
|
| 17 |
$id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); |
$id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); |
| 18 |
$sectionid = intval( mosGetParam( $_REQUEST, 'sectionid', 0 ) ); |
$sectionid = intval( mosGetParam( $_REQUEST, 'sectionid', 0 ) ); |
| 320 |
$sectionid = $category->section; |
$sectionid = $category->section; |
| 321 |
} |
} |
| 322 |
|
|
| 323 |
|
$pathway = mosPathway::getInstance(); |
| 324 |
|
$pathway->addItem($category->title, categoryURL($sectionid, $id)); |
| 325 |
|
|
| 326 |
if ( $access->canEdit ) { |
if ( $access->canEdit ) { |
| 327 |
$xwhere = ''; |
$xwhere = ''; |
| 328 |
$xwhere2 = "\n AND b.state >= '0'"; |
$xwhere2 = "\n AND b.state >= '0'"; |
| 771 |
$i = $limitstart; |
$i = $limitstart; |
| 772 |
|
|
| 773 |
// needed to reduce queries used by getItemid |
// needed to reduce queries used by getItemid |
| 774 |
$ItemidCount['bs'] = $mainframe->getBlogSectionCount(); |
require_once(mamboCore::get('mosConfig_absolute_path').'/components/com_content/content.class.php'); |
| 775 |
$ItemidCount['bc'] = $mainframe->getBlogCategoryCount(); |
$handler =& new contentHandler(); |
| 776 |
$ItemidCount['gbs'] = $mainframe->getGlobalBlogSectionCount(); |
$ItemidCount['bs'] = $handler->getBlogSectionCount(); |
| 777 |
|
$ItemidCount['bc'] = $handler->getBlogCategoryCount(); |
| 778 |
|
$ItemidCount['gbs'] = $handler->getGlobalBlogSectionCount(); |
| 779 |
|
|
| 780 |
// used to display section/catagory description text and images |
// used to display section/catagory description text and images |
| 781 |
// currently not supported in Archives |
// currently not supported in Archives |
| 991 |
$row = NULL; |
$row = NULL; |
| 992 |
|
|
| 993 |
if ( $database->loadObject( $row ) ) { |
if ( $database->loadObject( $row ) ) { |
| 994 |
|
$pathway = mosPathway::getInstance(); |
| 995 |
|
$pathway->addItem($row->category, categoryURL($row->sectionid, $row->catid)); |
| 996 |
|
$pathway->addItem($row->title, ''); |
| 997 |
$params =& new mosParameters( $row->attribs ); |
$params =& new mosParameters( $row->attribs ); |
| 998 |
$params->set( 'intro_only', 0 ); |
$params->set( 'intro_only', 0 ); |
| 999 |
$params->def( 'back_button', $mainframe->getCfg( 'back_button' ) ); |
$params->def( 'back_button', $mainframe->getCfg( 'back_button' ) ); |
| 1238 |
$images = array(); |
$images = array(); |
| 1239 |
$folders = array(); |
$folders = array(); |
| 1240 |
$folders[] = mosHTML::makeOption( '/' ); |
$folders[] = mosHTML::makeOption( '/' ); |
| 1241 |
|
require_once($mosConfig_absolute_path.'/administrator/includes/mosAdminMenus.php'); |
| 1242 |
mosAdminMenus::ReadImages( $pathA, '/', $folders, $images ); |
mosAdminMenus::ReadImages( $pathA, '/', $folders, $images ); |
| 1243 |
// list of folders in images/stories/ |
// list of folders in images/stories/ |
| 1244 |
$lists['folders'] = mosAdminMenus::GetImageFolders( $folders, $pathL ); |
$lists['folders'] = mosAdminMenus::GetImageFolders( $folders, $pathL ); |
| 1616 |
|
|
| 1617 |
return $where; |
return $where; |
| 1618 |
} |
} |
| 1619 |
|
|
| 1620 |
|
function sectionURL ($sectionid) { |
| 1621 |
|
global $Itemid; |
| 1622 |
|
return "index.php?option=com_content&task=section&id=$sectionid&Itemid=$Itemid"; |
| 1623 |
|
} |
| 1624 |
|
|
| 1625 |
|
function categoryURL ($sectionid, $catid) { |
| 1626 |
|
global $Itemid; |
| 1627 |
|
return "index.php?option=com_content&task=category§ionid=$sectionid&id=$catid&Itemid=$Itemid"; |
| 1628 |
|
} |
| 1629 |
|
|
| 1630 |
?> |
?> |