<% if (Environment::doDebugOutput(true)) { %> <% } %> <% echo $this->headTitle(); %> <% echo $this->openGraph; %> <% echo $this->headMeta(); %> <% echo $this->headLink(); %> <% echo $this->buildStyleSheets(); %> <% echo $this->headScript(); %> <% echo $this->buildJavaScripts(); %> <% echo $this->inlineScript() %> <% echo $this->additionalHeaders; %> <% switch (Registry::get('state')->getCode()) { case 'SK': $account = 'UA-200716-3'; break; case 'AT': default: $account = 'UA-200716-1'; break; } %> <% if (!isset($_COOKIE['disableResponsive']) || !$_COOKIE['disableResponsive']): %> <% if ($this->detection->is('android') && floatval($this->detection->version('Android')) < 3): %> ' /> ' /> ' /> ' /> ' /> ' /> ' /> ' /> ' /> <% else: %> ' /> <% endif; %> <% endif; %> <% if (time() >= mktime(0,0,0, 4, 1, 2016) && time() < mktime(0,0,0, 4, 25, 2016)) { %> <% } %> <% $user = Registry::get('session')->user; %> getBodyTagAttributes() as $name => $value) { echo $name . '="' . $value . '" '; } %> > <% $zip = ''; $province = ''; $location = ''; $age = ''; $gender = ''; if (!function_exists('lowerNoUmlauts')) { function lowerNoUmlauts($str) { $str = strtolower($str); $replacePairs = array( ' ' => '_', 'ä' => 'ae', 'ö' => 'oe', 'ü' => 'ue', 'ß' => 'ss' ); $str = strtr($str, $replacePairs); return $str; } } if ($user) { $userData = $user->getUserData(); $userCharacter = $user->getUserCharacter(); $userPageAddOn = new \Weblife1_User_Page_Addon_Main(0); $userInfos = $userPageAddOn->build($user ); $zip = urlencode($userData->getZipCode()); $province = urlencode(lowerNoUmlauts($userData->getProvinceName())); $location = urlencode(lowerNoUmlauts($userData->getCity())); $age = urlencode($userCharacter->getAge()); $gender = $userData->getGender() == 'm' ? 'male' : 'female'; } %> <% if ($user && Registry::get('session')->isFreshRegistration) : %> <% Registry::get('session')->isFreshRegistration = FALSE; %> <% endif %>
. . . <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% echo Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_SITEBAR_LEFT) %> <% endif %>
<% echo $this->placeholder('notifications'); %> <% if(Registry::isRegistered('fallbackactive')) { %>
Fallback-Hack aktiv! Diese Seite wurde noch nicht überarbeitet und funktioniert womöglich nicht richtig!
<% } %> <% if(Registry::isRegistered('session') && (Registry::get('session')->obSeen < 1)) { %> <% } %>
<% if ($this->detection->isMobile() || $this->detection->isTablet()): %>
<% endif %> <% $tags = '
    '; if(is_array($this->searchtags)){ foreach($this->searchtags as $tag) { $ttags = array(); foreach($this->searchtags as $tag2) { if($tag2 != $tag) $ttags[] = $tag2; } $dellink = implode(",", $ttags); $tags .= '
  • '; } } $tags .= '
