Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
b8cf638d84
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
class InvalidMdpException extends Exception {
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
||||
.': <b>'.$this->getMessage().'</b> Mdp invalide';
|
||||
return $errorMsg;
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
<?php
|
||||
|
||||
class JoueurNotFoundException extends Exception {
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
$errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
|
||||
.': <b>'.$this->getMessage().'</b> Joueur not found';
|
||||
return $errorMsg;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Erreur inatendu</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
@ -1,9 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Page introuvable</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
@ -1,9 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Erreur avec la base de donnée</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Joueur introuvable</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p>Mot de passe invalide</p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>ERREUR</h1>
|
||||
<p></p>
|
||||
<?php
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,125 @@
|
||||
@import 'https://fonts.googleapis.com/css?family=Inconsolata';
|
||||
|
||||
html {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
background-color: #000000;
|
||||
background-image: radial-gradient(#11581E, #041607), url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
font-family: 'Inconsolata', Helvetica, sans-serif;
|
||||
font-size: 1.5rem;
|
||||
color: rgba(128, 255, 128, 0.8);
|
||||
text-shadow:
|
||||
0 0 1ex rgba(51, 255, 51, 1),
|
||||
0 0 2px rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.noise {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
z-index: -1;
|
||||
opacity: .02;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background:
|
||||
repeating-linear-gradient(
|
||||
180deg,
|
||||
rgba(0, 0, 0, 0) 0,
|
||||
rgba(0, 0, 0, 0.3) 50%,
|
||||
rgba(0, 0, 0, 0) 100%);
|
||||
background-size: auto 4px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.overlay::before {
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: linear-gradient(
|
||||
0deg,
|
||||
transparent 0%,
|
||||
rgba(32, 128, 32, 0.2) 2%,
|
||||
rgba(32, 128, 32, 0.8) 3%,
|
||||
rgba(32, 128, 32, 0.2) 3%,
|
||||
transparent 100%);
|
||||
background-repeat: no-repeat;
|
||||
animation: scan 7.5s linear 0s infinite;
|
||||
}
|
||||
|
||||
@keyframes scan {
|
||||
0% { background-position: 0 -100vh; }
|
||||
35%, 100% { background-position: 0 100vh; }
|
||||
}
|
||||
|
||||
.terminal {
|
||||
box-sizing: inherit;
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
padding: 4rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.output {
|
||||
color: rgba(128, 255, 128, 0.8);
|
||||
text-shadow:
|
||||
0 0 1px rgba(51, 255, 51, 0.4),
|
||||
0 0 2px rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.output::before {
|
||||
content: "> ";
|
||||
}
|
||||
|
||||
/*
|
||||
.input {
|
||||
color: rgba(192, 255, 192, 0.8);
|
||||
text-shadow:
|
||||
0 0 1px rgba(51, 255, 51, 0.4),
|
||||
0 0 2px rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
|
||||
.input::before {
|
||||
content: "$ ";
|
||||
}
|
||||
*/
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a::before {
|
||||
content: "[";
|
||||
}
|
||||
|
||||
a::after {
|
||||
content: "]";
|
||||
}
|
||||
|
||||
.errorcode {
|
||||
color: white;
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Scripted</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
||||
/>
|
||||
<link rel="stylesheet" href="./View/src/CSS/Erreur.css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise"></div>
|
||||
<div class="overlay"></div>
|
||||
<div class="terminal">
|
||||
<?php
|
||||
if ($error == 400){
|
||||
echo '<h1>Error <span class="errorcode">404</span></h1>';
|
||||
echo '<p class="output">La page que vous recherchez a peut-être été supprimée, a changé de nom ou est temporairement indisponible.</p>';
|
||||
echo '<p class="output">Veuillez essayer de <a href="javascript:history.back()">retourner en arrière</a> ou de <a href="index.php?action=goToHome">retourné à la page d\'accueil</a>.</p>';
|
||||
echo '<p class="output">Bonne Chance Utilisateur.</p>';
|
||||
}
|
||||
elseif ($error == ""){
|
||||
echo '<h1>Error <span class="errorcode">000</span></h1>';
|
||||
echo '<p class="output">Erreur inconnue</p>';
|
||||
echo '<p class="output">Veuillez essayer de <a href="javascript:history.back()">retourner en arrière</a> ou de <a href="index.php?action=goToHome">retourné à la page d\'accueil</a>.</p>';
|
||||
echo '<p class="output">Bonne Chance Utilisateur.</p>';
|
||||
}
|
||||
|
||||
else{
|
||||
echo '<h1>Error <span class="errorcode">000</span></h1>';
|
||||
echo '<p class="output">'.$error.'</p>';
|
||||
echo '<p class="output">Veuillez essayer de <a href="javascript:history.back()">retourner en arrière</a> ou de <a href="index.php?action=goToHome">retourné à la page d\'accueil</a>.</p>';
|
||||
echo '<p class="output">Bonne Chance Utilisateur.</p>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,5 +1,6 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"bootstrap": "^5.2.2"
|
||||
"bootstrap": "^5.2.2",
|
||||
"bootstrap-icons": "^1.10.2"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue