From 444a03c1b37948bc5214f46ec534e9f31d08be75 Mon Sep 17 00:00:00 2001 From: darode Date: Wed, 20 Oct 2010 13:50:18 +0000 Subject: [PATCH] 2010-10-20 Dario Rodriguez * godmode/servers/modificar_server.php: Disable change name of server because it will be trouble updating server status. Fixes: #3091297 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3430 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/godmode/servers/modificar_server.php | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ca3ca0b275..9511939865 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2010-10-20 Dario Rodriguez + + * godmode/servers/modificar_server.php: Disable change name of server + because it will be trouble updating server status. + + Fixes: #3091297 + 2010-10-20 Sergio Martin * godmode/alerts/alert_list.list.php: Fixed jquery clone diff --git a/pandora_console/godmode/servers/modificar_server.php b/pandora_console/godmode/servers/modificar_server.php index 48dee6c066..333e3c9608 100644 --- a/pandora_console/godmode/servers/modificar_server.php +++ b/pandora_console/godmode/servers/modificar_server.php @@ -41,7 +41,7 @@ if (isset($_GET["server"])) { $table->width=450; $table->class="databox_color"; - $table->data[] = array (__('Name'),print_input_text ('name',$row["name"],'',50,0,true)); + $table->data[] = array (__('Name'),$row["name"]); $table->data[] = array (__('IP Address'),print_input_text ('address',$row["ip_address"],'',50,0,true)); $table->data[] = array (__('Description'),print_input_text ('description',$row["description"],'',50,0,true)); print_table ($table); @@ -64,11 +64,10 @@ if (isset($_GET["server"])) { echo '

'.__('There was a problem deleting the server').'

'; } } elseif (isset($_GET["update"])) { - $name = get_parameter_post ("name"); $address = get_parameter_post ("address"); $description = get_parameter_post ("description"); $id_server = get_parameter_post ("server"); - $sql = sprintf ("UPDATE tserver SET name = '%s', ip_address = '%s', description = '%s' WHERE id_server = %d", $name, $address, $description, $id_server); + $sql = sprintf ("UPDATE tserver SET ip_address = '%s', description = '%s' WHERE id_server = %d", $address, $description, $id_server); $result = process_sql ($sql); if ($result !== false) { echo '

'.__('Server updated successfully').'

';