This repository was archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit.php
More file actions
72 lines (51 loc) · 1.7 KB
/
commit.php
File metadata and controls
72 lines (51 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
error_reporting(E_ALL);
session_start();
include("includes/config.php");
include("includes/functions.php");
include("header.php");
//Si déjà identifié + Administrateur
if (isset($_SESSION['id']) && isset($_SESSION['username']) && $_SESSION['rank']==1) {
$log = isset($_GET['log']) ? intval($_GET['log']) : null;
$action = isset($_GET['action']) ? htmlspecialchars($_GET['action']) : null;
//echo '<center><h1>Changelog - PrivateShare</h1></center>';
//<!-- Formulaire d'ajout de changelog -->
//<!-- NE PAS OUBLIER D'ENLEVER LES BALISES CENTER ET DE FAIRE LA MODIFICATION DE CENTRE EN CSS -->
$sql = $bdd->prepare('SELECT DISTINCT version FROM changelog');
$sql -> execute();
$n = 0;
while($test = $sql->fetch()) {
$tab_version[$n] = $test['version'];
$n++;
}
$tailletab = count($tab_version);
// --- Taille du tableau
echo '
<center><h1>Changelog - PrivateShare</h1></center>
<div id="formulaire_changelog">
<center>
<form action="form.php" method="post">
<table width="600" height="300">
<tr>
<td><center>Version: </br><input name="version" type="text" name="version"></center></td>
<td><center>';
echo '<select name="listeversion">
<option selected>Modification de version</option>';
for ($i=0; $i<$tailletab; $i++) {
echo '<option>'.$tab_version[$i].'</option>';
}
echo '</select></center></td>
</tr>
<tr>
<td colspan=2><center>Commentaire: </br><TEXTAREA name="nom" rows=4 cols=40></TEXTAREA></br></center></td>
</tr>
<tr>
<td colspan=2><center><input type="submit"></center></td>
</tr>
</table>
</form>
</center>
</div>';
}
else { header ("Location: index.php"); }
?>