diff --git a/pandora_console/include/class/Map.class.php b/pandora_console/include/class/Map.class.php
new file mode 100644
index 0000000000..0bd585f8c3
--- /dev/null
+++ b/pandora_console/include/class/Map.class.php
@@ -0,0 +1,43 @@
+id = $id;
+ }
+
+ public function show() {
+ ?>
+
+
+
+
diff --git a/pandora_console/include/class/Networkmap.class.php b/pandora_console/include/class/Networkmap.class.php
new file mode 100644
index 0000000000..e560ba9318
--- /dev/null
+++ b/pandora_console/include/class/Networkmap.class.php
@@ -0,0 +1,33 @@
+
\ No newline at end of file
diff --git a/pandora_console/include/functions_maps.php b/pandora_console/include/functions_maps.php
index 7d9a5992f8..246770aa3f 100644
--- a/pandora_console/include/functions_maps.php
+++ b/pandora_console/include/functions_maps.php
@@ -158,8 +158,10 @@ function maps_is_visualmap($id) {
}
function maps_show($id) {
+ require_once("include/class/Map.class.php");
+
if (maps_is_networkmap($id)) {
- require_once("include/functions_networkmaps.php");
+ require_once("include/class/Networkmap.class.php");
$map = new Networkmap($id);
$map->show();
@@ -168,24 +170,4 @@ function maps_show($id) {
//TODO VISUAL
}
}
-
-class Map {
- protected $id = null;
-
- public function __construct($id) {
- $this->id = $id;
- }
-
- public function show() {
- ?>
-
-
-
-
diff --git a/pandora_console/include/functions_networkmaps.php b/pandora_console/include/functions_networkmaps.php
index fef372c33b..0300c22a43 100644
--- a/pandora_console/include/functions_networkmaps.php
+++ b/pandora_console/include/functions_networkmaps.php
@@ -27,14 +27,4 @@ function networkmaps_show($id) {
networkmaps_show_staged_area($id);
networkmaps_show_black_list_staged_area($id);
}
-
-class Networkmap extends Map {
- public function __construct($id) {
- parent::__construct($id);
- }
-
- public function show() {
- parent::show();
- }
-}
?>
\ No newline at end of file