menutype ? strval( $params->menutype ) : $params->get( 'menutype' ); $menu = @$menu ? $menu: "mainmenu"; $id = @$params->moduleID ? intval( $params->moduleID ) : $params->get( 'moduleID' ); $id = @$id ? $id : 0; $menustyle = @$params->menustyle ? strval( $params->menustyle ) : $params->get( 'menustyle' ); $menustyle = @$menustyle ? $menustyle : "popoutmenu"; $parent_level = @$params->get('parent_level') ? intval( $params->get('parent_level') ) : 0; $levels = @$params->get('levels') ? intval( $params->get('levels') ) : 25; $parent_id = @$params->get('parentid') ? intval( $params->get('parentid') ) : 0; $active_menu = @$params->get('active_menu') ? intval( $params->get('active_menu') ) : 0; $hybrid = @$params->get('hybrid') ? intval( $params->get('hybrid') ) : 0; $use_tables = @$params->get('onload_hack') ? intval( $params->get('onload_hack') ) : 0; $editor_hack = @$params->get('editor_hack') ? intval( $params->get('editor_hack') ) : 0; $sub_indicator = @$params->get('sub_indicator') ? intval( $params->get('sub_indicator') ) : 0; //$use_default_parent = @$params->get('usecontent') ? strval( $params->get('usecontent') ) : 0; $my_task = trim( mosGetParam( $_REQUEST, 'task', 0 ) ); if(($my_task!="edit" || $my_task!="new") && $editor_hack) { $editor_hack=0; } $query = "SELECT * FROM #__swmenu_config WHERE id = ".$id; $database->setQuery( $query ); $new_data = $database->query(); $swmenupro= mysql_fetch_assoc($new_data); if($menu && $id && $menustyle){ global $mosConfig_lang, $mosConfig_mbf_content; $swmenupro_array=array(); $now = date( "Y-m-d H:i:s", time()+$mosConfig_offset*60*60 ); if ($mosConfig_shownoauth==2) { $sql = "SELECT #__menu.* , #__swmenu_extended.* FROM #__menu LEFT JOIN #__swmenu_extended ON #__menu.id = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) WHERE #__menu.menutype = ".$menu." AND published = 1 ORDER BY parent, ordering "; } else { if ($menu=="swcontentmenu"){ $sql = "SELECT #__sections.* , #__swmenu_extended.* FROM #__sections LEFT JOIN #__swmenu_extended ON #__sections.id = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__content ON #__content.sectionid = #__sections.id AND #__sections.published = 1 AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'section', $mosConfig_lang); } if($use_tables){ $url="index.php?option=com_content&task=section&id=" . $result2->id ; }else{ $url="index.php?option=com_content&task=blogsection&id=" . $result2->id ; } $swmenupro_array[] =array("TITLE" => $result2->title, "URL" => $url , "ID" => $result2->id , "PARENT" => 0 , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => 0 ); } $sql = "SELECT #__categories.* , #__swmenu_extended.* FROM #__categories LEFT JOIN #__swmenu_extended ON (#__categories.id+1000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__content ON #__content.catid = #__categories.id AND #__categories.published = 1 AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'category', $mosConfig_lang); } //$url="index.php?option=com_content&task=blogcategory&id=" . $result2->id; if($use_tables){ $url="index.php?option=com_content&task=category&id=" . $result2->id ; }else{ $url="index.php?option=com_content&task=blogcategory&id=" . $result2->id ; } $swmenupro_array[] =array("TITLE" => $result2->title, "URL" => $url , "ID" => $result2->id+1000 , "PARENT" => $result2->section , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => 0 ); } $sql = "SELECT #__content.* , #__swmenu_extended.* FROM #__content LEFT JOIN #__swmenu_extended ON (#__content.id+10000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__categories ON #__content.catid = #__categories.id AND #__content.state = 1 AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'content', $mosConfig_lang); } $url="index.php?option=com_content&task=view&id=" . $result2->id ; $swmenupro_array[] =array("TITLE" => $result2->title, "URL" => $url , "ID" => $result2->id+10000 , "PARENT" => $result2->catid+1000 , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => 0 ); } }else{ $sql = "SELECT #__menu.* , #__swmenu_extended.* FROM #__menu LEFT JOIN #__swmenu_extended ON #__menu.id = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) WHERE #__menu.menutype = '".$menu."' AND published = '1' AND access <= '$my->gid' ORDER BY parent, ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); $swmenupro_array=array(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'menu', $mosConfig_lang); } switch ($result2->type) { case 'separator'; //$result2->link = "seperator"; break; case 'url': if (eregi( "index.php\?", $result2->link )) { if (!eregi( "Itemid=", $result2->link )) { $result2->link .= "&Itemid=$result2->id"; } } break; default: $result2->link .= "&Itemid=$result2->id"; break; } //$result2->link = str_replace( '&', '&', $result2->link ); $swmenupro_array[] =array("TITLE" => $result2->name, "URL" => $result2->link , "ID" => $result2->id , "PARENT" => $result2->parent , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => $result2->browserNav ); if ($hybrid){ parse_str($result2->link, $opt); $opt['task'] = @$opt['task'] ? $opt['task']: 0; $opt['id'] = @$opt['id'] ? $opt['id']: 0; if ($opt['task']=="blogcategory" || $opt['task']=="category" ) { //$sql = "SELECT #__content.* FROM #__content WHERE #__content.catid=".$opt['id']; $sql = "SELECT #__content.* , #__swmenu_extended.* FROM #__content LEFT JOIN #__swmenu_extended ON (#__content.id+10000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__categories ON #__content.catid = #__categories.id AND #__content.state = 1 AND #__content.catid=".$opt['id']." AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result3 = $database->loadObjectList(); foreach ($result3 as $result4) { if ($mosConfig_mbf_content) { $result4 = MambelFish::translate( $result4, 'content', $mosConfig_lang); } $url="index.php?option=com_content&task=view&id=" . $result4->id."&Itemid=".$result2->id ; $swmenupro_array[] =array("TITLE" => $result4->title, "URL" => $url , "ID" => $result4->id+10000 , "PARENT" => $result2->id , "ORDER" => $result4->ordering, "IMAGE" => $result4->image, "IMAGEOVER" => $result4->image_over, "SHOWNAME" => $result4->show_name, "IMAGEALIGN" => $result4->image_align, "TARGETLEVEL" => $result4->target_level, "TARGET" => 0 ); } } if ($opt['task']=="blogsection" || $opt['task']=="section" ) { //$sql = "SELECT #__categories.* FROM #__categories WHERE #__categories.section=".$opt['id']." AND #__categories.published = 1"; $sql = "SELECT #__categories.*, #__swmenu_extended.* FROM #__categories LEFT JOIN #__swmenu_extended ON (#__categories.id+10000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__content ON #__content.catid = #__categories.id AND #__categories.section=".$opt['id']." AND #__categories.access <= ".$my->gid." AND #__categories.published = 1 AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__categories.ordering "; $database->setQuery( $sql ); $result3 = $database->loadObjectList(); foreach ($result3 as $result4) { if ($mosConfig_mbf_content) { $result4 = MambelFish::translate( $result4, 'content', $mosConfig_lang); } if($use_tables){ $url="index.php?option=com_content&task=category&id=" . $result4->id."&Itemid=".$result2->id ; }else{ $url="index.php?option=com_content&task=blogcategory&id=" . $result4->id."&Itemid=".$result2->id ; } // $url="index.php?option=com_content&task=blogcategory&id=" . $result4->id."&Itemid=".$result2->id; $swmenupro_array[] =array("TITLE" => $result4->title, "URL" => $url , "ID" => $result4->id+1000 , "PARENT" => $result2->id , "ORDER" => $result4->ordering, "IMAGE" => $result4->image, "IMAGEOVER" => $result4->image_over, "SHOWNAME" => $result4->show_name, "IMAGEALIGN" => $result4->image_align, "TARGETLEVEL" => $result4->target_level, "TARGET" => 0 ); //$sql = "SELECT #__content.* FROM #__content WHERE #__content.catid=".$result4->id." AND #__content.state = 1"; $sql = "SELECT #__content.*, #__swmenu_extended.* FROM #__content LEFT JOIN #__swmenu_extended ON (#__content.id+100000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__categories ON #__content.catid = #__categories.id AND #__content.state = 1 AND #__content.catid=".$result4->id." AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result5 = $database->loadObjectList(); foreach ($result5 as $result6) { if ($mosConfig_mbf_content) { $result6 = MambelFish::translate( $result6, 'content', $mosConfig_lang); } $url="index.php?option=com_content&task=view&id=" . $result6->id."&Itemid=".$result2->id; $swmenupro_array[] =array("TITLE" => $result6->title, "URL" => $url , "ID" => $result6->id+10000 , "PARENT" => $result4->id+1000 , "ORDER" => $result6->ordering, "IMAGE" => $result6->image, "IMAGEOVER" => $result6->image_over, "SHOWNAME" => $result6->show_name, "IMAGEALIGN" => $result6->image_align, "TARGETLEVEL" => $result6->target_level, "TARGET" => 0 ); } } } } } } } $i=0; $menudisplay=0; if (count($swmenupro_array)){ foreach ($swmenupro_array as $row){ if (strcasecmp(substr($swmenupro_array[$i]['URL'],0,4),"http")) { $swmenupro_array[$i]['URL'] = sefRelToAbs($swmenupro_array[$i]['URL']); } // $swmenupro_array[$i]['URL'] = str_replace( '&', '&', $swmenupro_array[$i]['URL'] ); $i++; if (($row['PARENT']==$parent_id )){ $menudisplay=1; } } if ($menudisplay==1){ $ordered = chain('ID', 'PARENT', 'ORDER', $swmenupro_array, $parent_id, $levels); } }else{ $ordered = array(); $menudisplay=0; } $option2 = trim( mosGetParam( $_REQUEST, 'option', 0 ) ); $id = trim( mosGetParam( $_REQUEST, 'id', 0 ) ); $Item_id = trim( mosGetParam( $_REQUEST, 'Itemid', 0 ) ); if ($parent_level){ $i=0; $indent=0; $menudisplay=0; $reordered = array(); $parent=1; if (($menu=="swcontentmenu") && ($option2=="com_content") && $id){ $parent_value=$id; }elseif ($menu=="swcontentmenu" ){ $parent=0; }else{ $parent_value=$Itemid; $menudisplay=0; $parent=1; } $id=0; //echo "parent ".$parent_value; while ($parent){ foreach ($ordered as $row){ if (($row['ID']==$parent_value || $row['ID']==$parent_value+1000 || $row['ID']==$parent_value+10000)){ $parent_value = $row['PARENT']; $indent = $row['indent']; $id=$row['ID']; } } if ($indent == $parent_level){ $parent=0; $id=$parent_value; }elseif($indent == $parent_level-1){ $parent=0; //$id=$parent_value; }elseif($indent < $parent_level-1){ $parent=0; if ($parent_level==2 ){ $id = $id; }else{$id=0;} } $i++; if ($i > $levels){$parent=0;} } foreach ($ordered as $row){ if (($row['PARENT']==$id)){ $menudisplay=1; } if (($row['PARENT']==$id-1000)){ $menudisplay=1; } } if ($menudisplay ){ $ordered = chain('ID', 'PARENT', 'ORDER', $ordered, $id, $levels); if ($menustyle == "clickmenu"){doClickMenu($ordered, $swmenupro);} if ($menustyle == "treemenu"){doTreeMenu($ordered, $swmenupro);} if ($menustyle == "popoutmenu"){doPopoutMenu($ordered, $swmenupro);} if ($menustyle == "gosumenu" && !$editor_hack){doGosuMenu($ordered, $swmenupro, $active_menu);} if ($menustyle == "transmenu"){doTransMenu($ordered, $swmenupro, $active_menu, $sub_indicator, $parent_id);} if ($menustyle == "tabmenu"){doTabMenu($ordered, $swmenupro, $parent_id);} if ($menustyle == "flatmenu"){doFlatMenu($ordered, $swmenupro);} } }elseif($menudisplay){ if ($menustyle == "clickmenu"){doClickMenu($ordered, $swmenupro);} if ($menustyle == "treemenu"){doTreeMenu($ordered, $swmenupro);} if ($menustyle == "popoutmenu"){doPopoutMenu($ordered, $swmenupro);} if ($menustyle == "gosumenu" && !$editor_hack){doGosuMenu($ordered, $swmenupro, $active_menu);} if ($menustyle == "transmenu"){doTransMenu($ordered, $swmenupro, $active_menu, $sub_indicator, $parent_id);} if ($menustyle == "tabmenu"){doTabMenu($ordered, $swmenupro, $parent_id);} if ($menustyle == "flatmenu"){doFlatMenu($ordered, $swmenupro);} } } ?>
menutype ? strval( $params->menutype ) : $params->get( 'menutype' ); $menu = @$menu ? $menu: "mainmenu"; $id = @$params->moduleID ? intval( $params->moduleID ) : $params->get( 'moduleID' ); $id = @$id ? $id : 0; $menustyle = @$params->menustyle ? strval( $params->menustyle ) : $params->get( 'menustyle' ); $menustyle = @$menustyle ? $menustyle : "popoutmenu"; $parent_level = @$params->get('parent_level') ? intval( $params->get('parent_level') ) : 0; $levels = @$params->get('levels') ? intval( $params->get('levels') ) : 25; $parent_id = @$params->get('parentid') ? intval( $params->get('parentid') ) : 0; $active_menu = @$params->get('active_menu') ? intval( $params->get('active_menu') ) : 0; $hybrid = @$params->get('hybrid') ? intval( $params->get('hybrid') ) : 0; $use_tables = @$params->get('onload_hack') ? intval( $params->get('onload_hack') ) : 0; $editor_hack = @$params->get('editor_hack') ? intval( $params->get('editor_hack') ) : 0; $sub_indicator = @$params->get('sub_indicator') ? intval( $params->get('sub_indicator') ) : 0; //$use_default_parent = @$params->get('usecontent') ? strval( $params->get('usecontent') ) : 0; $my_task = trim( mosGetParam( $_REQUEST, 'task', 0 ) ); if(($my_task!="edit" || $my_task!="new") && $editor_hack) { $editor_hack=0; } $query = "SELECT * FROM #__swmenu_config WHERE id = ".$id; $database->setQuery( $query ); $new_data = $database->query(); $swmenupro= mysql_fetch_assoc($new_data); if($menu && $id && $menustyle){ global $mosConfig_lang, $mosConfig_mbf_content; $swmenupro_array=array(); $now = date( "Y-m-d H:i:s", time()+$mosConfig_offset*60*60 ); if ($mosConfig_shownoauth==2) { $sql = "SELECT #__menu.* , #__swmenu_extended.* FROM #__menu LEFT JOIN #__swmenu_extended ON #__menu.id = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) WHERE #__menu.menutype = ".$menu." AND published = 1 ORDER BY parent, ordering "; } else { if ($menu=="swcontentmenu"){ $sql = "SELECT #__sections.* , #__swmenu_extended.* FROM #__sections LEFT JOIN #__swmenu_extended ON #__sections.id = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__content ON #__content.sectionid = #__sections.id AND #__sections.published = 1 AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'section', $mosConfig_lang); } if($use_tables){ $url="index.php?option=com_content&task=section&id=" . $result2->id ; }else{ $url="index.php?option=com_content&task=blogsection&id=" . $result2->id ; } $swmenupro_array[] =array("TITLE" => $result2->title, "URL" => $url , "ID" => $result2->id , "PARENT" => 0 , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => 0 ); } $sql = "SELECT #__categories.* , #__swmenu_extended.* FROM #__categories LEFT JOIN #__swmenu_extended ON (#__categories.id+1000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__content ON #__content.catid = #__categories.id AND #__categories.published = 1 AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'category', $mosConfig_lang); } //$url="index.php?option=com_content&task=blogcategory&id=" . $result2->id; if($use_tables){ $url="index.php?option=com_content&task=category&id=" . $result2->id ; }else{ $url="index.php?option=com_content&task=blogcategory&id=" . $result2->id ; } $swmenupro_array[] =array("TITLE" => $result2->title, "URL" => $url , "ID" => $result2->id+1000 , "PARENT" => $result2->section , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => 0 ); } $sql = "SELECT #__content.* , #__swmenu_extended.* FROM #__content LEFT JOIN #__swmenu_extended ON (#__content.id+10000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__categories ON #__content.catid = #__categories.id AND #__content.state = 1 AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'content', $mosConfig_lang); } $url="index.php?option=com_content&task=view&id=" . $result2->id ; $swmenupro_array[] =array("TITLE" => $result2->title, "URL" => $url , "ID" => $result2->id+10000 , "PARENT" => $result2->catid+1000 , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => 0 ); } }else{ $sql = "SELECT #__menu.* , #__swmenu_extended.* FROM #__menu LEFT JOIN #__swmenu_extended ON #__menu.id = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) WHERE #__menu.menutype = '".$menu."' AND published = '1' AND access <= '$my->gid' ORDER BY parent, ordering "; $database->setQuery( $sql ); $result = $database->loadObjectList(); $swmenupro_array=array(); foreach ($result as $result2) { if ($mosConfig_mbf_content) { $result2 = MambelFish::translate( $result2, 'menu', $mosConfig_lang); } switch ($result2->type) { case 'separator'; //$result2->link = "seperator"; break; case 'url': if (eregi( "index.php\?", $result2->link )) { if (!eregi( "Itemid=", $result2->link )) { $result2->link .= "&Itemid=$result2->id"; } } break; default: $result2->link .= "&Itemid=$result2->id"; break; } //$result2->link = str_replace( '&', '&', $result2->link ); $swmenupro_array[] =array("TITLE" => $result2->name, "URL" => $result2->link , "ID" => $result2->id , "PARENT" => $result2->parent , "ORDER" => $result2->ordering, "IMAGE" => $result2->image, "IMAGEOVER" => $result2->image_over, "SHOWNAME" => $result2->show_name, "IMAGEALIGN" => $result2->image_align, "TARGETLEVEL" => $result2->target_level, "TARGET" => $result2->browserNav ); if ($hybrid){ parse_str($result2->link, $opt); $opt['task'] = @$opt['task'] ? $opt['task']: 0; $opt['id'] = @$opt['id'] ? $opt['id']: 0; if ($opt['task']=="blogcategory" || $opt['task']=="category" ) { //$sql = "SELECT #__content.* FROM #__content WHERE #__content.catid=".$opt['id']; $sql = "SELECT #__content.* , #__swmenu_extended.* FROM #__content LEFT JOIN #__swmenu_extended ON (#__content.id+10000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__categories ON #__content.catid = #__categories.id AND #__content.state = 1 AND #__content.catid=".$opt['id']." AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result3 = $database->loadObjectList(); foreach ($result3 as $result4) { if ($mosConfig_mbf_content) { $result4 = MambelFish::translate( $result4, 'content', $mosConfig_lang); } $url="index.php?option=com_content&task=view&id=" . $result4->id."&Itemid=".$result2->id ; $swmenupro_array[] =array("TITLE" => $result4->title, "URL" => $url , "ID" => $result4->id+10000 , "PARENT" => $result2->id , "ORDER" => $result4->ordering, "IMAGE" => $result4->image, "IMAGEOVER" => $result4->image_over, "SHOWNAME" => $result4->show_name, "IMAGEALIGN" => $result4->image_align, "TARGETLEVEL" => $result4->target_level, "TARGET" => 0 ); } } if ($opt['task']=="blogsection" || $opt['task']=="section" ) { //$sql = "SELECT #__categories.* FROM #__categories WHERE #__categories.section=".$opt['id']." AND #__categories.published = 1"; $sql = "SELECT #__categories.*, #__swmenu_extended.* FROM #__categories LEFT JOIN #__swmenu_extended ON (#__categories.id+10000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__content ON #__content.catid = #__categories.id AND #__categories.section=".$opt['id']." AND #__categories.access <= ".$my->gid." AND #__categories.published = 1 AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__categories.ordering "; $database->setQuery( $sql ); $result3 = $database->loadObjectList(); foreach ($result3 as $result4) { if ($mosConfig_mbf_content) { $result4 = MambelFish::translate( $result4, 'content', $mosConfig_lang); } if($use_tables){ $url="index.php?option=com_content&task=category&id=" . $result4->id."&Itemid=".$result2->id ; }else{ $url="index.php?option=com_content&task=blogcategory&id=" . $result4->id."&Itemid=".$result2->id ; } // $url="index.php?option=com_content&task=blogcategory&id=" . $result4->id."&Itemid=".$result2->id; $swmenupro_array[] =array("TITLE" => $result4->title, "URL" => $url , "ID" => $result4->id+1000 , "PARENT" => $result2->id , "ORDER" => $result4->ordering, "IMAGE" => $result4->image, "IMAGEOVER" => $result4->image_over, "SHOWNAME" => $result4->show_name, "IMAGEALIGN" => $result4->image_align, "TARGETLEVEL" => $result4->target_level, "TARGET" => 0 ); //$sql = "SELECT #__content.* FROM #__content WHERE #__content.catid=".$result4->id." AND #__content.state = 1"; $sql = "SELECT #__content.*, #__swmenu_extended.* FROM #__content LEFT JOIN #__swmenu_extended ON (#__content.id+100000) = #__swmenu_extended.menu_id AND (#__swmenu_extended.moduleID = '".$id."' OR #__swmenu_extended.moduleID IS NULL) INNER JOIN #__categories ON #__content.catid = #__categories.id AND #__content.state = 1 AND #__content.catid=".$result4->id." AND #__content.access <= ".$my->gid." AND ( publish_up = '0000-00-00 00:00:00' OR publish_up <= '$now' ) AND ( publish_down = '0000-00-00 00:00:00' OR publish_down >= '$now' ) ORDER BY #__content.ordering "; $database->setQuery( $sql ); $result5 = $database->loadObjectList(); foreach ($result5 as $result6) { if ($mosConfig_mbf_content) { $result6 = MambelFish::translate( $result6, 'content', $mosConfig_lang); } $url="index.php?option=com_content&task=view&id=" . $result6->id."&Itemid=".$result2->id; $swmenupro_array[] =array("TITLE" => $result6->title, "URL" => $url , "ID" => $result6->id+10000 , "PARENT" => $result4->id+1000 , "ORDER" => $result6->ordering, "IMAGE" => $result6->image, "IMAGEOVER" => $result6->image_over, "SHOWNAME" => $result6->show_name, "IMAGEALIGN" => $result6->image_align, "TARGETLEVEL" => $result6->target_level, "TARGET" => 0 ); } } } } } } } $i=0; $menudisplay=0; if (count($swmenupro_array)){ foreach ($swmenupro_array as $row){ if (strcasecmp(substr($swmenupro_array[$i]['URL'],0,4),"http")) { $swmenupro_array[$i]['URL'] = sefRelToAbs($swmenupro_array[$i]['URL']); } // $swmenupro_array[$i]['URL'] = str_replace( '&', '&', $swmenupro_array[$i]['URL'] ); $i++; if (($row['PARENT']==$parent_id )){ $menudisplay=1; } } if ($menudisplay==1){ $ordered = chain('ID', 'PARENT', 'ORDER', $swmenupro_array, $parent_id, $levels); } }else{ $ordered = array(); $menudisplay=0; } $option2 = trim( mosGetParam( $_REQUEST, 'option', 0 ) ); $id = trim( mosGetParam( $_REQUEST, 'id', 0 ) ); $Item_id = trim( mosGetParam( $_REQUEST, 'Itemid', 0 ) ); if ($parent_level){ $i=0; $indent=0; $menudisplay=0; $reordered = array(); $parent=1; if (($menu=="swcontentmenu") && ($option2=="com_content") && $id){ $parent_value=$id; }elseif ($menu=="swcontentmenu" ){ $parent=0; }else{ $parent_value=$Itemid; $menudisplay=0; $parent=1; } $id=0; //echo "parent ".$parent_value; while ($parent){ foreach ($ordered as $row){ if (($row['ID']==$parent_value || $row['ID']==$parent_value+1000 || $row['ID']==$parent_value+10000)){ $parent_value = $row['PARENT']; $indent = $row['indent']; $id=$row['ID']; } } if ($indent == $parent_level){ $parent=0; $id=$parent_value; }elseif($indent == $parent_level-1){ $parent=0; //$id=$parent_value; }elseif($indent < $parent_level-1){ $parent=0; if ($parent_level==2 ){ $id = $id; }else{$id=0;} } $i++; if ($i > $levels){$parent=0;} } foreach ($ordered as $row){ if (($row['PARENT']==$id)){ $menudisplay=1; } if (($row['PARENT']==$id-1000)){ $menudisplay=1; } } if ($menudisplay ){ $ordered = chain('ID', 'PARENT', 'ORDER', $ordered, $id, $levels); if ($menustyle == "clickmenu"){doClickMenu($ordered, $swmenupro);} if ($menustyle == "treemenu"){doTreeMenu($ordered, $swmenupro);} if ($menustyle == "popoutmenu"){doPopoutMenu($ordered, $swmenupro);} if ($menustyle == "gosumenu" && !$editor_hack){doGosuMenu($ordered, $swmenupro, $active_menu);} if ($menustyle == "transmenu"){doTransMenu($ordered, $swmenupro, $active_menu, $sub_indicator, $parent_id);} if ($menustyle == "tabmenu"){doTabMenu($ordered, $swmenupro, $parent_id);} if ($menustyle == "flatmenu"){doFlatMenu($ordered, $swmenupro);} } }elseif($menudisplay){ if ($menustyle == "clickmenu"){doClickMenu($ordered, $swmenupro);} if ($menustyle == "treemenu"){doTreeMenu($ordered, $swmenupro);} if ($menustyle == "popoutmenu"){doPopoutMenu($ordered, $swmenupro);} if ($menustyle == "gosumenu" && !$editor_hack){doGosuMenu($ordered, $swmenupro, $active_menu);} if ($menustyle == "transmenu"){doTransMenu($ordered, $swmenupro, $active_menu, $sub_indicator, $parent_id);} if ($menustyle == "tabmenu"){doTabMenu($ordered, $swmenupro, $parent_id);} if ($menustyle == "flatmenu"){doFlatMenu($ordered, $swmenupro);} } } ?>

 

 

 

 

 

 

 

 

 

 

 

 
 
