-
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 12, 2013
1 parent
a06ebec
commit 03107ce
Showing
2 changed files
with
30 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
<?php | ||
// -/register/index.php | ||
$agent = $_SERVER['HTTP_USER_AGENT']; | ||
if(preg_match('/iPhone/i', $agent)){ | ||
echo 'Haz click en los tres puntitos de abajo y selecciona "Abrir en Safari"<br><br>'; | ||
echo 'Luego <a href="http://fran.local/juego/register/setCookie/forceRegister.php?code='.substr($_SERVER['QUERY_STRING'],1).'">Pincha aqui</a>'; | ||
} else { | ||
if(!preg_match('/iPhone/i', $agent)){ | ||
include("../../functions.php"); | ||
setUserCookie(substr($_SERVER['QUERY_STRING'],1)); | ||
header("Location: ../../user"); | ||
} | ||
|
||
?> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<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>Abajo a mano derecha tienes el icono de Safari</h3> | ||
<br> | ||
<a class="btn btn-large btn-success" href="http://fran.local/juego/register/setCookie/forceRegister.php?code=<?php echo substr($_SERVER['QUERY_STRING'],1); ?>">Cuando abras SAFARI pincha aquí</a> | ||
<hr> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |