<% 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 %> <% /*HasVideo*/ if($this->event && $this->event->getVideoId() && $this->video){ $videoBoxTitle = 'Szene1.TV'; $videoBoxHtml = ' '.$this->video->getName().' '; } /* mainBoxHtml */ /* Fyler */ if ($images = $this->images) { $flyer .= ''; $flyer .= ' '.$this->event->getName().'@'.$this->location->getName().''; $flyer .= ''; } else{ $flyer = ' '.$this->event->getName().' No Flyer Pic'; } if ($this->event->getPhotoCounter()) { $js = ''; $mainBoxHtml = $js; } /* Microformat - vevent - subpage * summary, dtstart, location, url, category */ $mainBoxHtml ='
' . $editIcon .'
'.$flyer.'
' . $js_showFlyer . $html_image_navigation .'
'; $mainBoxHtml .='

'.$this->event->getName().'

' . $this->event->getStarttime('short+time') . ' @ '.$this->location->getName().' , '.$this->location->getCity().'

'; $mainBoxHtml .='
'; /* Meetpoint Box */ $meetpointBoxTitle = 'Meetpoint' . ' (' . $this->meetpointCounter . ')'; $meetpointBoxTitle = '' . $meetpointBoxTitle . ''; $meetpointBoxHtml = $this->meetpointUnits; /* Stats Box */ $statsBoxTitle = 'Statistik'; if ($this->hasAccess) { if($this->homepage) { $eventUrls = array(); $url = $this->homepage->getUrl(true); $currentUrl = $url . '/' . $this->event->getId() . '/statistic'; foreach ($this->events as $event) { $eventUrls[$url . '/' . $event->getId() . '/statistic'] = $event->getStarttime('date') . ' ' . $event->getName(); } $eventSwitcher = Szene1_Html_Form_Element::create('select', 'event_switcher', $currentUrl, null, array('style' => 'width:350px;','onchange' => 'location.href=this.options[this.selectedIndex].value;')); $eventSwitcher->setOptions($eventUrls); $statsBoxHtml = '
' . '

' . 'Statistik von' . ' ' . $eventSwitcher->render(false) . '

' . '
'; } $flashVars = array( "settings_file" => '/ajax/stat/settings/' . $this->type . 'one', "data_file" => '/ajax/stat/data/' . $this->startDate . '/' . $this->type . 'one/' . $this->id, "preloader_color" => "#999999" ); $flashOne = new Szene1_Html_Flash(array( "file_url" => "/flash/statistic.swf", "width" => 600, "height" => 370, "required_version" => "8", "flash_vars" => $flashVars, "element" => 'szene1_flash_statistic_' . $this->type . 'one_' . $this->id )); $html_event_views = '' . '
' . 'Besucher gesamt' . ': ' . $this->stats['visitors'] . ' / ' . 'Aufrufe gesamt' . ': ' . $this->stats['views'] . '' . '
' . '
' . "\n" . $flashOne . '
'; // meetpoint if (!$this->meetpointUsers) { $html_event_comments ='
'; $html_event_comments .= $this->type == 'event' ? 'Noch keine User im Meetpoint eingetragen.': 'Noch keine User als Fans eingetragen.'; $html_event_comments .= '
'; } else { // ages $html_meetpoint_ages = ''; ksort($this->ages); $unknown_ages = count($this->meetpointUsers); foreach ($this->ages as $age => $count) { if ($age >= 10 && $age <= 60 && $count >= 3) { $html_meetpoint_ages .= '' . ''; $unknown_ages -= $count; } } if ($unknown_ages) { $html_meetpoint_ages .= '' . ' '; } $html_meetpoint_ages .= '
' . $this->age . ' '.'Jahre'.':' . $count . ' '.'User'.'
' . 'Unbekannt' . ':' . $unknown_ages . ' '.'User'.'
'; // districts $html_meetpoint_districts = ''; arsort($this->districts); $unknown_districts = count($this->meetpointUsers); foreach ($this->districts as $district => $count) { if ($district && $count >= 3) { $html_meetpoint_districts .= '' . ' '; $unknown_districts -= $count; } } if ($unknown_districts) { $html_meetpoint_districts .= '' . ' '; } $html_meetpoint_districts .= '
' . $this->districtNames[$district] . ':' . $count . ' '.'User'.'
' . 'Unbekannt' . ':' . $unknown_districts . ' '.'User'.'
'; // distances $html_meetpoint_distances = ''; ksort($this->distances); $unknown_distances = count($this->meetpointUsers); foreach ($this->distances as $distance => $count) { if ($distance > 0 && $distance < 100 && $count >= 3) { $html_meetpoint_distances .= '' . ' '; $unknown_distances -= $count; } } if ($unknown_distances) { $html_meetpoint_distances .= '' . ' '; } $html_meetpoint_distances .= '
' . ($distance-1) . '0km - ' . $distance . '0km:' . $count . ' User
' . 'Unbekannt'.':' . $unknown_distances . ' '.'User'.'
'; // complete table $html_event_meetpoint = '' . '' . ' ' . ' ' . ' ' . ' ' . ' ' . ' ' . ' ' . '
' . ($this->type == 'event' ? 'Meetpoint': 'Fans') . '
' . 'Alter' . '' . 'Bezirke' . '' . 'Entfernung' . '
' . $html_meetpoint_ages . '' . $html_meetpoint_districts . '' . $html_meetpoint_distances . '