Home
Guestbook

There are 42 entries in the guestbook.
Pages: 1 2 3 »

NameEntry
Elad Tzadok
from Modii'n, Israel
Signed on: Tue 04 Aug 2009 02:01:45 PM EDT
This show is Awesome! I want to be a stuntman when I grow up!!! 8)
SamuelSigned on: Sun 16 Sep 2007 09:53:37 AM EDT
I bookmarked this guestbook. Thank you for good job
Josh
from surrey, bc
Signed on: Wed 18 Apr 2007 06:08:20 PM EDT
Very cool show. Please do more car stunts.
Judd
from Surrey, B.C.
Signed on: Wed 18 Apr 2007 06:10:20 PM EDT
Best show ever, please come back with new shows. :)
Erica
from Whistler,BC
Signed on: Fri 13 Apr 2007 06:30:40 PM EDT
I am an aspiring Stunt Woman and love this series. I watch it and tape the episodes to study. Thanks for inspring me and feeding my desire to continue my passion!!!
Donna Martinson
from Orig. So Calif. now So Florida
Signed on: Mon 06 Nov 2006 06:26:59 PM EST
Peter! 
 
I am so proud of how far you have come since we first met at "Ballys" in North Hollywood, Calif. Keep in touch!  
myspace.com/dyingyang 
 
