From b9035ac62744c0cb30474e065b588f23482ef733 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 5 May 2010 16:54:03 +0000 Subject: [PATCH] 2010-05-05 Miguel de Dios * godmode/reporting/visual_console_builder.php: added the extract size of image and save. Fixes: #2992401 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2670 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/reporting/visual_console_builder.php | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ece01511fd..99d4cd269b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-05-05 Miguel de Dios + + * godmode/reporting/visual_console_builder.php: added the extract size of + image and save. + Fixes: #2992401 + 2010-05-05 Miguel de Dios * include/functions_visual_map.php: fixed notices php messages when the diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index 7439bae2d4..d26d0ebbcd 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -59,6 +59,10 @@ switch ($activeTab) { } break; case 'save': + $sizeBackground = getimagesize($config['homedir'] . '/images/console/background/' . $background); + $values['width'] = $sizeBackground[0]; + $values['height'] = $sizeBackground[1]; + if($values['name'] != "" && $values['background']) $idVisualConsole = process_sql_insert('tlayout', $values); else