Current Path : /var/www/html/clients/kampol.e-nk.ru/OLD/components/com_easygallery/ |
Current File : /var/www/html/clients/kampol.e-nk.ru/OLD/components/com_easygallery/easygallery.php |
<?php defined( '_VALID_MOS' ) or die( 'Restricted access' ); require_once( $mainframe->getPath('class') ); require_once( $mainframe->getPath('front_html') ); require_once( $mainframe->getCfg('absolute_path') . '/includes/patTemplate/patTemplate.php'); if(file_exists($mainframe->getCfg('absolute_path') . '/components/com_easygallery/language/'. $mainframe->getCfg('lang') . '.php')){ require_once($mainframe->getCfg('absolute_path') . '/components/com_easygallery/language/'. $mainframe->getCfg('lang') . '.php'); } else { require_once($mainframe->getCfg('absolute_path') . '/components/com_easygallery/language/english.php'); } /** Load menu parameters **/ $menu = new mosMenu( $database ); $menu->load( $Itemid ); $params = new mosParameters( $menu->params ); $params->def( 'item_navigation', $mainframe->getCfg( 'item_navigation' ) ); $params->def( 'back_button', $mainframe->getCfg( 'back_button' ) ); $params->def( 'popup', false ); $params->def( 'image_name', true ); $params->def( 'image_desc', true ); $task = mosGetParam($_REQUEST, 'task'); $limitstart = intval(mosGetParam($_REQUEST, 'limitstart')); $limit = intval(mosGetParam($_REQUEST, 'limit', $mainframe->getCfg('list_limit'))); $act = mosGetParam($_REQUEST, 'act'); $cid = mosGetParam($_REQUEST, 'cid', $params->get('cid', 0)); if(is_array($cid)) { $cid = $cid[0]; } $tmpl = new patTemplate(); $tmpl->setNameSpace('eg'); $tmpl->setBasedir($mainframe->getCfg('absolute_path').'/components/com_easygallery/template/'); switch ($task) { case 'view': photos::view($cid, $params); break; case 'catategory': default: categories::showFront($cid, $limitstart, $limit, $params); break; } /** * do not comment this out please, * have a look at the bottom of easygallery.html.php * for some comments */ HTML_easygallery::showCopyright(); ?>