| 1144 |
* @return boolean True if the visitor's group at least equal to the menu access |
* @return boolean True if the visitor's group at least equal to the menu access |
| 1145 |
*/ |
*/ |
| 1146 |
function menuCheck( $Itemid, $menu_option, $task, $gid ) { |
function menuCheck( $Itemid, $menu_option, $task, $gid ) { |
| 1147 |
$exceptions = array ('com_banner', 'com_poll', 'com_registration', 'com_rss'); |
// Construct a link to this component - if no menu for it, assume it is OK |
|
if (in_array($menu_option, $exceptions)) return true; |
|
| 1148 |
$dblink="index.php?option=$menu_option"; |
$dblink="index.php?option=$menu_option"; |
| 1149 |
|
if ($this->getIDLikeLink($dblink) == 0) return true; |
| 1150 |
if ($Itemid) { |
if ($Itemid) { |
| 1151 |
$menu =& $this->getMenuByID($Itemid); |
$menu =& $this->getMenuByID($Itemid); |
| 1152 |
if (strpos($menu->link,$dblink) ===0) $access = $menu->access; |
if (strpos($menu->link,$dblink) ===0) $access = $menu->access; |
| 2512 |
ini_set('session.use_cookies', 1); |
ini_set('session.use_cookies', 1); |
| 2513 |
ini_set('session.use_only_cookies', 1); |
ini_set('session.use_only_cookies', 1); |
| 2514 |
|
|
| 2515 |
|
|
| 2516 |
if ($adminside) { |
if ($adminside) { |
| 2517 |
// Start ACL |
// Start ACL |
| 2518 |
require_once($configuration->rootPath().'/includes/gacl.class.php' ); |
require_once($configuration->rootPath().'/includes/gacl.class.php' ); |