mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Working in the networkmap.
This commit is contained in:
parent
d27765a96a
commit
3d704e7932
@ -126,10 +126,10 @@ function maps_update_map ($id, $values) {
|
|||||||
|
|
||||||
function maps_is_networkmap($id) {
|
function maps_is_networkmap($id) {
|
||||||
$return = db_get_value('type', 'tmap', 'id', $id);
|
$return = db_get_value('type', 'tmap', 'id', $id);
|
||||||
|
|
||||||
if ($return === false)
|
if ($return === false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ($return == MAP_TYPE_NETWORKMAP)
|
if ($return == MAP_TYPE_NETWORKMAP)
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
@ -154,7 +154,7 @@ function maps_is_visualmap($id) {
|
|||||||
function maps_show($id) {
|
function maps_show($id) {
|
||||||
if (maps_is_networkmap($id)) {
|
if (maps_is_networkmap($id)) {
|
||||||
require_once("include/functions_networkmaps.php");
|
require_once("include/functions_networkmaps.php");
|
||||||
|
|
||||||
networkmaps_show($id);
|
networkmaps_show($id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -22,14 +22,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function networkmaps_show($id) {
|
function networkmaps_show($id) {
|
||||||
$networkmap_items = db_get_all_rows_sql("SELECT * FROM titem WHERE id_map = " . $id);
|
if (maps_is_networkmap($id))
|
||||||
$networkmap = db_get_all_rows_sql("SELECT * FROM tmap WHERE id = " . $id);
|
return false;
|
||||||
|
|
||||||
if ($networkmap === false) {
|
maps_show($id);
|
||||||
ui_print_error_message(__('Not found networkmap'));
|
|
||||||
}
|
networkmaps_show_staged_area($id);
|
||||||
else {
|
networkmaps_show_black_list_staged_area($id);
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user