コード例 #1
0
 public function connexion()
 {
     $message = '';
     $error = '';
     if (!empty($_POST['pseudo']) && !empty($_POST['mot_de_passe'])) {
         //On check le mot de passe
         $data = $this->user->CheckUser()->fetch();
         if ($data['mot_de_passe'] == sha1($_POST['mot_de_passe'])) {
             if ($data['banned'] != 1) {
                 $_SESSION['user'] = $data;
                 header('Location: ' . goToPage('Accueil') . '?connexion=true');
             } else {
                 $error .= 'Ce compte est banni. Vous ne pouvez pas vous connecter.</br> Si vous considérez que ceci est une erreur, veuillez nous contacter à mysporteam@hotmail.fr';
             }
         } else {
             $error .= '<p>Une erreur s\'est produite
     pendant votre identification.<br /> Le mot de passe ou le pseudo
     entré n\'est pas correcte.
     <br />Cliquez <a href="./">ici</a>
     pour revenir à la page d accueil, ou modifiez les informations saisies.</p>';
         }
     }
     $vue = new Vue("Connexion", "User", ['stylesheet.css']);
     $vue->loadpage(['message' => $message, 'error' => $error]);
 }
コード例 #2
0
  <div class="infobox" style="text-align:center; margin:20px auto; width:80%;">
    Aucun message n'a encore été posté dans cette section.
  </div>