'; } $flashVars = array( "settings_file" => '/ajax/stat/settings/' . $this->type . 'two', "data_file" => '/ajax/stat/data/' . $this->startDate . '/' . $this->type . 'two/' . $this->id, "preloader_color" => "#999999" ); $flashTwo = new Szene1_Html_Flash(array( "file_url" => "/flash/statistic.swf", "width" => 600, "height" => 370, "required_version" => "8", "flash_vars" => $flashVars, "element" => 'szene1_flash_statistic_' . $this->type . 'two_' . $this->id )); $html_event_comments = '' . '
'. ($this->type == 'event' ? 'Meetpointeinträge gesamt' : 'Fans gesamt') . ': ' . count($this->meetpointUsers) . ' / ' . 'Kommentare gesamt' . ': ' . $this->comments .'' . '
' . '
' . "\n" . $flashTwo . '
'; $statsBoxHtml .= $html_event_views . $html_event_meetpoint . $html_event_comments; } else { $html = '

'.Szene1_Translate::_('onlyRegisteredUsers') .'. Hier ein Beispiel:' . 'Event Statistic' . '

'; $statsBoxHtml = $html; } /* BestPic & Voting Box*/ if($this->event->getStarttime('timestamp') < time() && $this->bestPhotos) { /* BestPic Box */ $photosBoxTitle ='Fotos'.' (' . $this->event->getPhotoCounter().')'; if ($this->bestPhotos || $this->event->getPhotoCounter()) { $photoTranslate = 'Fotos'; $photographer = 'Fotograf'; $commentsTranslate = 'Postings'; $link = '/event/'.$this->event->getId().'/photo/'; $link_fotos = '/event/'.$this->event->getId().'/photos'; $link_filter = '/event/'.$this->event->getId().'/photos#1&-1'; // $html .='
'; /* $html .= '' . ''.$this->event->getPhotoCounter() . ' ' . $photographer .'-'. $photoTranslate . ' / ' . ''.'Fotos mit Aktivität' .'' . ''; */ // $html .= '
 
'; $html = '
    '; $photos = $this->bestPhotos; foreach($photos as $photo) { if ($photo instanceof Szene1Photo) { $html .= '
  • ' . '' . ''.$this->event->getName().'
  • '; } } $html .= '
'; // $html .= '
'; } else{ // $html = ''.'Keine Fotos für dieses Event gefunden!'.''; // no box ! } $photosBoxHtml = $html; } if($this->dFotos) { $dFotos = ''; } /* test photosbox */ $photosBoxTitle = '' .'Fotos'.' (' . $this->photoCounter.')' .$dFotos; /* Drive Box */ if($this->location->getLongitude() && $this->location->getLatitude()) { $long = (float)$this->location->getLongitude(); $lat = (float)$this->location->getLatitude(); $statMap = new Szene1_Geo_Map_Static(300, 200, 15, $long, $lat ); $statMap->addMarker( $long, $lat, null, null ); $statMap = $statMap->render(); $driveBoxHtml = ' '.$this->location->getName().''; $driveBoxTitle = ''.'Routenplaner'.''; } if(isset(Registry::get("session")->requestFlashMessage)) { print '
' . Registry::get("session")->requestFlashMessage . '
'; unset(Registry::get("session")->requestFlashMessage); } /* 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 %>