Hope to hear from you - Donna :p
Carol
from Nanaimo
Signed on: Tue 29 Aug 2006 06:19:42 PM EDT
Just saw the episode with the car squeezing under the truck. I can't believe you did that! I thought most of the stunts in movies were fake before I saw this show. You guys are incredible!
Miranda
from USA, Fargo
Signed on: Tue 29 Aug 2006 06:34:27 PM EDT
Cool design. Keep up the good work. Good job guys!  
Rachel
from Michigan, USA
Signed on: Tue 29 Aug 2006 06:38:01 PM EDT
Saw an episode and clips at Timeless Destinations. You guys rock! I'm definately looking forward to seeing you on US tv and getting the DVDs to see the rest of the shows!
Dan Goodman
from Whistler
Signed on: Wed 30 Aug 2006 10:31:32 AM EDT
Where is a new season? All I'm seeing is re-runs. This show MUST come back!! It's the best damned thingin Television,and pretty funny too. :eek
Ashley
from USA, Orlando
Signed on: Wed 30 Aug 2006 11:01:59 AM EDT
I like your web site. Good stuff. Keep it updated and fresh.
Barrett
from Qikitarjuaq, Nunavut
Signed on: Tue 09 May 2006 02:28:48 PM EDT
I'm very disappointed. I can't find the Series 1 DVD yet. I missed some shows and I need to catch up. 
 