<?php 
} else {
    ?>
  <?php 
    foreach ($messages as $key => $value) {
        ?>
    <?php 
        $creator = str_replace(' ', '-', $value['creator']);
        ?>
    <article class="post">
      <div class="conv-pseudo">
        <a href="<?php 
        goToPage('profilUnUtilisateur', ['pseudo' => $value['creator']]);
        ?>
" class="pseudo"><?php 
        echo $value['creator'];
        ?>
</a>
        <img class="avatar" src="<?php 
        echo image('Users/Profil/' . $creator . '.jpg');
        ?>
" />
        <p class="nombre-message">Messages: <?php 
        echo $nbTotalMessageUsers[$value['id_utilisateur']];
        ?>
      </div>
      <div class="conv-contenu">
        <h2 class="titre-post">Titre: <?php 
コード例 #3
0
ファイル: Vue404.php プロジェクト: ArnaudRib/MySporTeam
</head>
<body>
 <div class="wrap">
	<div class="logo">
			<p>Cette page n'existe pas.</p>
			<img src="<?php 
echo image('General/404-1.png');
?>
"/>
			<div class="sub">
			  <p><a href="<?php 
goToPage('Accueil');
?>
">Retourner au menu principal.</a></p>
			</div>
	</div>
 </div>
</body>
コード例 #4
0
    if ($isMembre == false) {
        ?>
          <div  style="margin:0px;padding:3px;font-size:8px;" class="publication forme_case radius_mongroupe">
        <h1 style="margin:0px;padding:3px;font-size:12px;"><?php 
        echo lang("Groupe privé. Evénements masqués.");
        ?>
</h1>
      </div>
      <?php 
    } else {
        if ($evenement != NULL) {
            foreach ($evenement as $key => $value) {
                $nom_evenement = str_replace(' ', '-', $value['nom']);
                ?>
            <a href="<?php 
                goToPage('unevenementgroupe', ['id' => $datagroupe['id'], 'id_evenement' => $value['id']]);
                ?>
">
            <div class="evenenement"><img src="<?php 
                echo image('Groupes/Evenements/' . $nom_evenement . '.jpg');
                ?>
"/></div>
            </a>
        <?php 
            }
        } else {
            ?>
            <div  class="publication forme_case radius_mongroupe">
              <h1><?php 
            echo lang('Aucun événement');
            ?>
コード例 #5
0
          <input type="submit" class="buttonsubmit" name="rechercheAvancee">
        </form>
      </div>

      <div class="recherchegroupe">
        <?php 
foreach ($groupes as $key => $value) {
    ?>
          <?php 
    $nomgroupe = str_replace(' ', '-', $value['nom']);
    ?>
          <?php 
    $nomSport = str_replace(' ', '-', $sportGroupe[$value['id']]);
    ?>
          <a href="<?php 
    goToPage('informationsgroupe', ['id' => $value['id']]);
    ?>
">
            <div id="<?php 
    echo count($groupes);
    ?>
"  class="groupe" style="background-image:url('<?php 
    echo image("Svg/{$nomSport}.svg");
    ?>
')">
              <div style="width:90%; display: inline-flex;align-items: center;text-align:right; margin-left:10%;">
                <div class="imagegroupe usualbackground" style="background-image:url('<?php 
    echo image('Groupes/Profil/' . $nomgroupe . '.jpg');
    ?>
');"> </div>
                <div class="nomgroupe">
コード例 #6
0
ファイル: VueConnexion.php プロジェクト: ArnaudRib/MySporTeam
          <div>
            <label for="login"><img src="<?php 
echo image('Users/icone_utilisateur.png');
?>
" /></label>
            <input type="text" name="pseudo" placeholder="Email ou Pseudo" required>
          </div> <br />

          <div><label for="mdp"><img src="<?php 
echo image('Users/icone_lock.png');
?>
" /></label>
            <input id="mdp" type="password" name="mot_de_passe" placeholder="Mot de passe" oninput="Verification()" required></div> <br />
            <div style="margin-top:-15px;">
              <a style="text-decoration:none !important;" href="<?php 
echo goToPage('forgottenpw');
?>
"> <p class="textunderconnexion"><?php 
echo lang('Mot de passe oublié ?');
?>
</p> </a>
              |
              <a style="text-decoration:none !important;" href="inscription"> <p class="textunderconnexion"><?php 
echo lang('Pas inscrit ?');
?>
</p></a>
            </div>
            <?php 
echo $message;
?>
          </br>
コード例 #7
0
            <?php 
    echo $error;
    ?>
          </div>
        <?php 
}
?>
        <?php 
if ($succes != '') {
    ?>
          <div class="successbox blackborder radius" style='margin:20px auto; margin-bottom:0px'>
            <?php 
    echo $succes;
    ?>
 <b><a href="<?php 
    echo goToPage('informationsgroupe', ['id' => $id]);
    ?>
">ici</a></b>
          </div>
        <?php 
}
?>

        <fieldset>
          <div style="display:block; margin-left:20px;">
            <label for="nom" class="fa fa-group labelnom"></label>
            <input id="nom" type="text" name="nom" placeholder="Nom du Groupe"/></div>
          <div style="display:block;margin-left:20px;">
            <label for="number" class="fa fa-line-chart labelnom"></label>
            <input id="number" type="number" placeholder="Nombre de membres : 45max" name="nombre" min="0" max="45"/>
          </div>
コード例 #8
0
     <span style='font-size:20px; padding-top:15px; color:black;'><?php 
    echo lang("Aucun club trouvé.");
    ?>
</span>
  <?php 
}
?>
  <ul>
  <?php 
foreach ($rechercheclub as $key => $value) {
    ?>
    <?php 
    $clubnom = str_replace(' ', '-', $value['nom']);
    ?>
    <a href="<?php 
    echo goToPage('clubinfo', ['id_club' => $value['id']]);
    ?>
">
      <li onclick="get(this.innerHTML)">
        <div class="photogroupeRecherche">
          <img src="<?php 
    echo image('Clubs/Bannière/' . $clubnom . '.jpg');
    ?>
" class="imgRecherche" alt="" />
        </div>
        <div class="nomgroupeRecherche">
          <?php 
    echo $value['nom'];
    ?>
        </div>
      </li>
コード例 #9
0
ファイル: VueForum.php プロジェクト: ArnaudRib/MySporTeam
<div class="AllForum bodybackground">
  <div class="blockforum">
    <div class="sectionForum">
      <div class="forums">
        <h1 style="font-size: 50px; text-align:center;">Forum</h1>
      </div>

      <?php 
foreach ($topic as $key => $value) {
    ?>
        <hr class="premierHR" />
        <a href="<?php 
    goToPage('topicforum', ['id_topic' => $value['id']]);
    ?>
">
          <div class="containerforum">
            <div class="fleche">
              <i class="fa fa-arrow-circle-o-right fa-3x"></i>
            </div>
            <div class="lien-forum">
              <h3> <?php 
    echo $value['titre'];
    ?>
</h3>
              <p style="font-style: italic; color: black;"><?php 
    echo $value['description'];
    ?>
</p>
            </div>
          </div>
        </a>
コード例 #10
0
ファイル: VueTopic.php プロジェクト: ArnaudRib/MySporTeam
?>
      </div>
      <div class="dernier-message">
        <?php 
echo lang('Dernier message');
?>
      </div>
    </div>

    <hr class="HR1"/>
    <?php 
foreach ($discussions as $key => $value) {
    ?>
      <hr class="HR1"/>
      <a href="<?php 
    goToPage('discussionforum', ['id_topic' => $topic['id'], 'id_discussion' => $value['id']]);
    ?>
">
        <div class="padding10 blockdiscussion">
          <div class="fleche">
            <i class="fa fa-arrow-circle-o-right fa-3x rouge"></i>
          </div>
          <div class="lien-forum sous-topic">
            <h3><?php 
    echo $value['titre'];
    ?>
</h3>
            <p><?php 
    echo lang('Démarré par');
    ?>
 <span style="color:red;"><?php 
コード例 #11
0
ファイル: header.php プロジェクト: ArnaudRib/MySporTeam
    ?>
          <li> <a style="color:white;" href='<?php 
    goToPage('Accueil');
    ?>
'><?php 
    echo lang('Accueil');
    ?>
</a></li>
          <li> <a style="color:white;" href='<?php 
    goToPage('forum');
    ?>
'><?php 
    echo lang('Forum');
    ?>
</a></li>
          <li> <a style="color:white;" href="<?php 
    goToPage('connexion');
    ?>
"><?php 
    echo lang('Connexion');
    ?>
</a></li>
        <?php 
}
?>
        <li class="fa fa-search loupe" onclick="ShowSearchModal()"></li>
      </ul>
    </nav>
  </div>
</header>
コード例 #12
0
<?php

if (!$photo) {
    //Si la recherche ne donne rien
    ?>
  <div class="errorbox"> <?php 
    echo "Aucun sport ne semble contenir '{$resultat}' dans son nom.";
    ?>
 </div>

<?php 
} else {
    foreach ($photo as $result) {
        //row choisit une seule ligne.
        ?>
  <a href="<?php 
        goToPage('sportgroupe', ['id_sport' => $result['id']]);
        ?>
">
    <div title="<?php 
        echo $result['nom'];
        ?>
" class="boxes" style="background-image: url('<?php 
        echo image($result['chemin']);
        ?>
')";></div>
  </a>
<?php 
    }
}
コード例 #13
0
ファイル: VueAccueil.php プロジェクト: ArnaudRib/MySporTeam
        <div class="Haut1" style="padding:20px; text-align:justify; font-size:20px; min-height:420px;">
          <p style="font-size:24px;"><strong><?php 
echo lang("MySporteam");
?>
</strong> <?php 
echo lang("vous permet d'intéragir avec des personnes ayant les mêmes passions que vous !");
?>
 </br></br>
            <?php 
echo lang("En vous inscrivant, vous pourrez participer à des cours, des entraînements, des compétitions proche de chez vous, et communiquer avec des passionnés du sport !");
?>
</p>
          </div><div class="Bas1">
          <div id="bouttoninscription">
            <a href="<?php 
goToPage('inscription');
?>
">
              <button class="button"><?php 
echo lang("Première visite?");
?>
</br><span style="font-size:15px;"><?php 
echo lang("Inscrivez vous!");
?>
</span></button>
            </a>
          </div>
        </div>
      </div>
    </div>
  </aside>
コード例 #14
0
                      </li>
                    <?php 
                }
                ?>
                  <?php 
            }
            ?>
                <?php 
        }
        ?>
              <?php 
    } elseif ($isLeader == true) {
        ?>
                <li id="abonnement" style="margin-top:-10px; margin-left:60px; padding:4px;">
                  <a href="<?php 
        goToPage('createevenement', ['id' => $datagroupe['id']]);
        ?>
"><?php 
        echo lang("Créer un événement");
        ?>
</a>
                </li>
              <?php 
    } else {
        ?>
                <li id="desabonnement" style="margin-top:-10px;">
                <form class="" action="" method="post">
                  <input type="submit" name="desabonnement" value="<?php 
        echo lang('Désinscire');
        ?>
" style='cursor:pointer;'>
コード例 #15
0
            <?php 
        echo $error;
        ?>
          </div>
        <?php 
    }
    ?>
        <?php 
    if ($succes != '') {
        ?>
          <div class="successbox blackborder radius" style='margin:20px auto; margin-bottom:0px'>
            <?php 
        echo $succes;
        ?>
 <a href="<?php 
        echo goToPage('unevenementgroupe', ['id' => $id_groupe, 'id_evenement' => $id]);
        ?>
"> ici</a> pour le voir!
          </div>
        <?php 
    }
    ?>

        <fieldset>
          <div style="display:block; margin-left:20px;">
            <label for="nom" class="fa fa-group labelnom"></label>
            <input id="nom" type="text" name="nom" placeholder="Nom événement" value="<?php 
    if (!empty($_POST)) {
        echo $_POST['nom'];
    }
    ?>
コード例 #16
0
           <option value="<?php 
        echo $value['id'];
        ?>
"><?php 
        echo $value['nom'];
        ?>
</option>
           <?php 
    }
    ?>
       </select>
      <?php 
} else {
    ?>
       <a href="<?php 
    goToPage('clubinfo', ['id_club' => $club['id']]);
    ?>
" style="font-size:15px;"><span style="padding:5px;"><?php 
    echo $club['nom'];
    ?>
</span></a>
      <?php 
}
?>
      </div>
      <?php 
if (!empty($_POST['modif'])) {
    ?>
        <form class="" action="" method="post">
          <input class="buttonmodif" type="submit" name="enregistrement" value="Enregistrer les modifications">
        </form>
コード例 #17
0
ファイル: VuePlanning.php プロジェクト: ArnaudRib/MySporTeam
          <a href="<?php 
goToPage('groupesUtilisateur');
?>
" id="non_selectionne"><li><?php 
echo lang('Gérer mes groupes');
?>
</li></a>
          <a href="<?php 
goToPage('planningUtilisateur');
?>
" id="selectionne"><li><?php 
echo lang('Planning');
?>
</li></a>
          <a id="creergroupe" href="<?php 
goToPage('creationgroupe');
?>
" ><li><?php 
echo lang('Créer un groupe');
?>
</li></a>
        </ul>
      </nav>
    </div>
  </div>

  <div class="calendrier">
    <?php 
$year = date('Y');
$currentMonth = date('n');
for ($i = 0; $i < 12; $i++) {
コード例 #18
0
        <?php 
if (empty($groupes)) {
    //à changer xd
    ?>
          <p style="color:red; font-size:25px; margin-top:20px;" ><?php 
    echo lang("Aucun groupe n'a été trouvé.");
    ?>
</p>
        <?php 
}
?>
      </div>
    </div>
    <div class="centre">
      <a href="<?php 
goToPage('recherchegroupe');
?>
">
        <h1 class="blockrechercheavancee"><?php 
echo lang('Accéder à la recherche avancée de groupes.');
?>
</h1>
      </a>
    </div>
  </div>
  <div class="backgroundimage image usualbackground" style="background-image:url(<?php 
echo image($photo['photo']);
?>
);"></div>
</div>
コード例 #19
0
    <a href="<?php 
goToPage('backofficeforum');
?>
">
      <li class="nextline">
          <i class="fa fa-bed"></i>
          <p><?php 
echo lang("Forum");
?>
</p>
      </li>
    </a>

    <a href="<?php 
goToPage('backofficereglage');
?>
">
      <li class="nextline active">
          <i class="fa fa-cog"></i>
          <p><?php 
echo lang("Réglages");
?>
</p>
      </li>
    </a>

  </ul>
</div>

コード例 #20
0
    <a href="<?php 
goToPage('backofficeforum');
?>
">
      <li class="nextline">
          <i class="fa fa-archive"></i>
          <p><?php 
echo lang("Forum");
?>
</p>
      </li>
    </a>

    <a href="<?php 
goToPage('backofficeaide');
?>
">
      <li class="nextline">
          <i class="fa fa-hand-spock-o"></i>
          <p><?php 
echo lang("Aide");
?>
</p>
      </li>
    </a>

  </ul>
</div>

コード例 #21
0
?>
</th>
          <th><?php 
echo lang("Description");
?>
</th>
          <th><?php 
echo lang("Type");
?>
</th>
        </tr>
        <?php 
foreach ($sports as $key => $value) {
    ?>
            <tr class="lignesport" style="cursor:pointer;" onclick="location.href='<?php 
    goToPage('backofficeAsport', ['id_sport' => $value['id']]);
    ?>
'">
              <td><?php 
    echo ucfirst($value['nom']);
    ?>
</td>
              <td class="centre"><?php 
    echo $nbgroupe[$value['id']];
    ?>
</td>
              <td><?php 
    echo $value['description'];
    ?>
</td>
              <td><?php