Merge branch 'master' of https://github.com/matthieupenchenat81/ModuleWeb
@ -1,6 +1,3 @@
|
||||
ls
|
||||
git commit -a
|
||||
git config --global user.email www@37.187.101.7
|
||||
git config --global user.name www
|
||||
git commit -a
|
||||
git push
|
||||
@ -480,3 +477,24 @@ ls
|
||||
python loader
|
||||
python loader.py
|
||||
python loader.py
|
||||
ls
|
||||
git status
|
||||
git pull
|
||||
git pull
|
||||
nano SRC/config/mail.php
|
||||
git commit -a
|
||||
git push
|
||||
ls
|
||||
ls
|
||||
ls
|
||||
nano SRC/config/mail.php
|
||||
nano .env
|
||||
nano SRC/.env
|
||||
git pull
|
||||
rm SRC/resources/views/auth/reset.blade.php
|
||||
git pull
|
||||
ls
|
||||
git commit -a
|
||||
git commit -a
|
||||
git push
|
||||
exit
|
||||
|
0
.composer/cache/files/laravel/framework/43637b796f1ac0b1a960984231251ff04b438006.zip
vendored
Normal file → Executable file
0
.composer/cache/files/psy/psysh/2ce0e8f3020fd292c2ad2a496c5d83939823f642.zip
vendored
Normal file → Executable file
0
INITBASE/inventaire.xml
Normal file → Executable file
0
INITBASE/loader.py
Normal file → Executable file
0
SRC/app/Auteur.php
Normal file → Executable file
0
SRC/app/ConfigJeu.php
Normal file → Executable file
0
SRC/app/Datation.php
Normal file → Executable file
0
SRC/app/Domaine.php
Normal file → Executable file
0
SRC/app/Http/Controllers/APIController.php
Normal file → Executable file
@ -89,12 +89,12 @@ class LoginController extends Controller {
|
||||
return View::make('auth.reset')->with('token', $token);
|
||||
}
|
||||
|
||||
public function update($token)
|
||||
public function update()
|
||||
{
|
||||
$credentials = Input::only('email', 'password','password_confirmation','token');
|
||||
$response = Password::reset($credentials, function($user, $password)
|
||||
{
|
||||
$user->password = Hash::make($password);
|
||||
$user->motdepasse = Hash::make($password);
|
||||
$user->save();
|
||||
});
|
||||
|
||||
|
0
SRC/app/Http/Middleware/ifAdmin.php
Normal file → Executable file
0
SRC/app/Http/Middleware/ifGuest.php
Normal file → Executable file
0
SRC/app/Http/Middleware/ifGuestWithRef.php
Normal file → Executable file
0
SRC/app/Http/Middleware/ifReferent.php
Normal file → Executable file
@ -24,7 +24,7 @@ Route::get('password/reset/{token}', array(
|
||||
'uses' => 'LoginController@reset',
|
||||
'as' => 'password.reset'
|
||||
));
|
||||
Route::post('password/reset/{token}', array(
|
||||
Route::post('password/reset', array(
|
||||
'uses' => 'LoginController@update',
|
||||
'as' => 'password.update'
|
||||
));
|
||||
|
0
SRC/app/Matiere.php
Normal file → Executable file
0
SRC/app/Oeuvre.php
Normal file → Executable file
0
SRC/app/Referent.php
Normal file → Executable file
0
SRC/app/Technique.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_161651_create_referents_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_171332_create_config_jeus_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_173137_create_oeuvres_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_174954_create_techniques_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_175036_create_domaines_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_175042_create_matieres_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_12_203142_create_auteurs_table.php
Normal file → Executable file
0
SRC/database/migrations/2015_03_13_094102_create_datations_table.php
Normal file → Executable file
0
SRC/public/css/bootstrap-multiselect.css
vendored
Normal file → Executable file
0
SRC/public/css/fonts/icomoon.eot
Normal file → Executable file
0
SRC/public/css/fonts/icomoon.svg
Normal file → Executable file
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 816 B |
0
SRC/public/css/fonts/icomoon.ttf
Normal file → Executable file
0
SRC/public/css/fonts/icomoon.woff
Normal file → Executable file
0
SRC/public/css/fonts/style.css
Normal file → Executable file
0
SRC/public/css/frontend.css
Normal file → Executable file
0
SRC/public/css/image-picker.css
Normal file → Executable file
0
SRC/public/css/memory.css
Normal file → Executable file
0
SRC/public/imgs/Trophy-Gold.png
Normal file → Executable file
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
BIN
SRC/public/imgs/adminbg.jpg
Normal file
After Width: | Height: | Size: 7.2 MiB |
0
SRC/public/imgs/avatar/1.jpg
Normal file → Executable file
Before Width: | Height: | Size: 617 KiB After Width: | Height: | Size: 617 KiB |
0
SRC/public/imgs/avatar/1.png
Normal file → Executable file
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
0
SRC/public/imgs/avatar/default.jpg
Normal file → Executable file
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
0
SRC/public/imgs/bg.png
Normal file → Executable file
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
0
SRC/public/imgs/memo.jpg
Normal file → Executable file
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 654 B |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 7.0 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 6.3 KiB |
0
SRC/public/imgs/puzzle/balls.png
Normal file → Executable file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
0
SRC/public/js/bootstrap-multiselect.js
vendored
Normal file → Executable file
0
SRC/public/js/image-picker.min.js
vendored
Normal file → Executable file
0
SRC/public/js/imagesloaded.pkgd.min.js
vendored
Normal file → Executable file
0
SRC/public/js/masonry.min.js
vendored
Normal file → Executable file
0
SRC/public/js/memory.js
Normal file → Executable file
0
SRC/public/js/phaser.map
Normal file → Executable file
0
SRC/public/js/phaser.min.js
vendored
Normal file → Executable file
19
SRC/public/js/rechercheRef.js
Normal file
@ -0,0 +1,19 @@
|
||||
// fonction qui recherche le referent donnee en parametre
|
||||
function rechercherReferent()
|
||||
{
|
||||
// on recupere le mot cle rentrer dans le champs de recherche
|
||||
var motCle = document.getElementById("searchfield").value;
|
||||
|
||||
//boucle sur chaque item
|
||||
var list = document.getElementsByClassName("item");
|
||||
|
||||
for (var i = 0; i < list.length; i++)
|
||||
{
|
||||
referent = list[i].getElementsByClassName('nomRef')[0].innerHTML; //recupere le nom du referent referent
|
||||
if (referent.indexOf(motCle) > -1) //on compare si la recherche correspond à un nom
|
||||
{
|
||||
//on remplace la classe
|
||||
list[i].className = "item active";
|
||||
}
|
||||
}
|
||||
}
|
0
SRC/public/js/responsivevoice.js
Normal file → Executable file
@ -18,7 +18,7 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form class="form-horizontal" role="form" method="POST" action="/auth/register">
|
||||
<form class="form-horizontal" role="form" method="POST" action="/password/reset">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
|
||||
<div class="form-group">
|
||||
|
60
SRC/resources/views/auth/reset.blade.php
Normal file
@ -0,0 +1,60 @@
|
||||
@extends('backend/template')
|
||||
|
||||
@section('content')
|
||||
<div style="margin-top: 70px" class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-8 col-md-offset-2">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Réinitialiser Mot de Passe</div>
|
||||
<div class="panel-body">
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Oouups!</strong> Il y a un problème.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form class="form-horizontal" role="form" method="POST" action="/password/reset">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Email</label>
|
||||
<div class="col-md-6">
|
||||
<input type="text" class="form-control" name="email">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Mot de passe</label>
|
||||
<div class="col-md-6">
|
||||
<input type="password" class="form-control" name="password">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-4 control-label">Confirmer mot de passe</label>
|
||||
<div class="col-md-6">
|
||||
<input type="password" class="form-control" name="password_confirmation">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-md-offset-4">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Réinitialiser Password
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
21
SRC/resources/views/backend/admin_home.blade.php
Normal file → Executable file
@ -4,14 +4,20 @@
|
||||
<div class="container">
|
||||
<div class="row"><div class="col-md-12">
|
||||
@if (session('message_add'))
|
||||
<div class="alert alert-success">
|
||||
<div class="alert alert-success alert-dismissible fade in">
|
||||
{{ Session::get('message_add') }}
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('message_delete'))
|
||||
<div class="alert alert-danger">
|
||||
<div class="alert alert-danger alert-dismissible fade in">
|
||||
{{ Session::get('message_delete') }}
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
@endif
|
||||
</div></div>
|
||||
@ -42,7 +48,7 @@
|
||||
<td>
|
||||
<div class="btn-group" role="group" aria-label="...">
|
||||
<a href="{{ URL::to('admin/logAs', $user->id) }}" class="btn btn-primary"><span class="glyphicon glyphicon-zoom-in"></span></a>
|
||||
<a href="{{ URL::to('admin/deleteUser', $user->id) }}" class="btn btn-danger"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
<a href="{{ URL::to('admin/deleteUser', $user->id) }}" class="btn btn-danger confirm"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@ -100,3 +106,12 @@
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
<script>
|
||||
$('.confirm').click(function(e) {
|
||||
if (!confirm('Voulez-vous vraiment confirmer la supression ?')) e.preventDefault();
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
0
SRC/resources/views/backend/navbar_signed.blade.php
Normal file → Executable file
0
SRC/resources/views/backend/ref_home.blade.php
Normal file → Executable file
0
SRC/resources/views/backend/ref_listeoeuvres.blade.php
Normal file → Executable file
0
SRC/resources/views/backend/ref_navbar.blade.php
Normal file → Executable file
0
SRC/resources/views/backend/template.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/games.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/home.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/memo.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/memo_level.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/puzzle.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/puzzle_level.blade.php
Normal file → Executable file
0
SRC/resources/views/frontend/template.blade.php
Normal file → Executable file
0
UML/diagramClass2.0.png
Normal file → Executable file
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
0
UML/diagramClass2.png
Normal file → Executable file
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |