playlist caché si déconnecté
This commit is contained in:
@@ -16,10 +16,11 @@ class artistes extends CI_Controller {
|
||||
}
|
||||
|
||||
public function view($AlbumsOfArtistId){
|
||||
$artistes = $this->model_music->getArtists();
|
||||
$AlbumsOfArtists = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId);
|
||||
$playlists = $this->model_music->getPlaylist();
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('albums_artist_list', ['AlbumsOfArtists' => $AlbumsOfArtists, 'playlists' => $playlists, 'artist_id' => $AlbumsOfArtistId]);
|
||||
$this->load->view('albums_artist_list', ['AlbumsOfArtists' => $AlbumsOfArtists, 'playlists' => $playlists, 'artist_id' => $AlbumsOfArtistId, 'artistes' => $artistes]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,4 @@
|
||||
<?php
|
||||
/*defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Connexion extends CI_Controller {
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->model('model_music');
|
||||
}
|
||||
public function index(){
|
||||
$this->load->view('layout/connexion.php');
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
@@ -28,24 +15,24 @@ class Connexion extends CI_Controller{
|
||||
}
|
||||
public function login() {
|
||||
|
||||
$login = '';
|
||||
$password = '';
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if(isset($_POST['login']) && isset($_POST['password'])){
|
||||
$login = $_POST['login'];
|
||||
$password = $_POST['password'];
|
||||
}
|
||||
}
|
||||
$result = $this->model_music->getLogin($login,$password);
|
||||
if (count($result) > 0) {
|
||||
$this->session->set_userdata('logged', true);
|
||||
$this->load->view('layout/header');
|
||||
redirect('albums');
|
||||
} else {
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('login');
|
||||
$this->load->view('layout/footer');
|
||||
echo "Invalid login or password";
|
||||
}
|
||||
$login = '';
|
||||
$password = '';
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if(isset($_POST['login']) && isset($_POST['password'])){
|
||||
$login = $_POST['login'];
|
||||
$password = $_POST['password'];
|
||||
}
|
||||
}
|
||||
$result = $this->model_music->getLogin($login,$password);
|
||||
if (count($result) > 0) {
|
||||
$this->session->set_userdata('logged', true);
|
||||
$this->load->view('layout/header');
|
||||
redirect('albums');
|
||||
} else {
|
||||
//$this->load->view('layout/header');
|
||||
$this->load->view('login');
|
||||
$this->load->view('layout/footer');
|
||||
echo "Invalid login or password";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user