Un style un peu mieux, un titre à la page, et d'autres trucs

This commit is contained in:
Mysaa
2021-06-05 18:17:31 +02:00
parent f515420c6c
commit 7ac29bb13d
16 changed files with 192 additions and 201 deletions
+21 -30
View File
@@ -1,15 +1,12 @@
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<title>Le site de tous les bernards !</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<?php
include 'includes/head.php';
?>
<head>
<?php include 'includes/data.php'; ?>
</head>
<body>
<?php include 'includes/head.php'; ?>
<?php
try{
$bdd = new PDO('mysql:host=mysql.hostinger.fr;dbname=u890869027_bcom;charset=utf8', 'u890869027_bcom', '*******************');
@@ -21,7 +18,7 @@
if(isset($_SESSION['session_id']) && isset($_SESSION['session_mdp'])){
$req->execute(array($_SESSION['session_id'],$_SESSION['session_mdp']));
}
if(isset($_SESSION['session_id']) && isset($_SESSION['session_mdp']) && $req->fetch() ){
$req = $bdd->prepare('SELECT * FROM projets WHERE ID=?');
$req->execute(array($_GET['id']));
@@ -29,33 +26,27 @@
$req = $bdd->prepare('SELECT * FROM projets WHERE ownersID REGEXP \'[^0-9]?' . $_SESSION['session_id'] .'[^0-9]?\' AND ID=?');
$req->execute(array($_GET['id']));
if($req->fetch()){?>
Vous etes sur la page du projet <?php echo($rep['name']) ?> à sa version <?php echo($rep['version']) ?> </br>
</br>
<a href="megaProcess/downloadJar.php">Télécharger le jar</a></br>
<a href="megaProcess/viewSrc.php">Voir la source</a></br>
<a href="megaProcess/downloadSrc.php">Télecharger la source</a></br>
<a href="megaProcess/viewDoc.php">Voir la doc</a></br>
<a href="megaProcess/downloadDoc.php">Télecharger la doc</a></br>
<a href="#">##################################</a></br>
<h1>Le projet <?php echo($rep['name']) ?> en version <?php echo($rep['version']) ?></h1>
<br/>
<a href="megaProcess/downloadJar.php">T&eacute;l&eacute;charger le jar</a> <br/>
<a href="megaProcess/viewSrc.php">Voir la source</a> <br/>
<a href="megaProcess/downloadSrc.php">T&eacute;l&eacute;charger la source</a> <br/>
<a href="megaProcess/viewDoc.php">Voir la doc</a> <br/>
<a href="megaProcess/downloadDoc.php">T&eacute;lecharger la doc</a> <br/>
<a href="#">##################################</a> <br/>
<?php
}else{
echo ('Erreur : ce projet ne vous appartient pas !');
header('Location:403.php');
}
}else{
echo('Erreur 404 : Le projet n\'a pas été trouvé !');
header('Location:40A.php');
}
}else{
echo('Vous n\'etes pas connécté , veuillez vous connecter pour accéder à cette page !');
header('Location:401.php');
}
?>
<?php
include 'includes/foot.php'
?>
<?php include 'includes/foot.php'; ?>
</body>
</html>