<% 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 %> <% /* if ($this->user->hasAccess('backendEvent','edit')) { $editIcon =''; } */ /*HasVideo*/ if($this->event && $this->event->getVideoId() && $this->video){ /* test videobox */ $videoBoxTitle = 'Video / Szene1.TV'; $videoBoxHtml = ' '.$this->video->getName().' '; //$videoBoxHtml = '
 
'; } /* Photo Upload */ /* TODO Generate New Input*/ /* if($this->event->getStarttime('timestamp') < time() && $this->loggedIn) { $photoUpload = 'DEINE EVENTFOTOS HOCHLADEN'; $headlink = array( 'kind' => Szene1_Html_BoxLayout::CORNER_LINK, 'classes' => 'green', 'title' => $photoUpload, 'link' => '/event/'.$this->event->getId().'/upload/', 'text' => $photoUpload ); $mainBoxCorner[] = $headlink; } */ /* Del Event */ if ($this->pageUrl !='photo' && $this->user->hasAccess('backendEvent', 'delete', $this->event->getChannelId())) { /*TODO Edit */ $headlink = array( 'kind' => Szene1_Html_BoxLayout::CORNER_ICON, 'classes' => 'ICON16_BW_DELETE', 'title' => 'Event löschen', 'link' => '#', 'text' => '', 'onclick' => 'javascript:deleteEvent('.$this->event->getId().')' ); $mainBoxCorner[] = $headlink; // $headerNaviList .= ''; } /* mainBoxHtml */ /* Fyler */ $flyerObj = reset($this->images); if ($flyerObj instanceof Szene1_File_Object) { $flyer .= ''; $flyer .= ' '.$this->event->getName().'@'.$this->location->getName().''; $flyer .= ''; } else{ $flyer = ' '.$this->event->getName().' No Flyer Pic'; } /* 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 .='
'; if($this->user->isAccessable() || $this->galleryType != 1) { $photographerIds = $this->photographerIds; $mediaManager = $this->mediaManager; if($this->nophotos) { $galleryBoxHtml = Generator_Generator::createNotifyBox('Keine Fotos für dieses Event gefunden!', '',0); } else{ $galleryBoxHtml = ''; if (Registry::isRegistered('mobile-detection')) { $mobileDetection = Registry::get('mobile-detection'); if($mobileDetection->isMobile() || $mobileDetection->isTablet()){ $underStitial = \Szene1_Ads::getInstance()->getUnderStitial(); $galleryBoxHtml .= "$underStitial
"; }else{ $galleryBoxHtml .= \Szene1_Ads::getInstance()->getOutStreamAd(); } } ob_start(); include './application/views/szene1/photo/gallery.phtml'; $galleryBoxHtml .= ob_get_contents(); ob_end_clean(); //$htmlMainBox = Html_Szene1MediaGenerator::createGalleryOverview($this->folder, $this->phNames, $this->paging, '', '', $this->baseUrl . 'photo/',$this->special_photo, $this->baseTitle, $this->pageNr); } } /* Stats Box */ $htmlRight .= ''; $statsBoxTitle = 'Statistik'; $statsBoxHtml = $htmlRight; /* BestPic & Voting Box*/ if($this->event->getStarttime('timestamp') < time() && $this->bestPhotos) { /* Voting Box */ // $vote = $this->event->getVotingAverage(); // $this->addOnVoting->toHtml($this->renderer); if ($vote > 7) { $class = 'ICON24_CW_VOTE_GOOD'; } else if (!$vote || $vote > 4) { $class = 'ICON24_CW_VOTE_NEUTRAL'; } else { $class = 'ICON24_CW_VOTE_BAD'; } /* $userVote = Registry::get('session')->loggedIn ? $this->addOnVoting->getHtml() : ''; $voteHtml = '
'; $voteHtml .= '
'; $voteHtml .= ' '.'Deine Bewertung'.''; $voteHtml .= '
'; $voteHtml .= '
' . $userVote . '
'; $voteHtml .= '
'; $voteHtml .= ' '.'Bisherige Bewertung'.''; $voteHtml .= '
' . $vote . ' (' . $this->event->getVotingCounter() . ' '.'Stimmen'.')
'; $voteHtml .= '
'; $voteHtml .= '
'; */ } /* test votebox */ $voteBoxTitle = 'Event bewerten'; //$voteBoxHtml = 'vote box'; /* test featured events box */ /* $featuredBoxTitle = 'Top Events '; if($this->featuredEvents) { $featuredBoxHtml = '
    '; foreach($this->featuredEvents['entries'] as $fEvent) { $link = '/event/'.$fEvent->getId(); $eid = $fEvent->getId(); $linkTrack = 'onclick="return Util.trackGaqEvent(\'TopEvent\', \''.$eid.'\', \''.$this->uriPath.'\');"'; $meetPointTrack = 'Util.trackGaqEvent(\'TopEvent_Meetpoint\', \''.$eid.'\', \''.$this->uriPath.'\');'; $tempHtml = '
  • ' .'
    ' .'' .''.$fEvent->getName().'' .''; $tempHtml .= '
    '; $tempHtml .= '

    '.$fEvent->getName() . '

    '.Generator_Content::formatDate($fEvent->getStarttime(),'date') . ' @ '.$fEvent->getLocationName().', '.$fEvent->getLocationCity().''; $tempHtml .= '
    '; //content $tempHtml .= '
    ' //event .'
  • '; $featuredBoxHtml .= $tempHtml; } $featuredBoxHtml .= '
'; // END Featured Events } else { $featuredBoxHtml = ''; } */ // Singles Box if($this->singles) { $singleBoxTitle = 'Online Singles'; $singleBoxHtml = '
    '; foreach($this->singles as $uid => $single) { $uName = $single->getUsername(); $origin = (($single->getUserData()->getDistrictName() && $single->getUserData()->getProvinceName()) ? (($single->getUserData()->getDistrictName() != $single->getUserData()->getProvinceName()) ? $single->getUserData()->getDistrictName() . ', ' : null) . $single->getUserData()->getProvinceName() : null); $singleBoxHtml .= '
  • '; $singleBoxHtml .= ' '.$uName.' '; $singleBoxHtml .= ''; $singleBoxHtml .= ''.$uName.''; $singleBoxHtml .= '' . // '' ''.$single->getAge().' ' .'
    ' // .'
    ' .''.$origin .'' ; $singleBoxHtml .= '
    '; $singleBoxHtml .= '
  • '; } $singleBoxHtml .= '
'; $singleBoxHtml .= '
Weitere Singles Flirtfinder'; } else { /* Single Search Box */ /* Szene1 Left Box Content */ //if(!$this->loggedIn) //{ $singleBoxTitle = 'Singlesuche'; $crit = new Szene1_User_SimpleCriteriaFactory(); $crit->attachCriterion( Szene1_User_SimpleCriteriaFactory::SEARCH_GENDER, null, 'search_gender' ); $crit->attachCriterion( Szene1_User_SimpleCriteriaFactory::SEARCH_AGE, 18, 'search_age', 29 ); $crit->attachCriterion( Szene1_User_SimpleCriteriaFactory::SEARCH_AGE_TO, 29 ); $crit->attachCriterion( Szene1_User_SimpleCriteriaFactory::SEARCH_LOVESTATE, null, 'search_lovestate' ); $crit->attachCriterion( Szene1_User_SimpleCriteriaFactory::SEARCH_USERPIC1, 'yes', 'search_userpic' ); $crit->attachCriterion( Szene1_User_SimpleCriteriaFactory::SEARCH_ONLINE, null, 'search_online' ); $ssHtml = '
'; $singleBoxHtml = $ssHtml.'

'; $singleBoxTitle = 'Online Singles'; //} /* End Single Search Box */ } /* Single Search */ /* Flirtpoint */ if($this->flirtpointCounter) { $fpCount = $this->flirtpointCounter ? ' ('. $this->flirtpointCounter. ')' : ''; $meetpointSingleBoxTitle = 'Flirtpoint' . $fpCount; $meetpointSingleBoxTitle = '' . $meetpointSingleBoxTitle . ''; $meetpointSingleBoxHtml = $this->meetpointSingleUnits; } /* Meetpoint Box */ $meetpointBoxTitle = 'Meetpoint' . ' (' . $this->meetpointCounter . ')'; $meetpointBoxTitle = '' . $meetpointBoxTitle . ''; $meetpointBoxHtml = $this->meetpointUnits; if (Registry::get('session')->loggedIn) { if(!$this->meetpoint->hasEntry($this->user->getId())) { $past = ($this->event->getStarttime('timestamp')'.$meetMeThereCap.''; } /* 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(); // $old = 'https://maps.google.com/maps/api/staticmap?center='.$this->location->getName().'&zoom=10&size=300x200&maptype=roadmap // &markers=color:red|label:S|'.$this->location->getLatitude().','.$this->location->getLongitude().'&sensor=false'; $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); /* Like Box*/ $likeBoxTitle = 'Facebook'; $likeBoxHtml = ''; /* End Like Box*/ %>

<% 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 %>