Menu Content/Inhalt
Home arrow Galeria
registerFunction( 'onPrepareContent', 'botModulebot' ); function botModulebot( $published, &$row, &$params, $page=0 ) { if ( !$published ) { return true; } global $mosConfig_gzip, $mosConfig_absolute_path, $database, $my, $Itemid, $mosConfig_caching,$gid; $cache =& mosCache::getCache( 'com_content' ); require_once( $mosConfig_absolute_path . '/includes/frontend.html.php' ); $Itemid = mosGetParam( $_REQUEST, 'Itemid',NULL); $entrytext = $row->text; $matches = array(); preg_match_all("/{modulebot:.+?}/", $entrytext, $matches, PREG_PATTERN_ORDER); foreach ($matches[0] as $match) { $items = array(); $match_old=$match; $match = str_replace("{modulebot:", "", $match); $match = str_replace("}", "", $match); $items = explode(",", $match); $i=0; foreach ($items as $item) { $database->setQuery( "SELECT * FROM #__modules WHERE id='$item' AND published>='0' AND access <= '".$gid."'"); $modules=$database->loadobjectList(); foreach ($modules as $module) { $pars = new mosParameters( $module->params); ob_start(); echo "\n"; echo "\n"; if ((substr("$module->module",0,4))=="mod_") { echo ""; } echo "\n
"; modules_html::module2( $module, $pars, $Itemid, 1, 1); echo "
\n"; $str.=ob_get_contents(); ob_end_clean(); } } $row->text = preg_replace("/".$match_old."/",$str, $row->text); } } ?>

Logowanie






Nie pamiętasz hasła?
Konto? Zarejestruj się!

Alpy Julijskie

129_na_grani_triglava.jpg

Ulubione

 
 

Tag Cloud

alp bohinj dom planika glava kamera kredarica mapy mojstrana nocleg pogoda rudno polje schr trigla triglav triglavski
designed by www.madeyourweb.com | joomla templates