From 92037e013922b47b4bc8d4c5072fcb86f5ec26a9 Mon Sep 17 00:00:00 2001 From: Emmanuel ROY Date: Thu, 14 Mar 2019 16:48:02 +0100 Subject: [PATCH] initial commmit de la branche Nude with composer --- .../{application.class.php => Application.php} | 8 ++------ application/class/{bdd.class.php => Bdd.php} | 2 ++ .../{controlleur.class.php => Controlleur.php} | 9 ++++----- application/class/{dumper.class.php => Dumper.php} | 3 +++ application/class/{modele.class.php => Modele.php} | 2 ++ application/class/{tri.class.php => Tri.php} | 9 +++------ application/class/{url.class.php => Url.php} | 13 ++++++++----- application/class/{vue.class.php => Vue.php} | 2 ++ application/include/vues/accueil.phtml | 9 ++------- application/layout/include/standard/header.phtml | 2 +- application/parameters.php | 2 +- composer.json | 8 ++++++++ public/index.php | 8 ++++---- 13 files changed, 42 insertions(+), 35 deletions(-) rename application/class/{application.class.php => Application.php} (59%) rename application/class/{bdd.class.php => Bdd.php} (97%) rename application/class/{controlleur.class.php => Controlleur.php} (77%) rename application/class/{dumper.class.php => Dumper.php} (85%) rename application/class/{modele.class.php => Modele.php} (96%) rename application/class/{tri.class.php => Tri.php} (65%) rename application/class/{url.class.php => Url.php} (86%) rename application/class/{vue.class.php => Vue.php} (95%) create mode 100644 composer.json diff --git a/application/class/application.class.php b/application/class/Application.php similarity index 59% rename from application/class/application.class.php rename to application/class/Application.php index a0a3ae6..e2ea8fb 100644 --- a/application/class/application.class.php +++ b/application/class/Application.php @@ -1,12 +1,8 @@ url->page['params']; require TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $application->url->page['name'] . '.php'; } else { - $this->modele = new Modele($application->url->page); - $this->vue = new Vue($this); + $this->modele = new modele($application->url->page); + $this->vue = new vue($this); } } diff --git a/application/class/dumper.class.php b/application/class/Dumper.php similarity index 85% rename from application/class/dumper.class.php rename to application/class/Dumper.php index fe5fcf4..c266080 100644 --- a/application/class/dumper.class.php +++ b/application/class/Dumper.php @@ -1,5 +1,8 @@ Page de gestion des adresses IP -


-

Possibilités d'afficher toutes les adresses par VLAN et Zone d'adresse

-

Ainsi que de faire des recherches par nom de machine, profil et adresse ip

-

Possibilité d'ajouter/supprimer des VLAN dans la base de données

-

Possibilité de supprimer les adresses ip qui ne sont pas modifiées par Abitop

-

Historisation des ajouts et des suppressions

\ No newline at end of file +

Accueil

+

\ No newline at end of file diff --git a/application/layout/include/standard/header.phtml b/application/layout/include/standard/header.phtml index 9a17ce1..b300a45 100644 --- a/application/layout/include/standard/header.phtml +++ b/application/layout/include/standard/header.phtml @@ -1,7 +1,7 @@

Menu Experiments

diff --git a/application/parameters.php b/application/parameters.php index 74c2d70..ac5ebdf 100644 --- a/application/parameters.php +++ b/application/parameters.php @@ -8,4 +8,4 @@ define('DSN_BDD2',"mysql:host=localhost;dbname=db2"); define('USER_BDD2',"user2"); define('PASS_BDD2',"pass2"); -define('PATH_URL',"http://ssdom.domain.tld/public/"); \ No newline at end of file +define('PATH_URL',"http://vlan.localhost/"); \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..790fe11 --- /dev/null +++ b/composer.json @@ -0,0 +1,8 @@ +{ + "autoload": { + "psr-4": { + "MVC\\Classe\\":"./application/class", + "MVC\\Objets\\":"./application/objets" + } + } +} diff --git a/public/index.php b/public/index.php index 4896da6..635a298 100644 --- a/public/index.php +++ b/public/index.php @@ -4,10 +4,10 @@ error_reporting(-1); ini_set('display_errors', 1); define("APPLICATION_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."application"); -define("CLASSES_PATH", APPLICATION_PATH.DIRECTORY_SEPARATOR."class"); +define("VENDOR_PATH", dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR."vendor"); +//require APPLICATION_PATH.DIRECTORY_SEPARATOR."autoloader.php"; +require VENDOR_PATH.DIRECTORY_SEPARATOR."autoload.php"; -require CLASSES_PATH.DIRECTORY_SEPARATOR."application.class.php"; - -$poo_v1 = new Application(); +$poo_v1 = new \MVC\Classe\Application(); $poo_v1->launch();