From 2b354f3ca11811f205fc5462c1ff59ca35c185db Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 7 Jan 2016 15:09:20 +0100 Subject: [PATCH] Correction post-entretien1 --- README.md | 0 index.php | 3 +- manager/import.php | 2 +- manager/security.php | 2743 +----------------- page/_JS/groups.js | 7 +- page/groups.php | 2 +- src/files/admin2_export_jury.xlsx | Bin 9498 -> 0 bytes src/files/admin2_export_liste_etudiants.xlsx | Bin 12665 -> 0 bytes src/files/admin2_import_jury.xlsx | Bin 8049 -> 0 bytes src/files/admin2_import_notes.xlsx | Bin 4509 -> 0 bytes src/files/admin_import_mcc.xlsx | Bin 9131 -> 0 bytes src/files/lbh1609a_import_notes.xlsx | Bin 4509 -> 0 bytes 12 files changed, 10 insertions(+), 2747 deletions(-) mode change 100644 => 100755 README.md delete mode 100755 src/files/admin2_export_jury.xlsx delete mode 100755 src/files/admin2_export_liste_etudiants.xlsx delete mode 100755 src/files/admin2_import_jury.xlsx delete mode 100755 src/files/admin2_import_notes.xlsx delete mode 100755 src/files/admin_import_mcc.xlsx delete mode 100755 src/files/lbh1609a_import_notes.xlsx diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/index.php b/index.php index c3b1ba4..c9cedd8 100755 --- a/index.php +++ b/index.php @@ -103,7 +103,8 @@ $notifNotifNum = 5; - Licence Creative Commons + Licence Creative Commons + diff --git a/manager/import.php b/manager/import.php index 3ae7134..979f1fb 100755 --- a/manager/import.php +++ b/manager/import.php @@ -7,7 +7,7 @@ // on se place dans /.../src/files chdir( $path ); - chmod( $path, 0774 ); + // chmod( $path, 0774 ); if( move_uploaded_file($_FILES["file"]["tmp_name"], $path.$fileName) ){ // on modifie les droits du fichier diff --git a/manager/security.php b/manager/security.php index 028f14a..c64c723 100755 --- a/manager/security.php +++ b/manager/security.php @@ -85,7 +85,7 @@ * + propre à un accès (ip publique = box) * * [2] Démarre la session - * + *IMPORT */ function session_init(){ /* @@ -277,2746 +277,7 @@ require_once __ROOT__.DIRECTORY_SEPARATOR.'manager'.DIRECTORY_SEPARATOR.strtolower($className).'.php'; // else // var_dump('autoloaderFail'); - - } spl_autoload_register('autoLoader', false, true); -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file +?> \ No newline at end of file diff --git a/page/_JS/groups.js b/page/_JS/groups.js index d029851..87137a9 100755 --- a/page/_JS/groups.js +++ b/page/_JS/groups.js @@ -275,10 +275,10 @@ if( importInscrits != null ){ xhr.open('POST', 'manager/import.php', true); xhr.onreadystatechange = function(){ - if( xhr.readyState == 4 && [0, 200].indexOf(xhr.status) > -1 ) + if( xhr.readyState == 4 && [0, 200].indexOf(xhr.status) > -1 ){ + console.log('[1] IMPORT=> '+xhr.responseText); if( xhr.responseText == 'success' ){ - /* [2] LECTURE DU FICHIER =======================================*/ var request = { level_0: 'excel', level_1: 'import_inscrits' }; @@ -299,9 +299,10 @@ if( importInscrits != null ){ }else console.log('import error'); }); - } + } + } xhr.send(fd); diff --git a/page/groups.php b/page/groups.php index 7c8a478..d13602b 100755 --- a/page/groups.php +++ b/page/groups.php @@ -673,7 +673,7 @@ if( permission('master') || permission('admin') ){ /* AFFINAGE PAR ANNEE */ /**********************/ echo "Importation des listes d'étudiants
"; - echo "(Fichier .xlsx suivant le modèle : modèle de fichier)
"; + echo "(Fichier .xlsx suivant le modèle : modèle de fichier)
"; /* AFFINAGE POUR LES 5 ANNEES SUIVANTES */ echo "