Commit abd8d051 authored by kylian lecomte's avatar kylian lecomte
Browse files

up

parent f21cdd3d
RewriteEngine On RewriteEngine On
RewriteBase /~E183835W/codeigniter/ RewriteBase /~E183502J/lockhome/
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1 RewriteRule (.*) index.php/$1
\ No newline at end of file
Changer le numéro étudiant dans les fichiers :
- .htaccess
- config.php
\ No newline at end of file
...@@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ...@@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own. | a PHP script and you can easily do that on your own.
| |
*/ */
$config['base_url'] = 'http://srv-infoweb.iut-nantes.univ-nantes.prive/~E183835W/lockhome/'; $config['base_url'] = 'http://srv-infoweb.iut-nantes.univ-nantes.prive/~E183502J/lockhome/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
...@@ -74,7 +74,7 @@ $route['profil'] = 'Profil'; ...@@ -74,7 +74,7 @@ $route['profil'] = 'Profil';
$route['(:any)'] = 'Accueil/index'; $route['(:any)'] = 'Accueil/index';
$route['editer'] = 'Accueil/editer'; $route['editer'] = 'Accueil/editer';
$route['default_controller'] = 'Accueil/index'; $route['default_controller'] = 'Accueil/showAccueil';
$route['404_override'] = ''; $route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE; $route['translate_uri_dashes'] = FALSE;
...@@ -10,4 +10,12 @@ class Accueil extends CI_Controller { ...@@ -10,4 +10,12 @@ class Accueil extends CI_Controller {
public function index() { public function index() {
echo "bonjour"; echo "bonjour";
} }
public function showAccueil(){
if(isset($_SESSION['email'])){
$this->load->view('accueil/accueil.html');
} else {
$this->load->view('auth/connexion.html');
}
}
} }
\ No newline at end of file
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="CSS/accueil.css"> <link rel="stylesheet" href="static/accueil.css">
<link rel="stylesheet" href="CSS/commun.css"> <link rel="stylesheet" href="static/commun.css">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css"> <link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">
<title>Accueil</title> <title>Accueil</title>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Connexion</title> <title>Connexion</title>
<link rel="stylesheet" type="text/css" href="./CSS/connexion.css"> <link rel="stylesheet" type="text/css" href="static/connexion.css">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css"> <link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css">
</head> </head>
<body> <body>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Inscription</title> <title>Inscription</title>
<link rel="stylesheet" type="text/css" href="./CSS/connexion.css"> <link rel="stylesheet" type="text/css" href="static/connexion.css">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css"> <link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css">
</head> </head>
<body> <body>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mot de passe oublié</title> <title>Mot de passe oublié</title>
<link rel="stylesheet" type="text/css" href="./CSS/connexion.css"> <link rel="stylesheet" type="text/css" href="static/connexion.css">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css"> <link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css">
</head> </head>
<body> <body>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Liste des caméras - LockHome</title> <title>Liste des caméras - LockHome</title>
<link rel="stylesheet" href="camera.css"> <link rel="stylesheet" href="static/camera.css">
<link rel="stylesheet" href="../CSS/commun.css"> <link rel="stylesheet" href="static/commun.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css"> <link rel="stylesheet" href="https://unicons.iconscout.com/release/v2.0.1/css/unicons.css">
</head> </head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment