Пример #1
0
            $userpic = $userpic = "<img src=" . $row['userpic'] . ">";
        }
        $resultl = $db->query("SELECT islandid FROM cc" . $n . "_countries WHERE userid='{$row['userid']}'");
        $numoflands = $db->num_rows($resultl);
        $inhalt[$i]['profile_link'] = generate_userlink($row['userid'], $row['username']);
        $inhalt[$i]['username'] = $row['username'];
        $inhalt[$i]['position'] = $nn;
        $inhalt[$i]['image'] = $userpic;
        $inhalt[$i]['race'] = $userrasse['rassenname'];
        $inhalt[$i]['ali_name'] = $allianzname;
        $inhalt[$i]['ali_id'] = $row['allianzid'];
        $inhalt[$i]['points'] = $row['points'];
        $inhalt[$i]['country_count'] = $numoflands;
        $inhalt[$i]['online'] = $online;
        $inhalt[$i]['user_id'] = $row['userid'];
        $inhalt[$i]['message_modul_name'] = generate_messagelink($row['username'], 1);
        $i++;
    }
    $tpl->assign('daten', $inhalt);
    template_out('rank_topten.html', $modul_name);
    exit;
}
if ($action == "user") {
    $pagesbit = 0;
    if (isset($_REQUEST['page'])) {
        $page = intval($_REQUEST['page']);
    } else {
        $page = 0;
    }
    $start = $page * 30;
    $bpage = $page - 1;
Пример #2
0
        $land_link = "<a href=\"{$map_modul_org}?x={$i['x']}&y={$i['y']}\">" . $i[name] . " " . $members_koords . " ({$i['x']}:{$i['y']})</a>";
        $ibit .= $land_link . " {$i['points']} " . $members_points . "<br>";
    }
    $userallianzname = generate_allilink($row['allianzid']);
    if ($row['lastactive'] > time() - 3600) {
        $online = "<span class=\"green\">" . $profile_on . "</span>";
    } else {
        $online = "<span class=\"red\">" . $profile_off . "</span>";
    }
    if (trim($row['userpic']) == "") {
        $upic = "./images/no_user_pic.jpg";
    } else {
        $upic = $row['userpic'];
    }
    $description = bb2html($row['description']);
    $message_link = generate_messagelink($row['username'], 1);
    $tpl->assign('description', $row['description']);
    $tpl->assign('message_link', $message_link);
    $tpl->assign('username', $row['username']);
    $tpl->assign('rasse', $userrasse['rassenname']);
    $tpl->assign('userallianzname', $userallianzname);
    $tpl->assign('points', $row['points']);
    $tpl->assign('ibit', $ibit);
    $tpl->assign('online', $online);
    $tpl->assign('description', $description);
    $tpl->assign('upic', $upic);
    template_out('members_profile.html', $modul_name);
}
if ($action == "race_choose") {
    $new_found_inhalt = array();
    $new_found = array();