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 @@