From bc9f5d57469a4466e230e2e32fad13a54e38327d Mon Sep 17 00:00:00 2001 From: Yghore <yhgore@gmail.com> Date: Tue, 7 Feb 2023 14:52:54 +0100 Subject: [PATCH] Index.php and composer init --- .env.default | 1 + composer.json | 18 ++++++++++++++++++ index.php | 17 +++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 .env.default create mode 100644 composer.json create mode 100644 index.php diff --git a/.env.default b/.env.default new file mode 100644 index 0000000..7b2a45d --- /dev/null +++ b/.env.default @@ -0,0 +1 @@ +api-key: ####### \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..7f9f5d7 --- /dev/null +++ b/composer.json @@ -0,0 +1,18 @@ +{ + "name": "msw/gptester", + "description": "Chat GPT Generator Test", + "type": "project", + "license": "APACHE", + "autoload": { + "psr-4": { + "Msw\\Gptester\\": "src/" + } + }, + "authors": [ + { + "name": "Arthur Mingot, Lucas Signoreli, Guillaume Wissle" + } + ], + "minimum-stability": "stable", + "require": {} +} diff --git a/index.php b/index.php new file mode 100644 index 0000000..c68f0bc --- /dev/null +++ b/index.php @@ -0,0 +1,17 @@ +<?php + + +$html; +if(empty($_POST['test'])) +{ + $html = <<<EOF + <form> + <input type="text" placeholder="Test à demander"/> + <input type="submit" value="Demander un test" /> + </form> + EOF; +} + +echo($html); + +?> \ No newline at end of file -- GitLab