コード例 #1
0
ファイル: index.php プロジェクト: nopuls/dzcp
while ($mm_get = _fetch($mm_qry)) {
    if ($mm_lastCoord != $mm_get['gmaps_koord']) {
        if ($i > 0) {
            $mm_coords .= ',';
            $mm_infos .= "</tr>','<tr>";
        }
        $mm_infos .= '<td><b style="font-size:13px">&nbsp;' . re($mm_get['city']) . '</td></tr><tr>';
        $mm_coords .= 'new google.maps.LatLng' . $mm_get['gmaps_koord'];
        $realCount++;
    } else {
        if ($markerCount > 0) {
            $mm_markerIcon .= ',';
        }
        $mm_markerIcon .= $realCount - 1 . ':true';
        $markerCount++;
    }
    $userInfos = '<b>' . rawautor($mm_get['id']) . '</b><br /><b>' . _position . ':</b> ' . getrank($mm_get['id']) . '<br />' . userpic($mm_get['id']);
    $mm_infos .= '<td><div id="memberMapInner">' . $userInfos . '</div></td>';
    $mm_lastCoord = $mm_get['gmaps_koord'];
    $i++;
}
$mm_infos .= "</tr>'";
$index = show($dir . "/membermap", array('head' => _membermap, 'mm_coords' => $mm_coords, 'mm_infos' => $mm_infos, 'mm_markerIcon' => $mm_markerIcon));
## SETTINGS ##
$title = $pagetitle . " - " . $where . "";
$time_end = generatetime();
$time = round($time_end - $time_start, 4);
page($index, $title, $where, $time);
## OUTPUT BUFFER END ##
gz_output();
コード例 #2
0
$session = new Session("config/config.ser");
//Wie soll Caching benutzt werden
if (strlen($HTTP_SERVER_VARS['REQUEST_URI']) > 0 && sizeof($_POST) == 0 && sizeof($_GET) == 0 && false) {
    $session->smarty->caching = true;
    if ($clear_cache) {
        $session->smarty->clear_all_cache();
    }
    $session->smarty->cache_lifetime = -1;
    $cache_id = str_replace("/", "|", $HTTP_SERVER_VARS['REQUEST_URI']);
    if ($session->smarty->is_cached($session->config->theme, $cache_id)) {
        $cache = true;
        $session->smarty->display($session->config->theme, $cache_id);
    } else {
        $cache = false;
        $page =& $session->getActPage();
        $session->smarty->assign("pageObject", $page);
        $session->smarty->assign("header", $session->header);
        $session->smarty->assign("config", $session->config);
        $session->smarty->assign("site", $session->site);
        $session->smarty->display($session->config->theme, $cache_id);
    }
} else {
    $page =& $session->getActPage();
    $session->smarty->assign("pageObject", $page);
    $session->smarty->assign("header", $session->header);
    $session->smarty->assign("config", $session->config);
    $session->smarty->assign("site", $session->site);
    $session->smarty->display($session->config->theme);
}
gz_output(9, 1, 1);
//Compression Level, ShowSpeed, ShowCompression