summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-04 03:04:54 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-01-04 03:04:54 +0000
commitdf608880b797ceb6c2683d956dda1bf249b7897f (patch)
tree47f8197050d8878abf90d7064a62d57f663995b4 /modules
parentca7851d0e0d407d40af613fdd7de1c09bc9e76e7 (diff)
downloadampache-df608880b797ceb6c2683d956dda1bf249b7897f.tar.gz
ampache-df608880b797ceb6c2683d956dda1bf249b7897f.tar.bz2
ampache-df608880b797ceb6c2683d956dda1bf249b7897f.zip
fixed apply to all and updating of httpq instances
Diffstat (limited to 'modules')
-rw-r--r--modules/localplay/httpq.controller.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/localplay/httpq.controller.php b/modules/localplay/httpq.controller.php
index 990cc00e..e7ac27de 100644
--- a/modules/localplay/httpq.controller.php
+++ b/modules/localplay/httpq.controller.php
@@ -193,7 +193,16 @@ class AmpacheHttpq extends localplay_controller {
*/
public function update_instance($uid,$data) {
+ $uid = Dba::escape($uid);
+ $port = Dba::escape($data['port']);
+ $host = Dba::escape($data['host']);
+ $name = Dba::escape($data['name']);
+ $pass = Dba::escape($data['password']);
+
+ $sql = "UPDATE `localplay_httpq` SET `host`='$host', `port`='$port', `name`='$name', `password`='$password' WHERE `id`='$uid'";
+ $db_results = Dba::query($sql);
+ return true;
} // update_instance