コード例 #1
0
ファイル: index.php プロジェクト: rougesheep/achiefments
    $game = "all";
}
if (isset($_GET['showComplete']) && !empty($_GET['showComplete'])) {
    $showComplete = $_GET['showComplete'];
} else {
    $showComplete = false;
}
if (isset($_GET['type']) && !empty($_GET['type'])) {
    $type = $_GET['type'];
} else {
    $type = all;
}
if (isset($_GET['gamertag']) && !empty($_GET['gamertag'])) {
    $gamertag = $_GET['gamertag'];
    $safertag = urlencode($gamertag);
    $xuid = get_xuid($gamertag);
} else {
    echo "ERROR: No Gamertag supplied.";
    exit;
}
?>
    <nav class="navbar navbar-default navbar-fixed-top">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
コード例 #2
0
ファイル: getxuid.php プロジェクト: rougesheep/achiefments
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>MCC Achievements</title>
  </head>

  <body>
    <?php 
require 'gubbins.php';
if (isset($_GET['gamertag']) && !empty($_GET['gamertag'])) {
    $gamertag = $_GET['gamertag'];
} else {
    echo "ERROR: No Gamertag supplied.";
    exit;
}
echo "<a href=\"http://ajb.im/achiefments?xuid=" . get_xuid($gamertag) . "\">Continue</a>";
?>
  </body>
</html>