Ejemplo n.º 1
0
     }
     if ($sector_id == $player->sector_id) {
         echo '</a>';
     }
     echo '</div>';
 }
 // Locations
 if (isset($locations[$sector_id]) && !isset($sector_visited[$sector_id])) {
     sort($locations[$sector_id]);
     echo '<div class="lml">';
     foreach ($locations[$sector_id] as $location) {
         if ($sector_id == $player->sector_id && $location_cache[$location][1]) {
             $container2["body"] = $location_cache[$location][1];
             echo '<a href="';
             echo 'loader2.php?sn=';
             echo SmrSession::get_new_sn($container2);
             echo '">';
         }
         echo '<img src="';
         echo $location_cache[$location][2];
         echo '"alt="';
         echo $location_cache[$location][0];
         echo '" title="';
         echo $location_cache[$location][0];
         echo '">';
         if ($sector_id == $player->sector_id && $location_cache[$location][1]) {
             echo '</a>';
         }
     }
     echo '</div>';
 }
Ejemplo n.º 2
0
    if ($player->last_sector_id == $links[4]) {
        echo ' green';
    } else {
        if (isset($unvisited[$links[4]])) {
            echo ' yellow';
        } else {
            echo ' dgreen';
        }
    }
    echo '" href="loader2.php?sn=' . SmrSession::get_new_sn($container1) . '">';
    echo $links[4];
    echo '</a></div>';
    if (!empty($ship->hardware[HARDWARE_SCANNER])) {
        $container2['target_sector'] = $links[4];
        echo '</td><td>';
        echo '<div class="cssv"><a class="cssc" href="loader2.php?sn=' . SmrSession::get_new_sn($container2) . '">S<br>C<br>A<br>N</a></div>';
    }
    echo '</td></tr></table>';
}
echo '</div><br>';
echo '</td><td style="padding:0px;vertical-align:top;width:32em;">';
// check if we have a course plotted
$db->query('
SELECT course,distance FROM player_plotted_course 
WHERE account_id=' . $player->account_id . '
AND game_id=' . $player->game_id . '
LIMIT 1');
if ($db->next_record()) {
    // get the array back
    $path_list = unserialize(stripslashes($db->f("course")));
    $distance = $db->f("distance");
Ejemplo n.º 3
0
} else {
    $container["link_id"] = 0;
    print "<a href=\"http://www.mpogd.com/gotm/vote.asp\" target=\"_game_site\"><img border=\"0\" src=\"images/game_sites/mpogd.png\" width=\"98\" height=\"41\"></a>&nbsp;&nbsp;";
}
$db->query("SELECT timeout FROM vote_links WHERE account_id=" . SmrSession::$old_account_id . " AND link_id=2 LIMIT 1");
if (isset(SmrSession::$game_id) && SmrSession::$game_id > 0 && (!$db->next_record() || $db->f("timeout") < time() - 86400) && rand(0, 100) < 80) {
    $container["link_id"] = 2;
    print "<a href='javascript:window.open(\"http://www.topwebgames.com/in.asp?id=136\");document.location=\"" . URL . "/loader2.php?sn=" . SmrSession::get_new_sn($container) . "\"'><img border=\"0\" src=\"images/game_sites/twg_vote.png\" width=\"98\" height=\"41\"></a>";
} else {
    $container["link_id"] = 0;
    print "<a href=\"http://www.topwebgames.com/in.asp?id=136\" target=\"_game_site\"><img border=\"0\" src=\"images/game_sites/twg.png\" width=\"98\" height=\"41\"></a>&nbsp;&nbsp;";
}
$db->query("SELECT timeout FROM vote_links WHERE account_id=" . SmrSession::$old_account_id . " AND link_id=3 LIMIT 1");
if (isset(SmrSession::$game_id) && SmrSession::$game_id > 0 && (!$db->next_record() || $db->f("timeout") < time() - 86400) && rand(0, 100) < 80) {
    $container["link_id"] = 3;
    print "<a href='javascript:window.open(\"http://www.omgn.com/topgames/vote.php?Game_ID=30\");document.location=\"" . URL . "/loader2.php?sn=" . SmrSession::get_new_sn($container) . "\"'><img border=\"0\" src=\"images/game_sites/omgn_vote.jpg\" width=\"98\" height=\"41\"></a>";
} else {
    $container["link_id"] = 0;
    print "<a href=\"http://www.omgn.com/topgames/vote.php?Game_ID=30\" target=\"_game_site\"><img border=\"0\" src=\"images/game_sites/omgn.jpg\" width=\"98\" height=\"41\"></a>&nbsp;&nbsp;";
}
print "</td>";
$db = new SmrMySqlDatabase();
$db->query("SELECT *\n\t\t\tFROM version\n\t\t\tORDER BY went_live DESC\n\t\t\tLIMIT 1\n\t\t   ");
if ($db->next_record()) {
    $version_id = $db->f("version_id");
    $container = array('url' => 'skeleton.php', 'body' => 'changelog_view.php', 'version_id' => $version_id);
    $version = create_link($container, 'v' . $db->f('major_version') . '.' . $db->f('minor_version') . '.' . $db->f('patch_level'));
}
$this_year = date("Y");
$time_elapsed = getmicrotime() - $time_start;
print "<td align=\"right\" width=\"100%\" style=\"vertical-align:bottom\"><span style=\"font-size:75%;\">Space Merchant Realms<br>{$version}&nbsp;&nbsp;&nbsp;&copy; 2001-{$this_year}<br>hosted by <a href=\"http://www.fem.tu-ilmenau.de/fem_neu/scripts/index.php?fuseaction=page.content&id=1&menue_name=englisch\" target=\"fem\">FeM</a><br />Script runtime: " . number_format($time_elapsed, 3) . " sec</span></td>";