$isbot = false; if (stripos($user_agent, 'bot') != FALSE || stripos($user_agent, 'facebook') !== FALSE || stripos($user_agent, 'disqus') !== FALSE || stripos($user_agent, 'spider') !== FALSE) { $logService->log('TRACE', 'BOT LANDING PAGE', $user_agent, 'login'); $isbot = true; } else { $logService->log('TRACE', 'HUMAN LANDING PAGE', $user_agent, 'login'); } //$logService->log('TRACE','LANDING PAGE 5',$user_agent,'start'); /********************************************************************* Topic based meta-tags generation and setting of default lang if needed **********************************************************************/ $page_title = 'Newsline'; $comments_html = ''; $url = $environment['callback']; if ($threadid) { $thread = $ds->getThread($threadid); $title = $thread['title']; $description = $thread['description']; $text = $thread['text']; $locale = $thread['locale']; $image = $thread['image']; $site_name = $thread['site_name']; $link = $thread['url']; if (!$forum) { $forum = 'pointofviewworld'; } $description_tag = 'Topic from ' . $site_name . ': ' . $description; $url .= $forum . "/" . $threadid . "/7/"; $page_title = $site_name . ': ' . $title; $meta_tags = ' <meta name="description" content="' . $description_tag . '"/>