When are you guys coming to Qikitajuaq? You can redo the Ski jump off the cliff like James Bond in the The Spy Who Loved Me that was done up here. 
Kevin
from Courtice, ON
Signed on: Fri 21 Apr 2006 01:03:24 PM EDT
Awesome show! I now see movies in a different way. Screw the actors, stunt people are the ones that deserve the big bucks! I hope to see you in a second season! :)
Tom
from Kitchener
Signed on: Tue 18 Apr 2006 06:27:52 PM EDT
Hey! Great show. Really enjoy it. Just wondering? Are you guys planning on selling hats or shirts online. If they are done with style i'll buy.
Malcolm
from Belgium
Signed on: Tue 18 Apr 2006 06:29:05 PM EDT
Looks nice! Keep working. I enjoyed me visit.
STEVE
from Toronto , Ontario
Signed on: Thu 13 Apr 2006 03:16:50 PM EDT
WAS JUST WATCHING A RECAP OF THE SEASON ON THE MOVIE NETWORK ... GREAT WORK YOU GUYS DO ON THE SHOW ...  
I NOTICED YOU USED A CAMERA CAR YOU CALL PREDATOR ... I GUESS IT IS COMMON IN THE FILM INDUSTRY FOR PEOPLE TO COPY OTHER PEOPLES THINGS , THAT CAR IS AN ALMOST DIRECT CARBON COPY OF A HIGH SPEED CAMERA CAR HERE IN ONTARIO IVE SEEN ON DIFFERENT PRODUCTIONS , BIGGEST ONE BEING THE MOVIE DRIVEN THAT WAS SHOT HERE IN TORONTO SEVERAL YEARS AGO ... 
AGAIN GREAT SHOW , LOVE IT !!! YOU GUYS ARE TOP STUNT DAWGS FORSURE
Richard Feschuk
from Peterborough ON
Signed on: Wed 29 Mar 2006 04:14:22 PM EST
What an awesome show...perfect, from the bird's eye view(s) on how serious stuff needs to be taken !!!Big Time!!! seriously, how honest it is to show everything that can happen (the good, the bad and the hairy) to the personal stuff like Rikki's autobio on how she discovered people could be paid to have fun and do what she had always done for the rush...Season 2 must surely be...thanks.
Tyson
from Altario
Signed on: Tue 28 Mar 2006 04:29:16 PM EST
your show is awsome 
Robbie McInnery
from Whistler
Signed on: Sat 11 Mar 2006 01:24:31 PM EST
Loved the guy jumping from the car, I've done it myself after 20 beers!! Your show is the coolest thing on the box, nobody comes close to doing the shit you guys do and making it look so tight. Rock on!!
Stuart
from Toronto
Signed on: Tue 28 Feb 2006 09:02:41 PM EST
Just watched Rikki jump off the building. My heart was in my throat. Such a cutie!! Great detail. Was a lumberjack in my twenties, but I dare not compare. Great, great episode!! ;)
Powered by AkoBook