Esempio n. 1
0
if (Game::findGame()->type != "geo") {
    header('Location: showAnswerOther.php');
}
/*
if (Game::findGame()->type=="pop")
      header( 'Location: showAnswerPop.php') ;
if (Game::findGame()->type=="weather")
      header( 'Location: showAnswerWeather.php') ;
if (Game::findGame()->type=="age")
      header( 'Location: showAnswerAge.php') ;
if (Game::findGame()->type=="user")
      header( 'Location: showAnswerAge.php') ;
if (Game::findGame()->type=="time")
      header( 'Location: showAnswerTime.php');
*/
$allAnswers = new AllAnswers($_SESSION["questionNumber"]);
?>

<html>
<head>
      <link rel="stylesheet" href="style/global.css">
      <style type="text/css">
            html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}



          #overlayWrap{
            left:400px;
          }

          #scoresWrap{
Esempio n. 2
0
<?php

session_start();
//echo "sdfsdf";
//echo $_SESSION["questionNumber"];
require 'controller/dbsettings.php';
//  $_SESSION["game_id"]=90993;
//$_SESSION["questionNumber"]=7;
$allAnswers = new AllAnswers($_SESSION["questionNumber"]);
$theQuestion = Question::loadQuestion();
?>

<html>
<head>
      <link rel="stylesheet" href="style/global.css">
      <link rel="stylesheet" href="style/inputButton.css">
      <link href="nouislider.min.css" rel="stylesheet">
      <style type="text/css">
            html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
          html{
            background:#000;
          }

          body{
            <?php 
if ($theQuestion->type == "age") {
    ?>
              background-size: contain;
            <?php 
} else {
    ?>
Esempio n. 3
0
<?php

session_start();
//echo "sdfsdf";
require 'controller/dbsettings.php';
if (Game::findGame()->type != "geo" && Game::findGame()->type != "pt" && Game::findGame()->type != "places") {
    header('Location: showAnswerOther.php');
}
$theQuestion = Question::loadQuestion();
$theQuestion->alertUsers(-1);
$allAnswers = new AllAnswers($_SESSION["questionNumber"]);
//die ($allAnswers->zoomLevel());
?>


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Answer</title>

	<link rel="stylesheet" href="style/global.css">
	<link rel="stylesheet" href="style/showAnswer.css">
	<link rel="stylesheet" href="style/showAnswerOther.css">

	<!--<script src="scripts/getQuestion.js"></script>-->
	<script src="scripts/global.js"></script>
	<script src="scripts/socketScripts.js"></script>
	<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFCvK3FecOiz5zPixoSmGzPsh0Zv75tZs"></script>

	<script>
Esempio n. 4
0
<?php

session_start();
//$_SESSION["questionNumber"]=7;
//die();
//echo "sdfsdf";
//die ($_SESSION["questionNumber"]);
//$_SESSION["game_id"]=39407;
require 'controller/dbsettings.php';
//die ($_SESSION["questionNumber"]);
//$_SESSION["questionNumber"]=2;
//$_SESSION["questionNumber"]--;
//echo ($_SESSION["questionNumber"]);
$allAnswers = new AllAnswers($_SESSION["questionNumber"]);
$allAnswers->fillMissingAnswers();
//$theQuestion=Question::loadQuestion();
//$allAnswers->getTP();
//print_r(sizeof($allAnswers->allAnswers ));
//die();
//die ($_SESSION["questionNumber"]);
?>

<html>
<head>
      <link rel="stylesheet" href="style/global.css">
      <link rel="stylesheet" href="style/inputButton.css">
      <link rel="stylesheet" href="style/endScreen.css">
      <link href="nouislider.min.css" rel="stylesheet">
      <style type="text/css">
            html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
          html{
Esempio n. 5
0
<?php

session_start();
require 'controller/dbsettings.php';
$allAnswers = new AllAnswers($_SESSION["questionNumber"]);
?>
<html>
<head>
<style type="text/css">
      html, body, #map-canvas { height: 100%; margin: 0; padding: 0;}
    </style>
</head>
<body>

Answer:
<?php 
$allAnswers->getTP();
foreach ($allAnswers->allAnswers as $key => $value) {
    ?>
  User: <?php 
    echo $value->name;
    ?>
  Distance away:  <?php 
    echo $value->distanceAway;
    ?>
 miles away.
  Points this round: <?php 
    echo $value->roundPoints;
    ?>
 
  Total miles: <?php