function updateVisitorStatistics($blogid) { return Statistics::updateVisitorStatistics($blogid); }
<?php /// Copyright (c) 2004-2012, Needlworks / Tatter Network Foundation /// All rights reserved. Licensed under the GPL. /// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) $blogid = getBlogId(); Statistics::updateVisitorStatistics($blogid); $stats = Statistics::getStatistics($blogid); if (!empty($entries) && count($entries) == 1) { $pageTitle = $entries[0]['title']; } else { $pageTitle = ''; } if (!isset($skin)) { $skin = new Skin($context->getProperty('skin.skin')); } $view = $skin->outter; $view = str_replace('[##_SKIN_head_end_##]', getScriptsOnHead() . '[##_SKIN_head_end_##]', $view); // TO DO : caching this part. $view = str_replace('[##_SKIN_body_start_##]', getUpperView(isset($paging) ? $paging : null) . '[##_SKIN_body_start_##]', $view); $view = str_replace('[##_SKIN_body_end_##]', getLowerView() . getScriptsOnFoot() . '[##_SKIN_body_end_##]', $view); // care the order for js function overloading issue. $automaticLink = "\t<link rel=\"stylesheet\" href=\"" . $context->getProperty('uri.service') . "/resources/style/system.css\" type=\"text/css\" media=\"screen\" />\n"; dress('SKIN_head_end', $automaticLink . "[##_SKIN_head_end_##]", $view); if ($context->getProperty('blog.useBlogIconAsIphoneShortcut') == true && file_exists(__TEXTCUBE_ATTACH_DIR__ . "/" . $context->getProperty('blog.id') . "/index.gif")) { dress('SKIN_head_end', '<link rel="apple-touch-icon" href="' . $context->getProperty('uri.default') . "/index.gif" . '" />' . "[##_SKIN_head_end_##]", $view); } if (defined('__TEXTCUBE_COVER__')) { dress('body_id', "tt-body-cover", $view); } else { if (!empty($category)) {