From 8dc1e8acff282033093dbab166b55bde17da0081 Mon Sep 17 00:00:00 2001 From: thaaoblues Date: Wed, 17 May 2023 19:09:01 +0200 Subject: [PATCH] =?UTF-8?q?dashboard=20de=20cr=C3=A9ation/supression=20de?= =?UTF-8?q?=20la=20bdd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/bdd.php | 52 ++++++++++++++++++++++++++++++++++++++++++ admin/index.php | 3 +++ admin/script.php | 3 ++- admin/test_db_init.php | 9 -------- 4 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 admin/bdd.php delete mode 100644 admin/test_db_init.php diff --git a/admin/bdd.php b/admin/bdd.php new file mode 100644 index 0000000..51ea325 --- /dev/null +++ b/admin/bdd.php @@ -0,0 +1,52 @@ +query("SELECT * FROM enigma WHERE id = 1"); +$r = $req -> fetchAll(PDO::FETCH_ASSOC); + + +if(isset($_GET["radio_bdd"])){ + + switch($_GET["radio_bdd"]){ + + case "drop": + drop_bdd($LISTE_TABLES); + break; + + case "create": + create_bdd($LISTE_TABLES); + break; + } +} + +?> + + + + + + + Admin / index + + +
+ +
+ + + + + +
+
+ + + \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index 2a4abc0..fc4069a 100644 --- a/admin/index.php +++ b/admin/index.php @@ -74,6 +74,7 @@ if(isset($_POST['login'])) { break; } echo "
Si l'onglet que vous recherchez n'est pas disponible, demandez avec amour et volupté une élévation d'acces à un respo web."; + } else { ?>
@@ -85,6 +86,8 @@ if(isset($_POST['login'])) { echo "".$error.""; } ?> + + \ No newline at end of file diff --git a/admin/script.php b/admin/script.php index 7baa8a1..9c84848 100644 --- a/admin/script.php +++ b/admin/script.php @@ -38,7 +38,8 @@ if($user_exist != 1) { .'
  • Planning
  • ' .'
  • Gestion des accès
  • ' .'
  • Enigma
  • ' - .'
  • Matomo
  • '; + .'
  • Matomo
  • ' + .'
  • /!\DANGER ZONE/!\
  • '; break; } diff --git a/admin/test_db_init.php b/admin/test_db_init.php deleted file mode 100644 index 63084cc..0000000 --- a/admin/test_db_init.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file