From aa370627b211a51dc46891cfa4b6e3d2ef3e52db Mon Sep 17 00:00:00 2001 From: mcramer <m.cramer@pixcept.de> Date: Tue, 16 Jul 2013 10:45:17 -0400 Subject: [PATCH] - Fixed FS#2924 - the month will not set automatically in the autoresponder by click now Along with this fixed some display problems with the combo boxes introduced in 3.0.5. Some fields were not correctly displayed with the predefined values if value and text of the underlying option element differ. --- interface/web/admin/software_package_install.php | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/interface/web/admin/software_package_install.php b/interface/web/admin/software_package_install.php index 97bf1bf..f838177 100644 --- a/interface/web/admin/software_package_install.php +++ b/interface/web/admin/software_package_install.php @@ -38,7 +38,7 @@ if(!$app->auth->is_admin()) die('only allowed for administrators.'); $package_name = $app->db->quote($_REQUEST['package']); -$install_server_id = intval($_REQUEST['server_id']); +$install_server_id = $app->functions->intval($_REQUEST['server_id']); $install_key = $app->db->quote(trim($_REQUEST['install_key'])); $package = $app->db->queryOneRecord("SELECT * FROM software_package WHERE package_name = '$package_name'"); @@ -114,10 +114,11 @@ $package_config_str = $app->ini_parser->get_ini_string($package_config_array); $package['package_config'] = $package_config_str; + $remote_password_md5 = md5($remote_password); $app->db->datalogUpdate('software_package', "package_config = '".$app->db->quote($package_config_str)."'", 'package_id',$package['package_id']); $sql = "INSERT INTO `remote_user` (`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `remote_username`, `remote_password`, `remote_functions`) VALUES - (1, 1, 'riud', 'riud', '', '$remote_user', '$remote_password', '$remote_functions');"; + (1, 1, 'riud', 'riud', '', '$remote_user', '$remote_password_md5', '$remote_functions');"; $app->db->query($sql); @@ -128,7 +129,7 @@ //* Add the record to start the install process $insert_data = "(package_name, server_id, software_update_id, status) VALUES ('$package_name', '$install_server_id', '$software_update_id','installing')"; $app->db->datalogInsert('software_update_inst', $insert_data, 'software_update_inst_id'); - $message_ok = 'Starting package installation '."<a href=\"#\" onClick=\"submitForm('pageForm','admin/software_package_list.php');\">".$app->lng('next')."</a>"; + $message_ok = 'Starting package installation '."<a href=\"#\" onclick=\"submitForm('pageForm','admin/software_package_list.php');\">".$app->lng('next')."</a>"; } -- Gitblit v1.9.1