rangement fichier + réglage beug

This commit is contained in:
2024-06-12 11:18:32 +02:00
parent 253fd100d8
commit 4e2ccff2e4
33 changed files with 100 additions and 564 deletions

View File

@@ -1,3 +1,4 @@
<h2>S'inscrire à SpotiFly</h2>
<form method="post" action="<?php echo base_url('index.php/Enregistrer/SignUp'); ?>">
<input type="text" name="pseudo" placeholder="Pseudo" required>
<input type="text" name="login" placeholder="Adresse mail" required>

View File

@@ -15,21 +15,9 @@
<nav class="menu">
<ul>
<li><?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/','Home'); ?></li>
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
<div class="menu_déroulant_content">
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/88','Joe Cocker!'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/213','Dylan'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/142','Mothers Milk'); ?>
</div>
<li><?= anchor('albums','Albums'); ?>
</li>
<li class="menu_déroulant"><?= anchor('artistes','Artistes'); ?>
<div class="menu_déroulant_content">
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/artistes/view/34','Queen'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/21','Slayer'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/63','Muse'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/62','Tool'); ?>
</div>
<li><?= anchor('artistes','Artistes'); ?>
</li>
<?php if ($this->session->userdata('logged')): ?>
<li><?= anchor('playlist','Playlist'); ?></li>

View File

@@ -1,5 +1,5 @@
<section class="container">
<section class="albums">
<?php
foreach($albums as $album){
echo "<div class='album'><article>";

View File

@@ -1,27 +0,0 @@
<div class="content">
<section id="about" class="box">
<div class="box-content">
<img src=<?= base_url('assets/img/musique.png') ?> alt="Description de l'image 2">
<div class="text-content">
<h2>Créer une nouvelle Playlist</h2>
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
<button type="submit" name="submit" class="playlist-button">Créer</button>
</div>
</div>
</section>
<section id="product" class="box">
<div class="box-img">
<img src=<?= base_url('assets/img/musique1.png') ?> alt="Description de l'image 2">
<div class="text-content">
<h2>Créer une playlist aléatoire</h2>
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
<button type="submit" name="submit" class="playlist-button">Créer</button>
</div>
</div>
</section>
</div>
</form>

View File

@@ -1,8 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nERROR: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@@ -1,8 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nDatabase error: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@@ -1,21 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
An uncaught Exception was encountered
Type: <?php echo get_class($exception), "\n"; ?>
Message: <?php echo $message, "\n"; ?>
Filename: <?php echo $exception->getFile(), "\n"; ?>
Line Number: <?php echo $exception->getLine(); ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
Backtrace:
<?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
File: <?php echo $error['file'], "\n"; ?>
Line: <?php echo $error['line'], "\n"; ?>
Function: <?php echo $error['function'], "\n\n"; ?>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>

View File

@@ -1,8 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
echo "\nERROR: ",
$heading,
"\n\n",
$message,
"\n\n";

View File

@@ -1,21 +0,0 @@
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
A PHP Error was encountered
Severity: <?php echo $severity, "\n"; ?>
Message: <?php echo $message, "\n"; ?>
Filename: <?php echo $filepath, "\n"; ?>
Line Number: <?php echo $line; ?>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
Backtrace:
<?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
File: <?php echo $error['file'], "\n"; ?>
Line: <?php echo $error['line'], "\n"; ?>
Function: <?php echo $error['function'], "\n\n"; ?>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>

View File

@@ -1,64 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Page Not Found</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

View File

@@ -1,64 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Database Error</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

View File

@@ -1,32 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>An uncaught Exception was encountered</h4>
<p>Type: <?php echo get_class($exception); ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $exception->getFile(); ?></p>
<p>Line Number: <?php echo $exception->getLine(); ?></p>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace:</p>
<?php foreach ($exception->getTrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
<p style="margin-left:10px">
File: <?php echo $error['file']; ?><br />
Line: <?php echo $error['line']; ?><br />
Function: <?php echo $error['function']; ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>

View File

@@ -1,64 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white; }
body {
background-color: #fff;
margin: 40px;
font: 13px/20px normal Helvetica, Arial, sans-serif;
color: #4F5155;
}
a {
color: #003399;
background-color: transparent;
font-weight: normal;
}
h1 {
color: #444;
background-color: transparent;
border-bottom: 1px solid #D0D0D0;
font-size: 19px;
font-weight: normal;
margin: 0 0 14px 0;
padding: 14px 15px 10px 15px;
}
code {
font-family: Consolas, Monaco, Courier New, Courier, monospace;
font-size: 12px;
background-color: #f9f9f9;
border: 1px solid #D0D0D0;
color: #002166;
display: block;
margin: 14px 0 14px 0;
padding: 12px 10px 12px 10px;
}
#container {
margin: 10px;
border: 1px solid #D0D0D0;
box-shadow: 0 0 8px #D0D0D0;
}
p {
margin: 12px 15px 12px 15px;
}
</style>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html>

