From 4e2ccff2e4b7f40e9c61ed988b6af79c36471f62 Mon Sep 17 00:00:00 2001 From: boutaric Date: Wed, 12 Jun 2024 11:18:32 +0200 Subject: [PATCH] =?UTF-8?q?rangement=20fichier=20+=20r=C3=A9glage=20beug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/application/controllers/Connexion.php | 6 +- ci/application/controllers/Deconnexion.php | 2 +- ci/application/controllers/Enregistrer.php | 4 +- ci/application/index.html | 11 --- ci/application/views/SignUp.php | 1 + ci/application/views/Welcome.php | 16 +---- ci/application/views/albums_list.php | 2 +- ci/application/views/create_playlist.php | 27 -------- ci/application/views/errors/cli/error_404.php | 8 --- ci/application/views/errors/cli/error_db.php | 8 --- .../views/errors/cli/error_exception.php | 21 ------ .../views/errors/cli/error_general.php | 8 --- ci/application/views/errors/cli/error_php.php | 21 ------ .../views/errors/html/error_404.php | 64 ------------------ ci/application/views/errors/html/error_db.php | 64 ------------------ .../views/errors/html/error_exception.php | 32 --------- .../views/errors/html/error_general.php | 64 ------------------ .../views/errors/html/error_php.php | 33 --------- ci/application/views/layout/connexion.php | 32 --------- ci/application/views/layout/footer.php | 3 +- ci/application/views/layout/header copy.php | 50 -------------- ci/application/views/layout/header.php | 28 ++------ ci/application/views/login.php | 14 ++-- ci/application/views/mention_légales.php | 32 +++++++++ ci/application/views/playlist_list.php | 35 ++++++++-- ci/assets/{ => CSS}/album.css | 2 +- ci/assets/{ => CSS}/artiste.css | 21 ------ ci/assets/{ => CSS}/playlist.css | 0 ci/assets/{ => CSS}/song.css | 0 ci/assets/{ => CSS}/style.css | 46 +++---------- ci/assets/{ => JS}/bouton.js | 0 ci/assets/SpotiFly-removebg-preview.png | Bin 39686 -> 0 bytes ci/assets/connexion.css | 9 --- 33 files changed, 100 insertions(+), 564 deletions(-) delete mode 100644 ci/application/index.html delete mode 100644 ci/application/views/create_playlist.php delete mode 100644 ci/application/views/errors/cli/error_404.php delete mode 100644 ci/application/views/errors/cli/error_db.php delete mode 100644 ci/application/views/errors/cli/error_exception.php delete mode 100644 ci/application/views/errors/cli/error_general.php delete mode 100644 ci/application/views/errors/cli/error_php.php delete mode 100644 ci/application/views/errors/html/error_404.php delete mode 100644 ci/application/views/errors/html/error_db.php delete mode 100644 ci/application/views/errors/html/error_exception.php delete mode 100644 ci/application/views/errors/html/error_general.php delete mode 100644 ci/application/views/errors/html/error_php.php delete mode 100644 ci/application/views/layout/connexion.php delete mode 100644 ci/application/views/layout/header copy.php create mode 100644 ci/application/views/mention_légales.php rename ci/assets/{ => CSS}/album.css (98%) rename ci/assets/{ => CSS}/artiste.css (57%) rename ci/assets/{ => CSS}/playlist.css (100%) rename ci/assets/{ => CSS}/song.css (100%) rename ci/assets/{ => CSS}/style.css (89%) rename ci/assets/{ => JS}/bouton.js (100%) delete mode 100644 ci/assets/SpotiFly-removebg-preview.png delete mode 100644 ci/assets/connexion.css diff --git a/ci/application/controllers/Connexion.php b/ci/application/controllers/Connexion.php index 3286127..817637a 100644 --- a/ci/application/controllers/Connexion.php +++ b/ci/application/controllers/Connexion.php @@ -9,9 +9,9 @@ class Connexion extends CI_Controller{ $this->load->model('model_music'); } public function index(){ - //$this->load->view('layout/header'); + $this->load->view('layout/header'); $this->load->view('login'); - //$this->load->view('layout/footer'); + $this->load->view('layout/footer'); } public function login() { @@ -29,7 +29,7 @@ class Connexion extends CI_Controller{ $this->load->view('layout/header'); redirect('albums'); } else { - //$this->load->view('layout/header'); + $this->load->view('layout/header'); $this->load->view('login'); $this->load->view('layout/footer'); echo "Invalid login or password"; diff --git a/ci/application/controllers/Deconnexion.php b/ci/application/controllers/Deconnexion.php index 24858a8..6b03e4e 100644 --- a/ci/application/controllers/Deconnexion.php +++ b/ci/application/controllers/Deconnexion.php @@ -10,6 +10,6 @@ class Deconnexion extends CI_Controller { public function index() { $this->session->unset_userdata('logged'); $this->session->sess_destroy(); - redirect('albums'); + redirect('welcome'); } } \ No newline at end of file diff --git a/ci/application/controllers/Enregistrer.php b/ci/application/controllers/Enregistrer.php index d5f2a40..4f1edea 100644 --- a/ci/application/controllers/Enregistrer.php +++ b/ci/application/controllers/Enregistrer.php @@ -8,9 +8,9 @@ class Enregistrer extends CI_Controller{ $this->load->model('model_music'); } public function index(){ - //$this->load->view('layout/header'); + $this->load->view('layout/header'); $this->load->view('SignUp'); - //$this->load->view('layout/footer'); + $this->load->view('layout/footer'); } public function SignUp() { $pseudo = ''; diff --git a/ci/application/index.html b/ci/application/index.html deleted file mode 100644 index b702fbc..0000000 --- a/ci/application/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - diff --git a/ci/application/views/SignUp.php b/ci/application/views/SignUp.php index 5a56f6c..1d4cadc 100644 --- a/ci/application/views/SignUp.php +++ b/ci/application/views/SignUp.php @@ -1,3 +1,4 @@ +

S'inscrire à SpotiFly

diff --git a/ci/application/views/Welcome.php b/ci/application/views/Welcome.php index 91e1475..a865d8a 100644 --- a/ci/application/views/Welcome.php +++ b/ci/application/views/Welcome.php @@ -15,21 +15,9 @@