From 8a57bfc94bd0e0e8b1290b99afa3261d90d59045 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 3 Feb 2016 08:45:42 +0100 Subject: [PATCH] Modification nom du dispatcher -> ResourcesDispatcher --- index.php | 2 +- ...Dispatcher.php => ResourcesDispatcher.php} | 2 +- view.php | 10 +++--- view/dashboard.php | 25 +++++++++---- view/machines.php | 12 +++---- view/settings.php | 36 +++++++++++++++---- view/sync.php | 36 +++++++++++++++---- view/users.php | 36 +++++++++++++++---- 8 files changed, 122 insertions(+), 37 deletions(-) rename manager/{Dispatcher.php => ResourcesDispatcher.php} (99%) diff --git a/index.php b/index.php index 18c6a24..d751ba8 100644 --- a/index.php +++ b/index.php @@ -41,7 +41,7 @@ $R->get('settings/', function(){ include __ROOT__.'/view.php'; }); // Dispatcher - $R->get('f(?:/([\w-]+))*/?', function(){ new manager\Dispatcher($_GET['url']); }); + $R->get('f(?:/([\w-]+))*/?', function(){ new manager\ResourcesDispatcher($_GET['url']); }); // N'importe -> page d'accueil $R->get('.+', function(){ header('Location: /dashboard/'); }); diff --git a/manager/Dispatcher.php b/manager/ResourcesDispatcher.php similarity index 99% rename from manager/Dispatcher.php rename to manager/ResourcesDispatcher.php index 6a9560f..c33fd5b 100755 --- a/manager/Dispatcher.php +++ b/manager/ResourcesDispatcher.php @@ -3,7 +3,7 @@ namespace manager; - class Dispatcher{ + class ResourcesDispatcher{ // Constantes (a dispatcher dans un .conf) public static $extension_config_path = '/config/dispatcher-extensions.json'; diff --git a/view.php b/view.php index 3d47d64..a6de6cc 100755 --- a/view.php +++ b/view.php @@ -42,11 +42,11 @@ diff --git a/view/dashboard.php b/view/dashboard.php index 021dd98..43d0088 100644 --- a/view/dashboard.php +++ b/view/dashboard.php @@ -1,12 +1,25 @@ Bienvenue sur le DASHBOARD \ No newline at end of file diff --git a/view/machines.php b/view/machines.php index 0ddbbc6..42aa1e2 100644 --- a/view/machines.php +++ b/view/machines.php @@ -2,32 +2,32 @@