View File

@@ -1,33 +0,0 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: <?php echo $severity; ?></p>
<p>Message: <?php echo $message; ?></p>
<p>Filename: <?php echo $filepath; ?></p>
<p>Line Number: <?php echo $line; ?></p>
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
<p>Backtrace:</p>
<?php foreach (debug_backtrace() as $error): ?>
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
<p style="margin-left:10px">
File: <?php echo $error['file'] ?><br />
Line: <?php echo $error['line'] ?><br />
Function: <?php echo $error['function'] ?>
</p>
<?php endif ?>
<?php endforeach ?>
<?php endif ?>
</div>

View File

@@ -1,32 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Connexion Spotify</title>
<link rel="stylesheet" href="assets/connexion.css">
</head>
<body>
<div class="container">
<div class="login-box">
<h1>Se connecter à Spotify</h1>
<form action="/login" method="post">
<div class="textbox">
<input type="email" placeholder="Adresse e-mail" name="email" required>
</div>
<div class="textbox">
<input type="password" placeholder="Mot de passe" name="password" required>
</div>
<button type="submit" class="btn">Se connecter</button>
</form>
<hr>
<div class="alt-login">
<p>Ou se connecter avec</p>
<button class="btn social-btn apple">Apple</button>
<button class="btn social-btn google">Google</button>
<button class="btn social-btn facebook">Facebook</button>
</div>
</div>
</div>
</body>
</html>

View File

@@ -3,8 +3,7 @@
<head>
<meta charset="UTF-8" />
<title>MUSIC APP</title>
<link rel="stylesheet" href="<?= base_url('assets/style.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/playlist.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/CSS/style.css') ?>">
</head>
<body>
<footer class="footer">

View File

@@ -1,50 +0,0 @@
<!doctype html>
<html lang="fr" class="has-navbar-fixed-top">
<head>
<meta charset="UTF-8" />
<title>SpotiFly</title>
<link rel="stylesheet" href="<?= base_url('assets/style.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/song.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/artiste.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/album.css') ?>">
</head>
<body>
<main class='container'>
<header class="navbar">
<div class="logo">
<img src="../assets/img/Logo1.png" alt="SpotiFly">
</div>
<nav class="menu">
<ul>
<li><?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/','Home'); ?></li>
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
<div class="menu_déroulant_content">
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/88','Joe Cocker!'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/213','Dylan'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/142','Mothers Milk'); ?>
</div>
</li>
<li class="menu_déroulant"><?= anchor('artistes','Artistes'); ?>
<div class="menu_déroulant_content">
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/artistes/view/34','Queen'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/21','Slayer'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/63','Muse'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~gallego/SAEWEB2.2/ci/index.php/Song/view/62','Tool'); ?>
</div>
</li>
<li><?= anchor('playlist','Playlist'); ?></li>
</ul>
</nav>
<div class="user">
<a class="bouton" href="connexion.php">Connexion</a>
<a class="bouton" href="html/Inscription.html">S'inscrire</a>
</div>
</header>
</main>
<script src="../assets/bouton.js"></script>
<button id="scrollTopBtn" onclick="scrollToTop()">
<span>&#8593;</span>
</button>
</body>
</html>

View File

@@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8" />
<title>SpotiFly</title>
<link rel="stylesheet" href="<?= base_url('assets/style.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/song.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/artiste.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/album.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/playlist.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/CSS/style.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/CSS/song.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/CSS/artiste.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/CSS/album.css') ?>">
<link rel="stylesheet" href="<?= base_url('assets/CSS/playlist.css') ?>">
</head>
<body>
<main class='contain'>
@@ -18,22 +18,8 @@
<nav class="menu">
<ul>
<li><?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/','Home'); ?></li>
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
<div class="menu_déroulant_content">
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/88','Joe Cocker!'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/213','Dylan'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/142','Mothers Milk'); ?>
</div>
</li>
<li class="menu_déroulant"><?= anchor('artistes','Artistes'); ?>
<div class="menu_déroulant_content">
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/artistes/view/34','Queen'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/21','Slayer'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/63','Muse'); ?>
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/62','Tool'); ?>
</div>
</li>
<li><?= anchor('albums','Albums'); ?></li>
<li><?= anchor('artistes','Artistes'); ?> </li>
<?php if ($this->session->userdata('logged')): ?>
<li><?= anchor('playlist','Playlist'); ?></li>
<?php endif ?>

