コード例 #1
0
ファイル: Functions.php プロジェクト: CoolHeatCRM/island
function MovePlayer($PID, $RID)
{
    $LID = getlocation($PID);
    $LID2 = getDestination($LID, $RID);
    setPlayerLoc($PID, $LID2);
    $name = getLocationName($LID2);
    AddtoLog($PID, "You traveled to {$name}!", 0, 1);
}
コード例 #2
0
ファイル: index.php プロジェクト: blech/geoplanet-explorer
}
?>

      <?php 
if (isset($_GET['woeid'])) {
    ?>
        <p>Here's the information about the location you requested. Click any of the links to reload this page to learn more about this location.</p>
        <p id="latlong">Clicking any of the links with a lat/lon pair will take you to Yahoo maps.</p>
      <?php 
}
?>
      </div>

      <?php 
if (isset($_GET['start'])) {
    $all = getlocation($_GET['start']);
    if ($all->query->results) {
        echo '<h2>We found these locations, which one do you want?</h2>';
        echo '<ul>';
        if (sizeof($all->query->results->place) > 1) {
            foreach ($all->query->results->place as $p) {
                echo render($p);
            }
        } else {
            echo render($all->query->results->place);
        }
        echo '</ul>';
    } else {
        echo '<h2>Nothing to see here...</h2>';
        echo '<p>Sorry but I was unable to find a place of that name.</p>';
    }