Exemplo n.º 1
0
        $result = myquery("(SELECT game_users_crafts.*,game_users.clan_id,game_users.name FROM game_users_crafts,game_users WHERE game_users_crafts.craft_index={$craft_index} AND game_users_crafts.times>0 AND game_users_crafts.user_id=game_users.user_id AND game_users.clan_id<>1) UNION (SELECT game_users_crafts.*,game_users_archive.clan_id,game_users_archive.name FROM game_users_crafts,game_users_archive WHERE game_users_crafts.craft_index={$craft_index} AND game_users_crafts.times>0 AND game_users_crafts.user_id=game_users_archive.user_id AND game_users_archive.clan_id<>1) ORDER BY times DESC  LIMIT 10");
    } else {
        $result = myquery("(SELECT game_users_crafts.*,game_users.clan_id,game_users.name FROM game_users_crafts,game_users WHERE game_users_crafts.craft_index={$craft_index} AND game_users_crafts.profile=1 AND game_users_crafts.times>0 AND game_users_crafts.user_id=game_users.user_id AND game_users.clan_id<>1) UNION (SELECT game_users_crafts.*,game_users_archive.clan_id,game_users_archive.name FROM game_users_crafts,game_users_archive WHERE game_users_crafts.craft_index={$craft_index} AND game_users_crafts.times>0 AND game_users_crafts.profile=1 AND game_users_crafts.user_id=game_users_archive.user_id AND game_users_archive.clan_id<>1) ORDER BY times DESC  LIMIT 10");
    }
    echo '<table cellpadding="0" cellspacing="4" border=0><tr><td width="250"><font face="Verdana" size="3" color="#f3f3f3"><b>10 лучших игроков в профессии "' . get_craft_name($craft_index) . '"</b></font><br></td><td width="50"><font size="2" color="#eeeeee">Ранг</font></td><td width="220"><font size="2" color="#eeeeee">Ник</font></td><td width="120"><font size="2" color="#eeeeee">Уровень</font></td></tr>';
    for ($i = 1; $craft = mysql_fetch_array($result); $i++) {
        echo '<tr><td></td><td><font size="2" color="#bbbbbb">' . $i . '</font></td><td><font size="2" color="#bbbbbb"><a href="http://' . domain_name . '/view/?userid=' . $craft["user_id"] . '" target="_blank"><img src="http://' . img_domain . '/nav/i.gif" border=0 alt="Инфо"></a>';
        if ($craft['clan_id'] != 0) {
            echo '<img src="http://' . img_domain . '/clan/' . $craft['clan_id'] . '.gif"> ';
        }
        echo '' . $craft['name'] . '</font></td><td>' . floor(CraftSpetsTimeToLevel($craft_index, $craft['times'])) . ' (' . $craft['times'] . ')</td></tr>';
    }
    echo '</table><br>';
}
$sel = myquery("SELECT DISTINCT craft_index FROM game_users_crafts WHERE profile=1 AND times>0");
while (list($craft_index) = mysql_fetch_array($sel)) {
    print_top($craft_index);
}
$result = myquery("(SELECT game_users.user_id, game_users.clan_id, game_users.name, game_users_guild.guild_times, game_users_guild.guild_lev FROM game_users_guild Join game_users On game_users_guild.user_id=game_users.user_id WHERE game_users.clan_id<>1 AND game_users.clan_id<>4) UNION (SELECT game_users_archive.user_id, game_users_archive.clan_id, game_users_archive.name, game_users_guild.guild_times, game_users_guild.guild_lev FROM game_users_guild Join game_users_archive On game_users_guild.user_id=game_users_archive.user_id WHERE game_users_archive.clan_id<>1 AND game_users_archive.clan_id<>4) ORDER BY guild_times DESC LIMIT 10");
echo '<table cellpadding="0" cellspacing="4" border=0><tr><td width="250"><font face="Verdana" size="3" color="#f3f3f3"><b>10 лучших наёмников</b></font><br></td><td width="50"><font size="2" color="#eeeeee">Ранг</font></td><td width="220"><font size="2" color="#eeeeee">Ник</font></td><td width="120"><font size="2" color="#eeeeee">Уровень</font></td></tr>';
for ($i = 1; $player = mysql_fetch_array($result); $i++) {
    echo '<tr><td></td><td><font size="2" color="#bbbbbb">' . $i . '</font></td><td><font size="2" color="#bbbbbb"><a href="http://' . domain_name . '/view/?userid=' . $player["user_id"] . '" target="_blank"><img src="http://' . img_domain . '/nav/i.gif" border=0 alt="Инфо"></a>';
    if ($player['clan_id'] != '0') {
        echo '<img src="http://' . img_domain . '/clan/' . $player['clan_id'] . '.gif"> ';
    }
    echo '' . $player['name'] . '</font></td><td>' . $player['guild_lev'] . ' (' . $player['guild_times'] . ')</td></tr>';
}
echo '</table><br>';
if (function_exists("save_debug")) {
    save_debug();
}
Exemplo n.º 2
0
function stdfoot($normalpage = true, $update = true, $adminpage = false, $torrentspage = false, $forumpage = false)
{
    global $STYLEPATH, $tpl, $no_columns, $PRINT_DEBUG, $STYLETYPE;
    $tpl->set('to_top', print_top());
    $tpl->set('tracker_url', print_trackerurl());
    $tpl->set('site_name', print_sitename());
    $tpl->set('user_name', print_username());
    $tpl->set('main_footer', bottom_menu() . "<br />\n");
    $tpl->set('xbtit_version', print_version());
    $tpl->set('style_copyright', print_designer());
    $tpl->set('xbtit_debug', $PRINT_DEBUG ? print_debug() : "");
    $tpl->set('news_text', print_disclaimer());
    if ($STYLETYPE == 2) {
        // It's a style modified for atmoner's original system
        // Improvement of template by atmoner
        if ($normalpage && !$no_columns) {
            $tpl->set("RIGHT_COL", true, true);
            $tpl->set("LEFT_COL", true, true);
            $tpl->set("NO_HEADER", true, true);
            $tpl->set("NO_FOOTER", true, true);
        } elseif ($adminpage) {
            $tpl->set("RIGHT_COL", false, true);
            $tpl->set("LEFT_COL", true, true);
            $tpl->set("NO_HEADER", true, true);
            $tpl->set("NO_FOOTER", true, true);
        } elseif ($torrentspage || $forumpage || $no_columns == 1) {
            $tpl->set("RIGHT_COL", false, true);
            $tpl->set("LEFT_COL", false, true);
            $tpl->set("NO_HEADER", true, true);
            $tpl->set("NO_FOOTER", true, true);
        } else {
            $tpl->set("RIGHT_COL", false, true);
            $tpl->set("LEFT_COL", false, true);
            $tpl->set("NO_HEADER", false, true);
            $tpl->set("NO_FOOTER", false, true);
        }
        echo $tpl->fetch(load_template('main.tpl'));
    } elseif ($STYLETYPE == 3) {
        // It's a style modified for Petr1fied's enhanced version of atmoner's system.
        $tpl->set("TYPE1_EXCLUSIVE_1", false, true);
        $tpl->set("TYPE1_EXCLUSIVE_2", false, true);
        $tpl->set("TYPE1_EXCLUSIVE_3", false, true);
        $tpl->set("TYPE1_EXCLUSIVE_4", false, true);
        $tpl->set("TYPE1_EXCLUSIVE_5", false, true);
        $tpl->set("TYPE2_EXCLUSIVE_1", false, true);
        $tpl->set("TYPE2_EXCLUSIVE_2", false, true);
        $tpl->set("TYPE2_EXCLUSIVE_3", false, true);
        $tpl->set("TYPE2_EXCLUSIVE_4", false, true);
        $tpl->set("TYPE2_EXCLUSIVE_5", false, true);
        $tpl->set("TYPE3_EXCLUSIVE_1", false, true);
        $tpl->set("TYPE3_EXCLUSIVE_2", false, true);
        $tpl->set("TYPE3_EXCLUSIVE_3", false, true);
        $tpl->set("TYPE3_EXCLUSIVE_4", false, true);
        $tpl->set("TYPE3_EXCLUSIVE_5", false, true);
        $tpl->set("TYPE4_EXCLUSIVE_1", false, true);
        $tpl->set("TYPE4_EXCLUSIVE_2", false, true);
        $tpl->set("TYPE4_EXCLUSIVE_3", false, true);
        $tpl->set("TYPE4_EXCLUSIVE_4", false, true);
        $tpl->set("TYPE4_EXCLUSIVE_5", false, true);
        if ($normalpage && !$no_columns) {
            $tpl->set("HAS_LEFT_COL", true, true);
            $tpl->set("HAS_RIGHT_COL", true, true);
            $tpl->set("IS_DISPLAYED_1", true, true);
            $tpl->set("IS_DISPLAYED_2", true, true);
            $tpl->set("IS_DISPLAYED_3", true, true);
            $tpl->set("IS_DISPLAYED_4", true, true);
            $tpl->set("IS_DISPLAYED_5", true, true);
            $tpl->set("TYPE1_EXCLUSIVE_1", true, true);
            $tpl->set("TYPE1_EXCLUSIVE_2", true, true);
            $tpl->set("TYPE1_EXCLUSIVE_3", true, true);
            $tpl->set("TYPE1_EXCLUSIVE_4", true, true);
            $tpl->set("TYPE1_EXCLUSIVE_5", true, true);
        } elseif ($adminpage) {
            $tpl->set("HAS_LEFT_COL", true, true);
            $tpl->set("HAS_RIGHT_COL", false, true);
            $tpl->set("IS_DISPLAYED_1", true, true);
            $tpl->set("IS_DISPLAYED_2", true, true);
            $tpl->set("IS_DISPLAYED_3", true, true);
            $tpl->set("IS_DISPLAYED_4", true, true);
            $tpl->set("IS_DISPLAYED_5", true, true);
            $tpl->set("TYPE2_EXCLUSIVE_1", true, true);
            $tpl->set("TYPE2_EXCLUSIVE_2", true, true);
            $tpl->set("TYPE2_EXCLUSIVE_3", true, true);
            $tpl->set("TYPE2_EXCLUSIVE_4", true, true);
            $tpl->set("TYPE2_EXCLUSIVE_5", true, true);
        } elseif ($torrentspage || $forumpage || $no_columns == 1) {
            $tpl->set("HAS_LEFT_COL", false, true);
            $tpl->set("HAS_RIGHT_COL", false, true);
            $tpl->set("IS_DISPLAYED_1", true, true);
            $tpl->set("IS_DISPLAYED_2", true, true);
            $tpl->set("IS_DISPLAYED_3", true, true);
            $tpl->set("IS_DISPLAYED_4", true, true);
            $tpl->set("IS_DISPLAYED_5", true, true);
            $tpl->set("IS_DISPLAYED_5", true, true);
            $tpl->set("TYPE3_EXCLUSIVE_1", true, true);
            $tpl->set("TYPE3_EXCLUSIVE_2", true, true);
            $tpl->set("TYPE3_EXCLUSIVE_3", true, true);
            $tpl->set("TYPE3_EXCLUSIVE_4", true, true);
            $tpl->set("TYPE3_EXCLUSIVE_5", true, true);
        } else {
            $tpl->set("HAS_LEFT_COL", false, true);
            $tpl->set("HAS_RIGHT_COL", false, true);
            $tpl->set("IS_DISPLAYED_1", false, true);
            $tpl->set("IS_DISPLAYED_2", false, true);
            $tpl->set("IS_DISPLAYED_3", false, true);
            $tpl->set("IS_DISPLAYED_4", false, true);
            $tpl->set("IS_DISPLAYED_5", false, true);
            $tpl->set("IS_DISPLAYED_5", false, true);
            $tpl->set("TYPE4_EXCLUSIVE_1", true, true);
            $tpl->set("TYPE4_EXCLUSIVE_2", true, true);
            $tpl->set("TYPE4_EXCLUSIVE_3", true, true);
            $tpl->set("TYPE4_EXCLUSIVE_4", true, true);
            $tpl->set("TYPE4_EXCLUSIVE_5", true, true);
        }
        echo $tpl->fetch(load_template('main.tpl'));
    } else {
        // It's an original style type. Also default to this if there's an unknown value for the $STYLETYPE variable.
        if ($normalpage && !$no_columns) {
            echo $tpl->fetch(load_template('main.tpl'));
        } elseif ($adminpage) {
            if (file_exists(load_template('main.left_column.tpl'))) {
                echo $tpl->fetch(load_template('main.left_column.tpl'));
            } else {
                echo $tpl->fetch(load_template('main.tpl'));
            }
        } elseif ($torrentspage || $forumpage || $no_columns == 1) {
            if (file_exists(load_template('main.no_columns.tpl'))) {
                echo $tpl->fetch(load_template('main.no_columns.tpl'));
            } else {
                echo $tpl->fetch(load_template('main.tpl'));
            }
        } else {
            if (file_exists(load_template('main.no_header_1_column.tpl'))) {
                echo $tpl->fetch(load_template('main.no_header_1_column.tpl'));
            } else {
                echo $tpl->fetch(load_template('main.tpl'));
            }
        }
    }
    ob_end_flush();
    if ($update) {
        register_shutdown_function('updatedata');
    }
}
Exemplo n.º 3
0
function stdfoot($normalpage = true, $update = true, $adminpage = false, $torrentspage = false, $forumpage = false)
{
    global $STYLEPATH, $tpl, $no_columns;
    $tpl->set('to_top', print_top());
    $tpl->set('tracker_url', print_trackerurl());
    $tpl->set('site_name', print_sitename());
    $tpl->set('user_name', print_username());
    $tpl->set('main_footer', bottom_menu() . "<br />\n");
    $tpl->set('xbtit_version', print_version());
    $tpl->set('style_copyright', print_designer());
    $tpl->set('xbtit_debug', print_debug());
    if ($normalpage && !$no_columns) {
        echo $tpl->fetch(load_template('main.tpl'));
    } elseif ($adminpage) {
        echo $tpl->fetch(load_template('main.left_column.tpl'));
    } elseif ($torrentspage || $forumpage || $no_columns == 1) {
        echo $tpl->fetch(load_template('main.no_columns.tpl'));
    } else {
        echo $tpl->fetch(load_template('main.no_header_1_column.tpl'));
    }
    ob_end_flush();
    if ($update) {
        register_shutdown_function('updatedata');
    }
}