-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
75 lines (73 loc) · 3.04 KB
/
index.php
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
73
74
75
<?php
// Include the function file.
require 'function.php';
//include 'google-analystics.php';
$lastUpdateTerms = '/none/'; // Date of last update of Terms of service
?>
<?php require 'head.php'; // Head file - Contain primary code and head of page ?>
<?php if($_GET['lang'] == 'fr') { ?>
<div class="tips">
Une suggestion, un avis, un problème ? <a href="https://twitter.com/intent/tweet?text=%40TeamCodeIt%20%23KeyGen%20">Envoyez-nous un Tweet</a> !
</div>
<?php if($_GET['error'] != '') { ?>
<div class="error">
<?php echo CheckError($_GET['error'], 'fr'); ?>
</div>
<?php } ?>
<?php if($_GET['key'] != '') { ?>
<div class="info">
Clé générée : <?php echo $_GET['key']; ?>
</div>
<?php } ?>
<form action="upload.php" method="post">
<p><label for="genre">
Choisissez un genre de clé : <br />
<input type="checkbox" name="genreNum" checked /> Numérique (1) <br />
<input type="checkbox" name="genreMin" checked /> Alphabétique minuscule (a) <br />
<input type="checkbox" name="genreMaj" checked /> Alphabétique majuscule (A) <br />
<input type="checkbox" name="genreSpe" /> Spécial (@ - Un peu buggé) <br />
</label></p> <br />
<p><label for="length">
Choisissez la longueur de la clé : <br />
<input type="number" name="length" value="12" />
</label></p> <br />
<p><label for="multiCharacter">
<input type="checkbox" name="multiCharacter" /> Les caractères peuvent être présents plusieurs fois ?
</label></p>
<input type="hidden" name="lang" value="fr" />
<button type="submit">Générer</button>
</form>
<?php } else { ?>
<div class="tips">
Have a feedback or a problem ? <a href="https://twitter.com/intent/tweet?text=%40TeamCodeIt%20%23KeyGenerator%20">Send-us a Tweet</a> !
</div>
<?php if($_GET['error'] != '') { ?>
<div class="error">
<?php echo CheckError($_GET['error'], 'en'); ?>
</div>
<?php } ?>
<?php if($_GET['key'] != '') { ?>
<div class="info">
Generated key : <?php echo $_GET['key']; ?>
</div>
<?php } ?>
<form action="upload.php" method="post">
<p><label for="genre">
Choose a kind of key : <br />
<input type="checkbox" name="genreNum" checked /> Numerical (1) <br />
<input type="checkbox" name="genreMin" checked /> Alphabetical lowercase (a) <br />
<input type="checkbox" name="genreMaj" checked /> Alphabetical uppercase (A) <br />
<input type="checkbox" name="genreSpe" /> Special (@ - Quite buggy) <br />
</label></p> <br />
<p><label for="length">
Choose length : <br />
<input type="number" name="length" value="12" />
</label></p> <br />
<p><label for="multiCharacter">
<input type="checkbox" name="multiCharacter" /> Characters may be present multiple times?
</label></p>
<input type="hidden" name="lang" value="en" />
<button type="submit">Generate</button>
</form>
<?php } ?>
<?php require 'footer.php'; // Head file - Contain end of page ?>