mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 05:42:12 +01:00 
			
		
		
		
	♻️ Remove $URL_BASE from most html strings
Signed-off-by: Hadrien RENAUD <hadrien.renaud@polytechnique.edu>
This commit is contained in:
		@@ -5,8 +5,8 @@
 | 
			
		||||
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
 | 
			
		||||
    <meta name="viewport" content= "width=device-width, initial-scale=1.0" />
 | 
			
		||||
	<title>Site d'inscription pour le TFJM² <?= $YEAR ?></title>
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="<?= $URL_BASE ?>/style.css"/>
 | 
			
		||||
    <link REL="shortcut icon" href="<?= $URL_BASE ?>/favicon.ico" />
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="/style.css"/>
 | 
			
		||||
    <link REL="shortcut icon" href="/favicon.ico" />
 | 
			
		||||
 | 
			
		||||
    <!-- Bootstrap core CSS -->
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="https://s3-eu-west-1.amazonaws.com/tfjm2-inscriptions/static/inscription/vendor/bootstrap/css/bootstrap.min.css">
 | 
			
		||||
@@ -23,36 +23,36 @@
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
<ul id="menu">
 | 
			
		||||
    <li id="menu-logo"><img src="<?= $URL_BASE ?>/logo.svg" alt="Logo TFJM²"></li>
 | 
			
		||||
	<li><a href="<?= $URL_BASE ?>/">Accueil</a></li>
 | 
			
		||||
	<li><a href="<?= $URL_BASE ?>/tournois">Liste des tournois</a></li>
 | 
			
		||||
    <li id="menu-logo"><img src="/logo.svg" alt="Logo TFJM²"></li>
 | 
			
		||||
	<li><a href="/">Accueil</a></li>
 | 
			
		||||
	<li><a href="/tournois">Liste des tournois</a></li>
 | 
			
		||||
	<?php if (!isset($_SESSION["user_id"])) { ?>
 | 
			
		||||
		<li><a href="<?= $URL_BASE ?>/connexion">Connexion</a></li>
 | 
			
		||||
		<li><a href="<?= $URL_BASE ?>/inscription">Inscription</a></li>
 | 
			
		||||
		<li><a href="/connexion">Connexion</a></li>
 | 
			
		||||
		<li><a href="/inscription">Inscription</a></li>
 | 
			
		||||
	<?php } else { ?>
 | 
			
		||||
		<li><a href="<?= $URL_BASE ?>/mon_compte">Mon compte</a></li>
 | 
			
		||||
		<li><a href="/mon_compte">Mon compte</a></li>
 | 
			
		||||
        <?php if ($_SESSION["role"] == Role::ENCADRANT || $_SESSION["role"] == Role::PARTICIPANT) { ?>
 | 
			
		||||
		    <?php if ($_SESSION["team"] == NULL) { ?>
 | 
			
		||||
			    <li><a href="<?= $URL_BASE ?>/ajouter_equipe">Ajouter une équipe</a></li>
 | 
			
		||||
			    <li><a href="<?= $URL_BASE ?>/rejoindre_equipe">Rejoindre une équipe</a></li>
 | 
			
		||||
			    <li><a href="/ajouter_equipe">Ajouter une équipe</a></li>
 | 
			
		||||
			    <li><a href="/rejoindre_equipe">Rejoindre une équipe</a></li>
 | 
			
		||||
            <?php } else { ?>
 | 
			
		||||
                <li><a href="<?= $URL_BASE ?>/mon_equipe">Mon équipe</a></li>
 | 
			
		||||
                <li><a href="/mon_equipe">Mon équipe</a></li>
 | 
			
		||||
                <?php if ($_SESSION["team"]->getValidationStatus() == ValidationStatus::VALIDATED || true) { ?>
 | 
			
		||||
                    <li><a href="https://paypal.me/galaxyoyo42">Paiement</a></li>
 | 
			
		||||
                    <li><a href="<?= $URL_BASE ?>/solutions">Solutions</a></li>
 | 
			
		||||
                    <li><a href="<?= $URL_BASE ?>/syntheses">Notes de synthèse</a></li>
 | 
			
		||||
                    <li><a href="/solutions">Solutions</a></li>
 | 
			
		||||
                    <li><a href="/syntheses">Notes de synthèse</a></li>
 | 
			
		||||
                <?php } ?>
 | 
			
		||||
            <?php } ?>
 | 
			
		||||
        <?php } ?>
 | 
			
		||||
		<?php if ($_SESSION["role"] == Role::ADMIN) { ?>
 | 
			
		||||
            <li><a href="<?= $URL_BASE ?>/ajouter_tournoi">Ajouter un tournoi</a></li>
 | 
			
		||||
            <li><a href="<?= $URL_BASE ?>/ajouter_organisateur">Ajouter un organisateur</a></li>
 | 
			
		||||
            <li><a href="/ajouter_tournoi">Ajouter un tournoi</a></li>
 | 
			
		||||
            <li><a href="/ajouter_organisateur">Ajouter un organisateur</a></li>
 | 
			
		||||
		<?php } ?>
 | 
			
		||||
        <?php if ($_SESSION["role"] == Role::ADMIN || $_SESSION["role"] == Role::ORGANIZER) { ?>
 | 
			
		||||
            <li><a href="<?= $URL_BASE ?>/solutions_orga">Solutions</a></li>
 | 
			
		||||
            <li><a href="<?= $URL_BASE ?>/syntheses_orga">Notes de synthèse</a></li>
 | 
			
		||||
            <li><a href="/solutions_orga">Solutions</a></li>
 | 
			
		||||
            <li><a href="/syntheses_orga">Notes de synthèse</a></li>
 | 
			
		||||
        <?php } ?>
 | 
			
		||||
		<li><a href="<?= $URL_BASE ?>/deconnexion">Déconnexion</a></li>
 | 
			
		||||
		<li><a href="/deconnexion">Déconnexion</a></li>
 | 
			
		||||
        <hr />
 | 
			
		||||
        <?php
 | 
			
		||||
        if ($_SESSION["role"] != Role::ADMIN) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user