-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Francisco Baena
committed
Apr 16, 2013
1 parent
0b75ffc
commit f8bbe97
Showing
4 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
// -/register/index.php | ||
include("../functions.php"); | ||
$code=$_GET['code']; | ||
|
||
if($code==""){ | ||
header("Location: ../"); | ||
} | ||
|
||
$user = getPlayer(controlUserSession(false)); | ||
$thing = getInfoOf($code); | ||
|
||
if ($user!=-1){ | ||
shoot($user->id,$code); | ||
header("Location: ../user/?id=".$thing->id."&type=".$thing->type); | ||
} else { | ||
header("Location: ../"); | ||
} | ||
|
||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,52 @@ | ||
<?php | ||
// -/register/index.php | ||
$disparo=false; | ||
include("../functions.php"); | ||
$code=substr($_SERVER['QUERY_STRING'],1); | ||
|
||
if($code==""){ | ||
header("Location: ../"); | ||
} | ||
|
||
$user = getPlayer(controlUserSession(false)); | ||
$thing=getInfoOf($code); | ||
$user = getPlayer(controlUserSession(false)); | ||
$thing = getInfoOf($code); | ||
|
||
if ($user!=-1){ | ||
$disparo=true; | ||
shoot($user->id,$code); | ||
} | ||
/* | ||
if(!preg_match('/iPhone/i', $agent)){ | ||
setUserSession(substr(); | ||
header("Location: ../../user"); | ||
if ($user!=-1){ | ||
shoot($user->id,$code); | ||
header("Location: ../user/?id=".$thing->id."&type=".$thing->type); | ||
} else { | ||
if(!preg_match('/iPhone/i', $agent)){ | ||
header("Location: ../"); | ||
} | ||
} | ||
*/ | ||
|
||
|
||
|
||
?> | ||
|
||
<P align=center>Has disparado a <?php echo ($thing->type==1?showPerson($thing):showPlace($thing)); ?><br><br> | ||
<!DOCTYPE html> | ||
<html lang="es"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Detectando...</title> | ||
<link rel="stylesheet" href="../css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="../css/style.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="masthead"> | ||
<img src="../img/logoetsii.png" width="40px" height="auto" class="alignleft" style="margin-right:3px"><h3 class="muted">ETSI Informática</h3> | ||
</div> | ||
|
||
<div class="jumbotron"> | ||
<h1>Abre el link en Safari</h1> | ||
<h3>Pulsa el el icono de Safari, abajo a la derecha</h3> | ||
<p align="center">Para disparar a <?php echo ($thing->type==1?showPerson($thing):showPlace($thing)); ?></p> | ||
<br> | ||
<a class="btn btn-large btn-success" href="<?php echo $GLOBALS['gameurl']; ?>/shoot/forceShoot.php?code=<?php echo substr($_SERVER['QUERY_STRING'],1); ?>">Y HAZ CLIC AQUÍ</a> | ||
<hr> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
Para confirmar, pulsa | ||
<!-- boton --> | ||
<br>AQUÍ</p> <!-- (si es un iPhone, no aparecerá este botón, sino que para confirmar debes abrir con Safari)--> | ||
|