View File

@@ -1,5 +1,9 @@
<form method="post" action="<?php echo base_url('index.php/Connexion/login'); ?>">
<input type="text" name="login" placeholder="Adresse mail" required>
<input type="password" name="password" placeholder="Mot de passe" required>
<button type="submit">Submit</button>
</form>
<!-- login.php -->
<div class="login">
<h2>Se connecter à SpotiFly</h2>
<form method="post" action="<?php echo base_url('index.php/Connexion/login'); ?>">
<input type="text" name="login" placeholder="Adresse mail" required>
<input type="password" name="password" placeholder="Mot de passe" required>
<button type="submit">Se connecter</button>
</form>
</div>

View File

@@ -0,0 +1,32 @@
<div class="content">
<div class="mention_legale">
<section>
<h2>Mentions Légales</h2>
<p>
<strong>Raison sociale :</strong> CogniCube<br>
<strong>Siège social :</strong> <a href="https://www.google.fr/maps/place/IUT+S%C3%A9nart-Fontainebleau/@48.3977457,2.6842742,17z/data=!3m1!4b1!4m6!3m5!1s0x47e5f482d85b7b99:0x25ca8642ba306cfc!8m2!3d48.3977457!4d2.6868545!16s%2Fg%2F1tksmnpc?entry=ttu" target="_blank">Route forestière Hurtault, Route Forestière de la Génisse, 77300 Fontainebleau</a><br>
<strong>Numéro de téléphone :</strong> <a href="tel:+33175489632">+33 01 60 54 02 98</a><br>
<strong>Adresse e-mail :</strong> <a href="mailto:contact.CogniCube@gmail.co">contact.CogniCube@gmail.com</a><br>
<br>
</p>
<p>
<strong>Hébergeur :</strong> IUT de Fontainebleau<br>
</p>
<p>
<strong>Droits d'auteur :</strong> © 2024 CogniCube. Tous droits réservés.
</p>
<p>
<strong>Projet d'étude à l'IUT de Fontainebleau :</strong> Ce site web a été réalisé dans le cadre d'une SAE. Il s'agit d'une création d'entreprise fictive à des fins éducatives, développée par : <br> - James Boutaric <br> - Aman Khan <br> - Jude-Christ Aissi
</p>
<p>
<strong>CogniCube - Entreprise fictive :</strong> CogniCube est une entreprise fictive créée à des fins pédagogiques. Toutes les informations sont purement imaginaires et ne représentent aucune entité réelle.
</p>
<p>
<strong>Crédits :</strong> Les images, vidéos, et autres contenus utilisés sur ce site sont soit des créations originales des étudiants du projet.
</p>
<p>
<strong>Contact :</strong> Pour toute question concernant ce projet, veuillez nous contacter aux adresses suivante : <br> <a href="mailto:james.boutaric@etu.u-pec.fr">- james.boutaric@etu.u-pec.fr</a> <br> <a href="mailto:aman.khan@etu.u-pec.fr">- aman_khan@etu.u-pec.fr</a> <br> <a href="mailto:jude.aissi@etu.u-pec.fr">- jude_aissi@etu.u-pec.fr</a>
</p>
</section>
</div>
</div>

View File

@@ -1,9 +1,34 @@
<?php
echo "<div class='playlist-container'>";
echo "<form action='" . base_url("index.php/playlist/MenuCreate/") . "' method='post'>";
echo "<button type='submit' class='create-button'>Create</button>";
echo "</form>";
<div class="content">
<section id="about" class="box">
<div class="box-content">
<img src=<?= base_url('assets/img/musique.png') ?> alt="Description de l'image 2">
<div class="text-content">
<h2>Créer une nouvelle Playlist</h2>
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
<button type="submit" name="submit" class="playlist-button">Créer</button>
</div>
</div>
</section>
<section id="product" class="box">
<div class="box-img">
<img src=<?= base_url('assets/img/musique1.png') ?> alt="Description de l'image 2">
<div class="text-content">
<h2>Créer une playlist aléatoire</h2>
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
<button type="submit" name="submit" class="playlist-button">Créer</button>
</div>
</div>
</section>
</div>
<div id="header"> </div>
</form>
<?php
foreach($playlists as $playlist){
echo "<div class='playlist-item'>";
echo "<header class='short-text'>";