-
-
Save n4zar1/1912618f8242b527343200fb2c77727a to your computer and use it in GitHub Desktop.
Personajes.php
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
<?php | |
include_once "../inc/data.php"; | |
include_once "../inc/pcudata.php"; | |
include_once '../steamauth/steamauth.php'; | |
include_once '../steamauth/userInfo.php'; | |
if(isset($_POST["activeVinculo"])){ | |
Character::updateActivePjStatus($id, 1); | |
header("Location: personajes.php"); | |
} | |
if(isset($_SESSION['steamid'])){ | |
$steamiddec = $_SESSION['steamid']; | |
$name = $_SESSION['steam_personaname']; | |
$steamid = "steam:".dechex($steamiddec); | |
Character::updateIdentifierPj($steamid, $id); | |
unset($_SESSION['steamid']); | |
unset($_SESSION['steam_uptodate']); | |
header("Location: personajes.php"); | |
} | |
include_once "../inc/up.php"; | |
?> | |
<!--begin::Content--> | |
<div class="content d-flex flex-column flex-column-fluid" id="kt_content"> | |
<!--begin::Subheader--> | |
<div class="subheader py-2 py-lg-6 subheader-transparent " id="kt_subheader"> | |
<div class=" container d-flex align-items-center justify-content-between flex-wrap flex-sm-nowrap"> | |
<!--begin::Info--> | |
<div class="d-flex align-items-center flex-wrap mr-2"> | |
<!--begin::Page Title--> | |
<h5 class="text-dark font-weight-bold mt-2 mb-2 mr-5"> | |
Personajes | |
</h5> | |
<!--end::Page Title--> | |
</div> | |
<!--end::Info--> | |
</div> | |
</div> | |
<!--end::Subheader--> | |
<!--begin::Entry--> | |
<div class="d-flex flex-column-fluid"> | |
<!--begin::Container--> | |
<div class=" container "> | |
<!-- aqui va la wea --> | |
<div class="row"> | |
<?php | |
if($identifier == null){ | |
echo ' | |
<div class="col-md-12"> | |
<div class="card text-center"> | |
<div class="card-body"> | |
<h2>¡Oops!</h2><br>No hemos detectado ningún personaje vinculado con tu cuenta de '.$pcuName.'¿Qué esperas para vincularlo?'.'<br/><br/>'; | |
echo loginbutton(); | |
echo' </div> | |
</div><br> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div>'; | |
include_once "../inc/down.php"; | |
return; | |
} | |
if($identifierConfirmed == 0){ | |
echo ' | |
<div class="col-md-12"> | |
<div class="card text-center"> | |
<div class="card-body"> | |
<h2>¡Hemos recibido una solicitud para vincular un personaje con tu cuenta!</h2><br> | |
<h4><b> Nombre de la cuenta:</b><br>'.Character::getCharacterNameFromIdentifier($identifier).'</h4><br> | |
<form action="" method="POST"><input type="submit" name="activeVinculo" class="btn btn-dark btn-lg btn-block" value="Vincular personaje con mi cuenta"></form>'; | |
echo' </div> | |
</div><br> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div>'; | |
include_once "../inc/down.php"; | |
return; | |
} | |
?> | |
<div class="col-md-12"> | |
<div class="card text-center"> | |
<div class="card-body"> | |
<img src="<?php echo $avatar?>" class="rounded-circle img-fluid" style="height: 150px;"><br><br> | |
<h3><b><?php echo $firstname?> <?php echo $lastname?></b></h3><br> | |
<p><i class="fas fa-user-tag" style="color: #660000;"></i>Grupo: <b><?php echo $group?></b></p> | |
<p><i class="fas fa-user-secret" style="color: #660000;"></i> Trabajo: <b><?php echo $job?></b></p> | |
<p><i class="fas fa-calendar-check" style="color: #660000;"></i> Fecha de nacimiento: <b><?php echo $dateofbirth?></b></p> | |
<p><i class="fas fa-genderless" style="color: #660000;"></i> Sexo: <b><?php if($sex == "f") echo "Mujer"; else echo "Hombre";?></b></p> | |
<p><i class="fas fa-text-height" style="color: #660000;"></i> Altura: <b><?php echo $height?></b></p> | |
<p><i class="fas fa-phone" style="color: #660000;"></i> Teléfono: <b><?php echo $phone?></b></p> | |
<br><a href="pcu/personaje.php?identifier=<?php echo $identifier?>" class="btn btn-block btn-lg btn-dark text-white">Acceder</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<?php include_once "../inc/down.php";?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment