Skip to content
Snippets Groups Projects
Commit 5e42c7e6 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

usage of genPageLink

parent ba7e4e45
Branches
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ if(isset($_SESSION['userId'])){
<div id="g-recaptcha"></div>
<br/>
<button type="button" name="submit" id="loginBtn" class="btn btn-orange">Se connecter</button>
<a href="/register" class="text-light">Pas encore inscrit? 😢</a>
<a href="<?=genPageLink("/register")?>" class="text-light">Pas encore inscrit? 😢</a>
</form>
</div>
</div>
......@@ -112,7 +112,7 @@ if(isset($_SESSION['userId'])){
message: "Redirection dans 3s...",
status: "success"
});
$("#container")."<p>Redirection...<br><a href='/' class='text-light'>Cliquez ici</a> si vous n'êtes pas automatiquement redirigé.</p>";
$("#container").html("<p>Redirection...<br><a href='/' class='text-light'>Cliquez ici</a> si vous n'êtes pas automatiquement redirigé.</p>");
setTimeout(function(){
window.location.href = '/';
}, 2000);
......
......@@ -101,7 +101,7 @@ if(isset($_SESSION['userId'])){
<div id="g-recaptcha"></div>
<br/>
<button type="button" id="registerBtn" class="btn btn-orange">S'inscrire</button>
<a href="/login" class="text-light">Déjà inscrit? 🌈</a>
<a href="<?=genPageLink("/login")?>" class="text-light">Déjà inscrit? 🌈</a>
</form>
</div>
</div>
......@@ -201,7 +201,7 @@ if(isset($_SESSION['userId'])){
message: json.success,
status: "success"
});
$("#container")."<p>Redirection...<br><a href='/login' class='text-light'>Cliquez ici</a> si vous n'êtes pas automatiquement redirigé.</p>";
$("#container").html("<p>Redirection...<br><a href='<?=genPageLink("/login")?>' class='text-light'>Cliquez ici</a> si vous n'êtes pas automatiquement redirigé.</p>");
// On redirige après 5s
setTimeout(function(){
window.location.href = '/login';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment