| Current Path : /var/www/iplanru/data/www/i-plan.ru/modules/mod_zoo_finder/ |
| Current File : /var/www/iplanru/data/www/i-plan.ru/modules/mod_zoo_finder/mod_zoo_finder.php |
<?php
// No direct access
defined( '_JEXEC' ) or die;
$document = JFactory::getDocument();
/*$document =& JFactory::getDocument();*/
//$document->addScript('/modules/mod_wfmenu/tmpl/code.js');
$document->addStyleSheet('/modules/mod_zoo_finder/tmpl/style.css');
require_once( $_SERVER['DOCUMENT_ROOT'].'/libraries/phpmorphy/src/common.php');
$dir = $_SERVER['DOCUMENT_ROOT'].'/libraries/phpmorphy/dicts';
$lang = 'ru_RU';
$opts = array( 'storage' => PHPMORPHY_STORAGE_MEM);
try {
$morphy = new phpMorphy($dir, $lang, $opts);
} catch(phpMorphy_Exception $e) {
die('Error occured while creating phpMorphy instance: ' . $e->getMessage());
}
jimport('zoolib.zoolib');
$zoolib = new ZooLib();
require_once( dirname( __FILE__ ) . '/helper.php' );
$path = htmlspecialchars( $params->get( 'path' ) );
$zootypes = htmlspecialchars( $params->get( 'zootypes' ) );
$mymenuitem = htmlspecialchars( $params->get( 'mymenuitem' ) );
$moduleclass_sfx = htmlspecialchars( $params->get( 'moduleclass_sfx' ) );
require( JModuleHelper::getLayoutPath( 'mod_zoo_finder', $params->get( 'layout', 'default' ) ) );