'; /* Main */ $mainBoxTitle = Szene1_Translate::_('easySearch'); //$privacyBtn = ''; $mainBoxHtml .= '
'; $mainBoxHtml .= $tags; $mainBoxHtml .= 'User, Events, Locations, Gruppen, Tags'; $mainBoxHtml .= '
'; /*End Main*/ /* Result Box */ $resultBoxTitle = Szene1_Translate::_('result'); $resultBoxHtml = 'result'; /* Event Results */ $resultBoxTitle = 'Results'; if(time() < mktime(0,0,0,4,15,2012)){ $searchResults .= ' 9 Jahre SZENE1 - 13. und 14. April'; } $searchResults .= '
'; $taguri = implode(",",$this->searchtags); // TODO: give attention that no code can be included here switch($this->type) { case 'event': $activeTab['event'] = 'active'; /* include Event-Search Template */ ob_start(); include './application/views/szene1/search/events.phtml'; $searchResults .= ob_get_contents(); ob_end_clean(); /* end include Event-Search Template */ $more = ''.Szene1_Translate::_('showMore').''; break; case 'location': $activeTab['location'] = 'active'; /* include Event-Search Template */ ob_start(); include './application/views/szene1/search/events.phtml'; $searchResults .= ob_get_contents(); ob_end_clean(); /* end include Event-Search Template */ $more = ''.Szene1_Translate::_('showMore').''; break; case 'group': $activeTab['group'] = 'active'; /* include Event-Search Template */ ob_start(); include './application/views/szene1/search/group.phtml'; $searchResults .= ob_get_contents(); ob_end_clean(); /* end include Event-Search Template */ $more = ''.Szene1_Translate::_('showMore').''; break; /* User */ case 'user': $activeTab['user'] = 'active'; if($this->cnt > 0) { $count = '( '.$this->cnt.' )'; } $searchTabs = '
  • User '.$count.'
  • Events
  • Location
  • Gruppen
  • '; //
  • Artikel
  • //
  • Anzeigen
  • '; /* include User-Search Template */ ob_start(); include './application/views/szene1/search/user.phtml'; $searchResults .= ob_get_contents(); ob_end_clean(); /* end include User-Search Template */ $more = ''.Szene1_Translate::_('showMore').''; $buttonBoxHtml = false;//'Flirtfinder'; $buttonBoxTitle = ''; if(!$this->error) { $filterBoxTitle = 'Filter'; if($this->criteria instanceof Szene1_Criteria) { $filterBoxHtml .= Generator_Usersearch::mainUserSearch( $this->criteria, $this->mode); /*TODO Html Box*/ $inviteFriends = Szene1_Translate::_(cp_findfriends); $friendsInviterBoxTitle = $inviteFriends; //$friendsInviterBoxHtml = 'TODO:Form // '.$inviteFriends.''; //$friendsInviterBoxHtml = Generator_Cockpit::getFriendsInviterForm(); } /*BigThumb View*/ $jsToggle = ' onclick="if($(\'event-search-list\')){$(\'event-search-list\').toggleClassName(\'bigthumb\');}"'; $bigThumb .= '
    '; } else { $searchResults .= '

    '.Szene1_Translate::_('onlyRegisteredUsers').'

    '; } break; default: $activeTab['all'] = 'active'; /* include global-Search Template */ ob_start(); include './application/views/szene1/search/global.phtml'; $searchResults .= ob_get_contents(); ob_end_clean(); /* end include Event-Search Template */ break; } $searchResults .= '
    '.$more; $searchTabs = '
  • Alles
  • User
  • Events
  • Location
  • Gruppen
  • '; //
  • Artikel
  • //
  • Anzeigen
  • '; /*TAB*/ $searchTab = ''; $resultBoxHtml = $searchTab .'
    ' . $searchResults; /* End Result Box */ /* SIDEBAR */ /* GRID */ $gridBoxHtml = $this->grid; /* contentAd */ $adHtml = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_1); $ad2Html = Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_CONTENT_2); %>

    <% if ($this->detection->isMobile() || $this->detection->isTablet()): %> <% endif %>
    <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% echo Szene1_Ads::getInstance()->getBanner(Szene1_Ads::BANNER_SITEBAR) %> <% endif %>
    <% if (Environment::doDebugOutput(true)): %>
    <% // echo $this->debugInfo; echo "

    BASE-TIME total secs " . BaseConnect::$totalMs; echo "

    SHAREDANCE(SESSION)-TIME total secs " . Szene1_Session_SaveHandler_ShareDance::$totalMs; echo "

    TIMELINER-TIME total secs " . Notification::$totalMs; echo "

    MEMORYCACHE-TIME total secs " . Szene1_MemoryCache::$totalMs; echo "

    davon MEMCACHE(zentral)-TIME total secs " . Szene1_Cache_Memcache::$totalMs; echo "
    BASE-CALLS total " . BaseConnect::$totalCalls . "

    "; echo 'BaseConnect cache-access : ' . BaseConnect::$cacheAccess . ' - times
    '; foreach (BaseConnect::$cache as $id => $uid) { echo "$id ==> $uid
    "; } echo '

     

    '; %> <% echo '

     

    '; echo "
    TIMELINER-CALLS total " . Notification::$totalCalls . "

    "; echo "
    MEMORYCACHE-CALLS total " . Szene1_MemoryCache::$totalCalls . "

    "; echo "
    MEMCACHE(zentral)-CALLS total " . Szene1_Cache_Memcache::$totalCalls . "

    "; echo '

     

    '; %> <% echo "Mem Usage: " . round(memory_get_usage() / 1024 / 1024, 2) . "mb (" . round(memory_get_usage(true) / 1024 / 1024, 2) . "mb); Max: " . round(memory_get_peak_usage() / 1024 / 1024, 2) . "mb
    \n"; // echo Thrift_UserCache::getDebugInfo(); $sqlHigh = new Weblife1_Debug_SQLHighlight(); echo "
    SQL - SUM UP:"; $totaltime = 0; foreach (Szene1_DB_MysqliConn::$debugQuerieTime as $host => $time) { $totaltime += $time; echo "

    [" . $host . "] " . round($time, 5) . " seconds needed (" . Szene1_DB_MysqliConn::$debugQuerieCounter[$host] . " Queries)

    "; } echo "

    Total Time needed for DB: " . $totaltime . "

    "; echo $sqlHigh->highlight(Szene1_Db_MySQLiConn::$debugQueries); %>
    <% endif; %>
    <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% endif; %>
    <% if ($this->detection->isMobile() || $this->detection->isTablet()): %>
    <% endif %> <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% endif %> <% if (!$this->detection->isMobile() && !$this->detection->isTablet()): %> <% endif %>