<?php /*************************************************************************** * For license information see doc/license.txt * * Unicode Reminder メモ ***************************************************************************/ require __DIR__ . '/lib2/web.inc.php'; $sUserCountry = $login->getUserCountry(); // create object for "newest" information $getNew = new getNew($sUserCountry); $tpl->name = 'start'; $tpl->menuitem = MNU_START; $tpl->caching = true; $tpl->cache_lifetime = 300; $tpl->cache_id = $sUserCountry . '|' . $opt['page']['protocol']; if (!$tpl->is_cached()) { // welcome message if (isset($opt['page']['message'])) { $tpl->assign('message', $opt['page']['message']); } else { $tpl->assign('message', $translate->t('You can find everything you need to go Geocaching ...', '', '', 0)); } // pictures $tpl->assign('pictures', LogPics::get(LogPics::FOR_STARTPAGE_GALLERY)); // news entries $tpl->assign('news_onstart', $opt['news']['onstart']); if ($opt['news']['include'] == '') { $news = array(); $rs = sql_slave('SELECT `news`.`date_created` `date`, `news`.`content` `content`, `news_topics`.`name` `topic` FROM `news`
<?php /*************************************************************************** * For license information see doc/license.txt * * Unicode Reminder メモ ***************************************************************************/ require 'lib2/web.inc.php'; require 'lib2/logic/logpics.inc.php'; $sUserCountry = $login->getUserCountry(); // create object for "newest" information $getNew = new getNew($sUserCountry); $tpl->main_template = 'sys_oc404'; $tpl->name = 'sys_oc404'; $tpl->caching = true; $tpl->cache_lifetime = 300; $tpl->cache_id = $sUserCountry; // test for redirection to this page $isRedirect404 = isset($_SERVER['REDIRECT_URL']); $tpl->assign('isRedirect404', $isRedirect404); // determine website url, if is 404 redirection if ($isRedirect404) { // check length $uril = 70; $uri = 'http://' . strtolower($_SERVER['SERVER_NAME']) . $_SERVER['REQUEST_URI']; // limit to $uril if (strlen($uri) > $uril) { $uri = substr($uri, 0, $uril - 3) . '...'; } // assign uri $tpl->assign('website', $uri);