commit
9e5131c05f
@ -0,0 +1 @@
|
|||||||
|
.idea/
|
@ -0,0 +1,57 @@
|
|||||||
|
@import url(./style.css);
|
||||||
|
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Lemon&display=swap');
|
||||||
|
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ====== DARK MODE ====== */
|
||||||
|
body.dark-mode h1, body.dark-mode h2, body.dark-mode p {
|
||||||
|
color: white;
|
||||||
|
font-family: "Lemon", serif;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== LIGHT MODE ====== */
|
||||||
|
body.light-mode h1, body.light-mode h2, body.light-mode p {
|
||||||
|
color: black;
|
||||||
|
font-family: "Lemon", serif;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== OTHER ====== */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#form {
|
||||||
|
width: 80%;
|
||||||
|
height: 83%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.dark-mode #box {
|
||||||
|
background-color: #1b0048;
|
||||||
|
padding: 20px;
|
||||||
|
width: 50%;
|
||||||
|
margin: auto;
|
||||||
|
border-radius: 15px;
|
||||||
|
border: 1px solid #6100ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== DIVERS ====== */
|
||||||
|
#contentField, #characterField, #sourceField, #imageField {
|
||||||
|
}
|
||||||
|
|
||||||
|
#contentField p, #characterField p, #sourceField p, #imageField p {
|
||||||
|
}
|
||||||
|
|
||||||
|
#confirm {
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
namespace Enum;
|
||||||
|
|
||||||
|
enum TypeSourceEnum : string {
|
||||||
|
case Movie = 'movie';
|
||||||
|
case VideoGame = 'video-game';
|
||||||
|
case Anime = 'anime';
|
||||||
|
case TV = 'tv';
|
||||||
|
}
|
@ -1,18 +1,44 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Verification;
|
namespace Verification;
|
||||||
|
|
||||||
class Verification
|
class Verification
|
||||||
{
|
{
|
||||||
public static function verifChar(string $text) : string{
|
public static function verifChar(?string $text) : ?string{
|
||||||
$charInterdi=['&','|','/','\\','%','$'];
|
if($text==NULL){
|
||||||
$textVerif="";
|
return NULL;
|
||||||
foreach( $text as $char){
|
|
||||||
if( !in_array($char,$charInterdi) ){
|
|
||||||
$textVerif=$textVerif+$char;
|
|
||||||
}
|
}
|
||||||
|
$charInterdi=['|','/','\\','%','$','=','<','>','(',')'];
|
||||||
|
$chaineInterdi=["AND","OR","WHERE","FROM","SELECT"];
|
||||||
|
$textVerif="";
|
||||||
|
|
||||||
|
foreach( str_split($text,1) as $char){
|
||||||
|
if( !in_array($char,$charInterdi) ){
|
||||||
|
$textVerif=$textVerif.$char;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$text=$textVerif;
|
||||||
|
$textVerif="";
|
||||||
|
$tabText=explode(" ",$text);
|
||||||
|
for( $i=0 ; $i<count($tabText) ; $i++){
|
||||||
|
if( !in_array( strtoupper($tabText[$i]) , $chaineInterdi )){
|
||||||
|
$textVerif=$textVerif.$tabText[$i];
|
||||||
|
|
||||||
|
if($i != count($tabText)-1){
|
||||||
|
$textVerif=$textVerif." ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $textVerif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function verifArrayChar(?array $tabText) : ?array{
|
||||||
|
for( $i=0 ; $i<count($tabText) ; $i++){
|
||||||
|
$tabText[$i]=$this->verifChar($tabText[$i]);
|
||||||
|
}
|
||||||
|
return $tabText;
|
||||||
}
|
}
|
||||||
return $textVerif;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
@ -1,25 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload.php @generated by Composer
|
// autoload.php @generated by Composer
|
||||||
|
|
||||||
if (PHP_VERSION_ID < 50600) {
|
if (PHP_VERSION_ID < 50600) {
|
||||||
if (!headers_sent()) {
|
if (!headers_sent()) {
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
}
|
}
|
||||||
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
||||||
if (!ini_get('display_errors')) {
|
if (!ini_get('display_errors')) {
|
||||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||||
fwrite(STDERR, $err);
|
fwrite(STDERR, $err);
|
||||||
} elseif (!headers_sent()) {
|
} elseif (!headers_sent()) {
|
||||||
echo $err;
|
echo $err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_error(
|
trigger_error(
|
||||||
$err,
|
$err,
|
||||||
E_USER_ERROR
|
E_USER_ERROR
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once __DIR__ . '/composer/autoload_real.php';
|
require_once __DIR__ . '/composer/autoload_real.php';
|
||||||
|
|
||||||
return ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c::getLoader();
|
return ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c::getLoader();
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,21 @@
|
|||||||
|
|
||||||
Copyright (c) Nils Adermann, Jordi Boggiano
|
Copyright (c) Nils Adermann, Jordi Boggiano
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
in the Software without restriction, including without limitation the rights
|
in the Software without restriction, including without limitation the rights
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
copies of the Software, and to permit persons to whom the Software is furnished
|
copies of the Software, and to permit persons to whom the Software is furnished
|
||||||
to do so, subject to the following conditions:
|
to do so, subject to the following conditions:
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The above copyright notice and this permission notice shall be included in all
|
||||||
copies or substantial portions of the Software.
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload_classmap.php @generated by Composer
|
// autoload_classmap.php @generated by Composer
|
||||||
|
|
||||||
$vendorDir = dirname(__DIR__);
|
$vendorDir = dirname(__DIR__);
|
||||||
$baseDir = dirname($vendorDir);
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'AltoRouter' => $vendorDir . '/altorouter/altorouter/AltoRouter.php',
|
'AltoRouter' => $vendorDir . '/altorouter/altorouter/AltoRouter.php',
|
||||||
'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
|
'CURLStringFile' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
|
||||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||||
'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
|
'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
|
||||||
);
|
);
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload_files.php @generated by Composer
|
// autoload_files.php @generated by Composer
|
||||||
|
|
||||||
$vendorDir = dirname(__DIR__);
|
$vendorDir = dirname(__DIR__);
|
||||||
$baseDir = dirname($vendorDir);
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
|
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
|
||||||
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
|
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
|
||||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||||
'23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
|
'23c18046f52bef3eea034657bafda50f' => $vendorDir . '/symfony/polyfill-php81/bootstrap.php',
|
||||||
'89efb1254ef2d1c5d80096acd12c4098' => $vendorDir . '/twig/twig/src/Resources/core.php',
|
'89efb1254ef2d1c5d80096acd12c4098' => $vendorDir . '/twig/twig/src/Resources/core.php',
|
||||||
'ffecb95d45175fd40f75be8a23b34f90' => $vendorDir . '/twig/twig/src/Resources/debug.php',
|
'ffecb95d45175fd40f75be8a23b34f90' => $vendorDir . '/twig/twig/src/Resources/debug.php',
|
||||||
'c7baa00073ee9c61edf148c51917cfb4' => $vendorDir . '/twig/twig/src/Resources/escaper.php',
|
'c7baa00073ee9c61edf148c51917cfb4' => $vendorDir . '/twig/twig/src/Resources/escaper.php',
|
||||||
'f844ccf1d25df8663951193c3fc307c8' => $vendorDir . '/twig/twig/src/Resources/string_loader.php',
|
'f844ccf1d25df8663951193c3fc307c8' => $vendorDir . '/twig/twig/src/Resources/string_loader.php',
|
||||||
);
|
);
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload_namespaces.php @generated by Composer
|
// autoload_namespaces.php @generated by Composer
|
||||||
|
|
||||||
$vendorDir = dirname(__DIR__);
|
$vendorDir = dirname(__DIR__);
|
||||||
$baseDir = dirname($vendorDir);
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
);
|
);
|
||||||
|
@ -1,17 +1,19 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload_psr4.php @generated by Composer
|
// autoload_psr4.php @generated by Composer
|
||||||
|
|
||||||
$vendorDir = dirname(__DIR__);
|
$vendorDir = dirname(__DIR__);
|
||||||
$baseDir = dirname($vendorDir);
|
$baseDir = dirname($vendorDir);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'Twig\\' => array($vendorDir . '/twig/twig/src'),
|
'Verification\\' => array($baseDir . '/src/Verification'),
|
||||||
'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
|
'Twig\\' => array($vendorDir . '/twig/twig/src'),
|
||||||
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
|
||||||
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
|
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||||
'Model\\' => array($baseDir . '/src/Model'),
|
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
|
||||||
'Gateway\\' => array($baseDir . '/src/Gateway'),
|
'Model\\' => array($baseDir . '/src/Model'),
|
||||||
'Entity\\' => array($baseDir . '/src/Entity'),
|
'Gateway\\' => array($baseDir . '/src/Gateway'),
|
||||||
'Controleur\\' => array($baseDir . '/src/Controleur'),
|
'Enum\\' => array($baseDir . '/src/Enum'),
|
||||||
);
|
'Entity\\' => array($baseDir . '/src/Entity'),
|
||||||
|
'Controleur\\' => array($baseDir . '/src/Controleur'),
|
||||||
|
);
|
||||||
|
@ -1,50 +1,50 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload_real.php @generated by Composer
|
// autoload_real.php @generated by Composer
|
||||||
|
|
||||||
class ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c
|
class ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c
|
||||||
{
|
{
|
||||||
private static $loader;
|
private static $loader;
|
||||||
|
|
||||||
public static function loadClassLoader($class)
|
public static function loadClassLoader($class)
|
||||||
{
|
{
|
||||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
if ('Composer\Autoload\ClassLoader' === $class) {
|
||||||
require __DIR__ . '/ClassLoader.php';
|
require __DIR__ . '/ClassLoader.php';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return \Composer\Autoload\ClassLoader
|
* @return \Composer\Autoload\ClassLoader
|
||||||
*/
|
*/
|
||||||
public static function getLoader()
|
public static function getLoader()
|
||||||
{
|
{
|
||||||
if (null !== self::$loader) {
|
if (null !== self::$loader) {
|
||||||
return self::$loader;
|
return self::$loader;
|
||||||
}
|
}
|
||||||
|
|
||||||
require __DIR__ . '/platform_check.php';
|
require __DIR__ . '/platform_check.php';
|
||||||
|
|
||||||
spl_autoload_register(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'), true, true);
|
spl_autoload_register(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'), true, true);
|
||||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||||
spl_autoload_unregister(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'));
|
spl_autoload_unregister(array('ComposerAutoloaderInit68804b2111cb6b8bf6edf66cb2b4669c', 'loadClassLoader'));
|
||||||
|
|
||||||
require __DIR__ . '/autoload_static.php';
|
require __DIR__ . '/autoload_static.php';
|
||||||
call_user_func(\Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::getInitializer($loader));
|
call_user_func(\Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::getInitializer($loader));
|
||||||
|
|
||||||
$loader->register(true);
|
$loader->register(true);
|
||||||
|
|
||||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$files;
|
$filesToLoad = \Composer\Autoload\ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$files;
|
||||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||||
|
|
||||||
require $file;
|
require $file;
|
||||||
}
|
}
|
||||||
}, null, null);
|
}, null, null);
|
||||||
foreach ($filesToLoad as $fileIdentifier => $file) {
|
foreach ($filesToLoad as $fileIdentifier => $file) {
|
||||||
$requireFile($fileIdentifier, $file);
|
$requireFile($fileIdentifier, $file);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,100 +1,113 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// autoload_static.php @generated by Composer
|
// autoload_static.php @generated by Composer
|
||||||
|
|
||||||
namespace Composer\Autoload;
|
namespace Composer\Autoload;
|
||||||
|
|
||||||
class ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c
|
class ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c
|
||||||
{
|
{
|
||||||
public static $files = array (
|
public static $files = array (
|
||||||
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
||||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||||
'23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
|
'23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
|
||||||
'89efb1254ef2d1c5d80096acd12c4098' => __DIR__ . '/..' . '/twig/twig/src/Resources/core.php',
|
'89efb1254ef2d1c5d80096acd12c4098' => __DIR__ . '/..' . '/twig/twig/src/Resources/core.php',
|
||||||
'ffecb95d45175fd40f75be8a23b34f90' => __DIR__ . '/..' . '/twig/twig/src/Resources/debug.php',
|
'ffecb95d45175fd40f75be8a23b34f90' => __DIR__ . '/..' . '/twig/twig/src/Resources/debug.php',
|
||||||
'c7baa00073ee9c61edf148c51917cfb4' => __DIR__ . '/..' . '/twig/twig/src/Resources/escaper.php',
|
'c7baa00073ee9c61edf148c51917cfb4' => __DIR__ . '/..' . '/twig/twig/src/Resources/escaper.php',
|
||||||
'f844ccf1d25df8663951193c3fc307c8' => __DIR__ . '/..' . '/twig/twig/src/Resources/string_loader.php',
|
'f844ccf1d25df8663951193c3fc307c8' => __DIR__ . '/..' . '/twig/twig/src/Resources/string_loader.php',
|
||||||
);
|
);
|
||||||
|
|
||||||
public static $prefixLengthsPsr4 = array (
|
public static $prefixLengthsPsr4 = array (
|
||||||
'T' =>
|
'V' =>
|
||||||
array (
|
array (
|
||||||
'Twig\\' => 5,
|
'Verification\\' => 13,
|
||||||
),
|
),
|
||||||
'S' =>
|
'T' =>
|
||||||
array (
|
array (
|
||||||
'Symfony\\Polyfill\\Php81\\' => 23,
|
'Twig\\' => 5,
|
||||||
'Symfony\\Polyfill\\Mbstring\\' => 26,
|
),
|
||||||
'Symfony\\Polyfill\\Ctype\\' => 23,
|
'S' =>
|
||||||
),
|
array (
|
||||||
'M' =>
|
'Symfony\\Polyfill\\Php81\\' => 23,
|
||||||
array (
|
'Symfony\\Polyfill\\Mbstring\\' => 26,
|
||||||
'Model\\' => 6,
|
'Symfony\\Polyfill\\Ctype\\' => 23,
|
||||||
),
|
),
|
||||||
'G' =>
|
'M' =>
|
||||||
array (
|
array (
|
||||||
'Gateway\\' => 8,
|
'Model\\' => 6,
|
||||||
),
|
),
|
||||||
'E' =>
|
'G' =>
|
||||||
array (
|
array (
|
||||||
'Entity\\' => 7,
|
'Gateway\\' => 8,
|
||||||
),
|
),
|
||||||
'C' =>
|
'E' =>
|
||||||
array (
|
array (
|
||||||
'Controleur\\' => 11,
|
'Enum\\' => 5,
|
||||||
),
|
'Entity\\' => 7,
|
||||||
);
|
),
|
||||||
|
'C' =>
|
||||||
public static $prefixDirsPsr4 = array (
|
array (
|
||||||
'Twig\\' =>
|
'Controleur\\' => 11,
|
||||||
array (
|
),
|
||||||
0 => __DIR__ . '/..' . '/twig/twig/src',
|
);
|
||||||
),
|
|
||||||
'Symfony\\Polyfill\\Php81\\' =>
|
public static $prefixDirsPsr4 = array (
|
||||||
array (
|
'Verification\\' =>
|
||||||
0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
|
array (
|
||||||
),
|
0 => __DIR__ . '/../..' . '/src/Verification',
|
||||||
'Symfony\\Polyfill\\Mbstring\\' =>
|
),
|
||||||
array (
|
'Twig\\' =>
|
||||||
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
|
array (
|
||||||
),
|
0 => __DIR__ . '/..' . '/twig/twig/src',
|
||||||
'Symfony\\Polyfill\\Ctype\\' =>
|
),
|
||||||
array (
|
'Symfony\\Polyfill\\Php81\\' =>
|
||||||
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
|
array (
|
||||||
),
|
0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
|
||||||
'Model\\' =>
|
),
|
||||||
array (
|
'Symfony\\Polyfill\\Mbstring\\' =>
|
||||||
0 => __DIR__ . '/../..' . '/src/Model',
|
array (
|
||||||
),
|
0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
|
||||||
'Gateway\\' =>
|
),
|
||||||
array (
|
'Symfony\\Polyfill\\Ctype\\' =>
|
||||||
0 => __DIR__ . '/../..' . '/src/Gateway',
|
array (
|
||||||
),
|
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
|
||||||
'Entity\\' =>
|
),
|
||||||
array (
|
'Model\\' =>
|
||||||
0 => __DIR__ . '/../..' . '/src/Entity',
|
array (
|
||||||
),
|
0 => __DIR__ . '/../..' . '/src/Model',
|
||||||
'Controleur\\' =>
|
),
|
||||||
array (
|
'Gateway\\' =>
|
||||||
0 => __DIR__ . '/../..' . '/src/Controleur',
|
array (
|
||||||
),
|
0 => __DIR__ . '/../..' . '/src/Gateway',
|
||||||
);
|
),
|
||||||
|
'Enum\\' =>
|
||||||
public static $classMap = array (
|
array (
|
||||||
'AltoRouter' => __DIR__ . '/..' . '/altorouter/altorouter/AltoRouter.php',
|
0 => __DIR__ . '/../..' . '/src/Enum',
|
||||||
'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
|
),
|
||||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
'Entity\\' =>
|
||||||
'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
|
array (
|
||||||
);
|
0 => __DIR__ . '/../..' . '/src/Entity',
|
||||||
|
),
|
||||||
public static function getInitializer(ClassLoader $loader)
|
'Controleur\\' =>
|
||||||
{
|
array (
|
||||||
return \Closure::bind(function () use ($loader) {
|
0 => __DIR__ . '/../..' . '/src/Controleur',
|
||||||
$loader->prefixLengthsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixLengthsPsr4;
|
),
|
||||||
$loader->prefixDirsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixDirsPsr4;
|
);
|
||||||
$loader->classMap = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$classMap;
|
|
||||||
|
public static $classMap = array (
|
||||||
}, null, ClassLoader::class);
|
'AltoRouter' => __DIR__ . '/..' . '/altorouter/altorouter/AltoRouter.php',
|
||||||
}
|
'CURLStringFile' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/CURLStringFile.php',
|
||||||
}
|
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||||
|
'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
|
||||||
|
);
|
||||||
|
|
||||||
|
public static function getInitializer(ClassLoader $loader)
|
||||||
|
{
|
||||||
|
return \Closure::bind(function () use ($loader) {
|
||||||
|
$loader->prefixLengthsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixLengthsPsr4;
|
||||||
|
$loader->prefixDirsPsr4 = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$prefixDirsPsr4;
|
||||||
|
$loader->classMap = ComposerStaticInit68804b2111cb6b8bf6edf66cb2b4669c::$classMap;
|
||||||
|
|
||||||
|
}, null, ClassLoader::class);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// platform_check.php @generated by Composer
|
// platform_check.php @generated by Composer
|
||||||
|
|
||||||
$issues = array();
|
$issues = array();
|
||||||
|
|
||||||
if (!(PHP_VERSION_ID >= 80100)) {
|
if (!(PHP_VERSION_ID >= 80100)) {
|
||||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
|
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($issues) {
|
if ($issues) {
|
||||||
if (!headers_sent()) {
|
if (!headers_sent()) {
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
header('HTTP/1.1 500 Internal Server Error');
|
||||||
}
|
}
|
||||||
if (!ini_get('display_errors')) {
|
if (!ini_get('display_errors')) {
|
||||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||||
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
||||||
} elseif (!headers_sent()) {
|
} elseif (!headers_sent()) {
|
||||||
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_error(
|
trigger_error(
|
||||||
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
||||||
E_USER_ERROR
|
E_USER_ERROR
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
global $twig;
|
||||||
|
|
||||||
|
|
||||||
|
echo $twig->render('head.html.twig', [
|
||||||
|
'title' => "Submit Quote",
|
||||||
|
'style' => "public/styles/styleSubmitQuote.css",
|
||||||
|
'scripts' => array("public/script/theme-toggle.js")
|
||||||
|
]);
|
||||||
|
|
||||||
|
|
||||||
|
// Rendu du bandeau
|
||||||
|
echo $twig->render('bandeau.html.twig');
|
||||||
|
|
||||||
|
echo $twig -> render("submitQuote.html.twig");
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Wiki Fantasy : Submit Quote</title>
|
||||||
|
<link id="favicon" rel="icon" href="../../images/iconeSombre.ico"> <!-- Par défaut sombre -->
|
||||||
|
<link rel="stylesheet" href="../../public/styles/styleSubmitQuote.css">
|
||||||
|
<script defer src="../../public/script/theme-toggle.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
{% include "bandeau.html.twig" %}
|
||||||
|
|
||||||
|
<h1>▶ Your quote has been submitted successfully ◀</h1>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div id="box">
|
||||||
|
|
||||||
|
<div id="contentField">
|
||||||
|
|
||||||
|
<p>Contenu *</p>
|
||||||
|
<h2>{{ content }}</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="characterField">
|
||||||
|
|
||||||
|
<p>Personnage *</p>
|
||||||
|
<h2>{{ character }}</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="sourceField">
|
||||||
|
|
||||||
|
<p>Source *</p>
|
||||||
|
<h2>{{ source }}</h2>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button onclick="window.location.href='/';"> Revenir à l'acceuil</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,48 @@
|
|||||||
|
<h1>▶ Submit a Quote ◀</h1>
|
||||||
|
|
||||||
|
<form id="form" method="post" action="/validsubmit">
|
||||||
|
|
||||||
|
<div id="box">
|
||||||
|
|
||||||
|
<div id="contentField">
|
||||||
|
|
||||||
|
<p>Contenu *</p>
|
||||||
|
<input type="text" id="content" name="content" placeholder="Entrez le contenu de la citation" required/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="characterField">
|
||||||
|
|
||||||
|
<p>Personnage *</p>
|
||||||
|
<input type="text" id="character" name="character" placeholder="Entrez le/la personnage de la citation" required/>
|
||||||
|
{% if errors[0] is defined and errors[0] is not empty %}
|
||||||
|
<p style="color: red">{{ errors[0] }}</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="sourceField">
|
||||||
|
|
||||||
|
<p>Source *</p>
|
||||||
|
<input type="text" id="source" name="source" placeholder="Entrez la source de la citation" required/>
|
||||||
|
{% if errors[1] is defined and errors[1] is not empty %}
|
||||||
|
<p style="color: red">{{ errors[1] }}</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="imageField">
|
||||||
|
|
||||||
|
<p>Image *</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="confirm">
|
||||||
|
<input type="submit" class="btn" name="action" value="Soumettre"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in new issue