当前位置: 首页>>代码示例>>PHP>>正文


PHP SmrSession::get_new_sn方法代码示例

本文整理汇总了PHP中SmrSession::get_new_sn方法的典型用法代码示例。如果您正苦于以下问题:PHP SmrSession::get_new_sn方法的具体用法?PHP SmrSession::get_new_sn怎么用?PHP SmrSession::get_new_sn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SmrSession的用法示例。


在下文中一共展示了SmrSession::get_new_sn方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sort

     }
     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>';
 }
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:map_local.php

示例2: unserialize

    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");
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:current_sector.php

示例3: SmrMySqlDatabase

} 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>";
开发者ID:smrealms,项目名称:smrv2.0,代码行数:31,代码来源:copyright.php


注:本文中的SmrSession::get_new_sn方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。