Bug #3293 » 3293_module.patch
modules/mod_cblogin/mod_cblogin.php | ||
---|---|---|
$pms = $pms_type; // RC2 quick fix
|
||
if($pms != 0)
|
||
{
|
||
if ( class_exists( 'moscomprofilerUser', false ) ) {
|
||
$viewLevels = CBuser::getMyInstance()->getAuthorisedViewLevelsIds( ( checkJversion() >= 2 ? false : true ) );
|
||
} else {
|
||
// Compute View Level using CMS without loading cb.table and cb.database if they are not already loaded (e.g. when using this function in modules):
|
||
if ( checkJversion() >= 2 ) {
|
||
$viewLevels = JUser::getInstance()->getAuthorisedViewLevels();
|
||
} else {
|
||
$viewLevels = range( 0, $_CB_framework->myCmsGid() );
|
||
}
|
||
}
|
||
$cleanedANDpubAccess = ' AND published = 1 AND access IN (' . implode( ',', cbArrayToInts( $viewLevels ) ) . ')';
|
||
if ( checkJversion() >= 2 ) {
|
||
$cleanedANDpubAccess .= ' AND ' . $_CB_database->NameQuote( 'language' ) . ' IN ( ' . $_CB_database->Quote( $_CB_framework->getCfg( 'lang_tag' ) ) . ', ' . $_CB_database->Quote( '*' ) . ', ' . $_CB_database->Quote( '' ) . ' )';
|
||
}
|
||
switch ($pms) {
|
||
case 1:
|
||
$pmsnameprefix = "";
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."pms%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix."pms&page=index".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."pms%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix."pms&task=inbox".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery($query_pms_count);
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_uddeim%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_uddeim%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_uddeim&task=inbox".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."pms%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix."pms&page=inbox".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."pms%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix."pms&task=inbox".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."pms%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."pms%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix."pms&page=inbox".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = $_CB_database->loadResult();
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix."&func=showinbox".($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = intval($_CB_database->loadResult());
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix.($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
||
... | ... | |
$_CB_database->setQuery( $query_pms_count );
|
||
$total_pms = intval($_CB_database->loadResult());
|
||
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE published>=0 AND link LIKE '%com_".$pmsnameprefix."%'";
|
||
$query_pms_link = "SELECT id FROM #__menu WHERE link LIKE '%com_".$pmsnameprefix."%'" . $cleanedANDpubAccess;
|
||
$_CB_database->setQuery( $query_pms_link );
|
||
$pms_link_id = $_CB_database->loadResult();
|
||
$pms_link = "index.php?option=com_".$pmsnameprefix.($pms_link_id ? "&Itemid=".$pms_link_id : "");
|
- « Previous
- 1
- 2
- Next »