'; $htmlHeadLang = $header_Sprache; if($LangsSpanishFrench != TRUE AND ($header_Sprache == "es" OR $header_Sprache == "fr")) { $htmlHeadLang = "en"; } $Doctype = ' '; $SelfLinkDe = $URL00de."/"; $SelfLinkEn = $URL00en."/"; $Links_Alternate = ' '; $SLheader_robots = "\n"; // ----------------------------------------- // INCLUDE DER HEADER FÜR DIE GEWÄHLTE SEITE // ----------------------------------------- include $PFpages.$GOid."/0_header.php"; // Keywords auf Anzahl X kürzen $ih = ''; $kDone = array(); foreach($SEEDLIST_header_Keywords AS $KnrIs => $Key) { if(!in_array($Key, $kDone)) { if(!empty($ih)){$ih .= ', ';} $ih .= $Key; $kDone[] = $Key; } if($KnrIs == 8) {break;} } $SEEDLIST_header_Keywords = $ih; unset($ih); $AlterArr = array(); if($header_Sprache == "de") { $AlterArr['de'] = true; $AlterArr['en'] = true; if($LangsSpanishFrench == TRUE) {$AlterArr['es'] = true; $AlterArr['fr'] = true;} } elseif($header_Sprache == "en") { $AlterArr['en'] = true; $AlterArr['de'] = true; if($LangsSpanishFrench == TRUE) {$AlterArr['es'] = true; $AlterArr['fr'] = true;} } elseif($header_Sprache == "es") { $AlterArr['es'] = true; $AlterArr['de'] = true; $AlterArr['en'] = true; if($LangsSpanishFrench == TRUE) {$AlterArr['fr'] = true;} } elseif($header_Sprache == "fr") { $AlterArr['fr'] = true; $AlterArr['de'] = true; $AlterArr['en'] = true; if($LangsSpanishFrench == TRUE) {$AlterArr['es'] = true;} } //current language // $Links_Alternate .= ' '."\n"; // Alternates / Canonical $canonicalLink = $SelfLinkEn; $theOtherLanguagesLinks = ''; $canonicalToHead = ''; foreach($AlterArr AS $lKey => $egal) { $SelfLinkxx = $SelfLinkEn; $SlfTitl = "English Version"; if($lKey == "de") {$SelfLinkxx = $SelfLinkDe; $SlfTitl = "Deutsche Version";} elseif($lKey == "es") {if($lngSpFr == 1 AND isset($SelfLinkEs)) {$SelfLinkxx = $SelfLinkEs; $SlfTitl = "Version Espaniol";}} elseif($lKey == "fr") {if($lngSpFr == 1 AND isset($SelfLinkFr)) {$SelfLinkxx = $SelfLinkFr; $SlfTitl = "Version Francaise";}} if($lKey == $header_Sprache) { $canonicalLink = $SelfLinkxx; // Canonical if(($lKey == "es" AND isset($SelfLinkEs)) OR ($lKey == "fr" AND isset($SelfLinkFr)) OR $lKey == "de" OR $lKey == "en") { $canonicalToHead .= ' '."\n"; $theOtherLanguagesLinks.= ' '."\n"; } else { // English if no spanish or french $canonicalToHead .= ' '."\n"; $theOtherLanguagesLinks.= ' '."\n"; } } else { // Alternates if(($lKey == "es" AND isset($SelfLinkEs)) OR ($lKey == "fr" AND isset($SelfLinkFr)) OR $lKey == "de" OR $lKey == "en") { $theOtherLanguagesLinks.= ' '."\n"; } else { // Deutsch if no spanish or french $theOtherLanguagesLinks = ' '."\n"; } } } // Show link to the other language versions only if the current url is also the canonical one if(!isset($SHOWtheCANONICALlink)) {$SHOWtheCANONICALlink = true;} // show if not told otherwise in page headers if($canonicalLink != urldecode($GLOBpathcheck.$_SERVER['REQUEST_URI'])) { $SHOWtheCANONICALlink = false; $DONTSHOWALTERNATES = true; $SLheader_robots = " \n"; } if($SHOWtheCANONICALlink == true) {$Links_Alternate .= $canonicalToHead;} if(!isset($DONTSHOWALTERNATES)) {$Links_Alternate .= $theOtherLanguagesLinks;} // rederect to https canonical if no https in use if(empty($_SERVER['HTTPS']) AND $ONlOFFl == "online") { header('HTTP/1.1 301 Moved Permanently'); header("Location: ".$canonicalLink); die(); } // Short description for twitter and metas $SL_Header_Beschreibung = str_replace('"','',$SL_Header_Beschreibung); //für meta die " raus $headErDescrLong = strlen($SL_Header_Beschreibung); $SL_Header_DescrTwitter = $SL_Header_Beschreibung; if($headErDescrLong > 160) { if($headErDescrLong > 200) { $SL_Header_DescrTwitter = substr($SL_Header_Beschreibung, 0, 200); } // $SL_Header_Beschreibung = substr($SL_Header_Beschreibung, 0, 160); } if(isset($META2stuff['page_descr'])) { $SL_Header_DescrTwitter = substr($META2stuff['page_descr'], 0, 200); } // Opengraph/Twitter-Stuff ($META2stuff first set in index.php) $xtraPGdescrFB = "\n "; $xtraPGdescrTW = "\n "; if(isset($META2stuff['page_descr'])){ $xtraPGdescrFB = "\n "; } $xtraPGtitleFB = "\n "; $xtraPGtitleTW = "\n "; if(isset($META2stuff['page_title'])){ $xtraPGtitleFB = "\n "; $xtraPGtitleTW = "\n "; } if(!empty($META2stuff['twitter_image_src'])) { $META2stuff['twitter_image'] = $META2stuff['twitter_image_src']; $META2stuff['twitter_card'] = "summary_large_image"; $META2stuff['twitter_plusSrc'] = ":src"; } $xtraPicsMeta = ''; if(isset($META2stuff['og_image_more'])) { foreach($META2stuff['og_image_more'] AS $metaMoreImgUrl) { $xtraPicsMeta .= "\n "; } } /* $xtraPicsTwitterMeta = ''; if(isset($META2stuff['twitter_image_more'])) { $META2stuff['twitter_card'] = "gallery"; $META2stuff['twitter_plusSrc'] = "0:src"; foreach($META2stuff['twitter_image_more'] AS $nrPicArray => $metaMoreImgUrl) { if($nrPicArray == 0) { $META2stuff['twitter_image'] = $metaMoreImgUrl; } else { $xtraPicsTwitterMeta .= "\n "; } } } */ $Links_Alternate .= ' '.$xtraPGtitleFB.$xtraPGdescrFB.' '.$xtraPicsMeta.' '.$xtraPGtitleTW.$xtraPGdescrTW.' '; echo $Doctype."\n"; if(!isset($HEAD)) { $HEAD = ' '.$SLTitle.' '.$SLheader_robots.$Links_Alternate.' '; if($GO == "COP" OR ($GO == "VS" AND $WAS == "UPLOAD") OR $GO == "CLOSET" OR $GO == "GROWPLAN" OR $GO == "WIZARD") { $HEAD .= $JAVAOUT; } if(isset($HEAD_CSS)) { $HEAD .= ' '; unset($HEAD_CSS); } $HEAD .= ' '; if(isset($HEAD_BODY)) { $HEAD .= "\n".$HEAD_BODY; } else { $HEAD .= "\n"; } } // check donottrack setting from browser if (array_key_exists('HTTP_DNT', $_SERVER) && $_SERVER['HTTP_DNT'] == 1) { $DontTrackMe = true; } // Google Analytics Script direct behind the if($ONlOFFl == 'online' AND $DontTrackMe == false) { include $PF.'counter/google_analytics_js.php'; } echo $HEAD;

x

'; if($KATEG == "all") { $AusgKatTitle = ""; $AusgKatTitleAlleForen = $GLOB_THRFI_Alle_Foren; } else { $AusgKatTitle = " (".$GLOB_THRFI_Only." ".$THFORUMkateg[$KATEG][$header_Sprache].")"; $AusgKatTitleAlleForen = "".$GLOB_THRFI_Alle_Foren." (".$GLOB_THRFI_Only." ".$THFORUMkateg[$KATEG][$header_Sprache].")"; } $AusgSortierenP .= ''.$AusgKatTitleAlleForen.''; foreach($FORUMS as $fid => $fArr) { if($fArr['active'] == true) { $AusgSortierenP .= ''.$FORUMS[$fid]['name'].''; } } $AusgSortierenP .= ""; if($FORUM == "all" OR !isset($FOR_ID)) { // WARUM IST FOR_ID HIER MANCHMAL LEER? UND WO? ... !isset hier (und in line 95) nur als fast fix!! $AusgTitleForum = ""; $AusgTitleAlleKats = $GLOB_THRFI_Alle_Kategorien." (".$GLOB_THRFI_Alle_Foren.")"; } else { $AusgTitleForum = " (".$GLOB_THRFI_Only." ".$FORUMS[$FOR_ID]['name'].")"; $AusgTitleAlleKats = "".$GLOB_THRFI_Alle_Kategorien." (".$GLOB_THRFI_Only." ".$FORUMS[$FOR_ID]['name'].")"; } $ShowStartPageStuff = ''; if($FORUM == "all" AND $KATEG == "all" AND $LANG == "all") { // create list of all forums $showForumslist = array(1 => '', 2 => '', 3 => ''); $liCount = 1; $presortFbyname = array(); foreach($FORUMS AS $fId => $forum) { if($forum['active'] == true) { $sortstring = preg_replace('/[^a-zA-Z0-9]/i', '',$forum['name']); if(is_numeric($sortstring{0})) {$sortstring = 'zzz'.$sortstring;} if(isset($presortFbyname[$sortstring])) {$sortstring = $sortstring.rand(0,99999);} $presortFbyname[$sortstring] = $fId; } } ksort($presortFbyname); $allFcount1 = count($presortFbyname) / 3; $allFcount2 = $allFcount1 + $allFcount1; $fRun = 1; foreach($presortFbyname AS $sortId => $fId) { $liCount = 3; if($fRun <= $allFcount1) {$liCount = 1;} else {if($fRun <= $allFcount2) {$liCount = 2;}} $showForumslist[$liCount] .= '
  • '.$FORUMS[$fId]['name'].' '.$FORUMS[$fId]['name'].'
  • '; $fRun++; } // create forums divs //add forums and info to threadfinder startpage $ShowStartPageStuff = '

    '.$GLOB_THRFI_BeschObenH2.'

    '.$GLOB_THRFI_BeschOben.'

    '; foreach($showForumslist AS $thisForumList) { $ShowStartPageStuff .= '
      '.$thisForumList.'
    '; } } $AusgSortierenP .= ''.$GLOB_THRFI_Alle_Kategorien.''; foreach($THFORUMkateg as $id2 => $name) { $AusgSortierenP .= ''.$AusgTitleForum.''; } $AusgSortierenP .= "
    "; $AusgSortierenP .= ""; $AusgSortierenP .= ''.$GLOB_THRFI_Alle_Sprachen.''; foreach($FORUMflags as $langnow) { $AusgSortierenP .= ''.$GLOB_diesprache[$langnow].''; } $AusgSortierenP .= ""; $AusgSortierenP .= "

    \n"; $AusgSortierenP = str_replace("all/all/all/all/threads.html","threads.html",$AusgSortierenP); $AusgSortierenP = str_replace("all/all/all/threads.html","threads.html",$AusgSortierenP); $AusgSortierenP = str_replace("all/all/threads.html","threads.html",$AusgSortierenP); $LinksWoBinIch = ""; if($FORUM == "all" OR !isset($FOR_ID)) { // WARUM IST FOR_ID HIER MANCHMAL LEER? UND WO? ... !isset hier (und in line 20) nur als fast fix!! $LinksWoBinIch .= $GLOB_THRFI_Alle_Foren; } else { $LinksWoBinIch .= $GLOB_THRFI_Aktuelles_Forum.": ".$FORUMS[$FOR_ID]['name'].""; } if($KATEG == "all") { $LinksWoBinIch .= " :: ".$GLOB_THRFI_Alle_Kategorien; } else { $LinksWoBinIch .= " :: ".$GLOB_THRFI_Kategorie.": ".$THFORUMkateg[$KATEG][$header_Sprache]; } if($LANG == "all") { $LinksWoBinIch .= " :: ".$GLOB_THRFI_Alle_Sprachen; } else { $LinksWoBinIch .= " :: ".$GLOB_THRFI_Sprache.": ".$GLOB_SeeTex00." ".$GLOB_diesprache[$LANG]; } // run array with all threads and fill up test- and output arrays $testBreeder = array(); $testStrains = array(); $COUNTER_BREEDER = array(); $SORTED_THREADS = array(); foreach($THREADS['threads'] AS $_fId => $_threads) { foreach($_threads AS $_threadId => $_oneThread) { foreach($_oneThread['strains'] AS $_strainId => $_oneStrain) { if(!isset($testBreeder[$_oneStrain['slug_sb']])) { $testBreeder[$_oneStrain['slug_sb']] = $_oneStrain['name_sb']; } if(!isset($testStrains[$_oneStrain['slug_strain'].'_'.$_oneStrain['slug_sb']])) { $testStrains[$_oneStrain['slug_strain'].'_'.$_oneStrain['slug_sb']] = $_oneStrain['name_strain']; $SORTED_THREADS[$_oneStrain['slug_sb']][$_oneStrain['slug_strain']] = array(); } $SORTED_THREADS[$_oneStrain['slug_sb']][$_oneStrain['slug_strain']][$_threadId] = $_oneThread; $SORTED_THREADS[$_oneStrain['slug_sb']][$_oneStrain['slug_strain']][$_threadId]['forum'] = $_fId; unset($SORTED_THREADS[$_oneStrain['slug_sb']][$_oneStrain['slug_strain']][$_threadId]['strains']); if(!isset($COUNTER_BREEDER[$_oneStrain['slug_sb']])) {$COUNTER_BREEDER[$_oneStrain['slug_sb']] = 1;} else {$COUNTER_BREEDER[$_oneStrain['slug_sb']]++;} } } } $AnzAhlBreeder = count($testBreeder); $AnzAhlStrains = count($testStrains); // create outputs $P_AUSGABEN = ""; $P_AUSGABEN_TITLE = ""; $breederLists = ""; if(!empty($SORTED_THREADS)) { ksort($SORTED_THREADS); foreach($SORTED_THREADS as $_slugBreeder => $allStrains) { if($NURBREEDER == $_slugBreeder) { $breederLists .= '
  • '.$testBreeder[$_slugBreeder]."
  • "; $P_AUSGABEN_TITLE = "\n

    ".$testBreeder[$_slugBreeder]."

    \n\n"; ksort($allStrains); foreach($allStrains as $_slugStrain => $strainThreads) { $P_AUSGABEN .= "

    ".$testStrains[$_slugStrain.'_'.$_slugBreeder]."

    \n"; $P_AUSGABEN .= " \n"; } } else { $replTitle = sprintf($GLOB_THRFI_brStrnsTit, $COUNTER_BREEDER[$_slugBreeder], count($allStrains)); $breederLists .= '
  • '.$testBreeder[$_slugBreeder].'
  • '; } } } else { $P_AUSGABEN .= "

    ".$GLOB_THRFI_Nix_Gefunden_Ausgabe."

    \n"; } // output the output echo '

    '.$H1_IN_DEN_HEADERecho.'

    '.$ShowStartPageStuff.'

    Find Threads

    '.$AusgSortierenP.'

    '.$LinksWoBinIch.'

    '; if(!empty($breederLists)) { $breederStrainsThreadsH2 = sprintf($GLOB_THRFI_brStrThrH2, $AnzAhlBreeder, $AnzAhlStrains, $THREADS['count']); echo '

    '.$breederStrainsThreadsH2.'

      '.$breederLists.'
    '; if(!empty($P_AUSGABEN)) { echo '
    '.$P_AUSGABEN_TITLE.'
    '; echo $P_AUSGABEN; } } else { echo '

    '.$GLOB_THRFI_Nix_Gefunden_Ausgabe.'

    '; } echo '
    '; ?>