diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-04 03:04:54 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-04 03:04:54 +0000 |
commit | df608880b797ceb6c2683d956dda1bf249b7897f (patch) | |
tree | 47f8197050d8878abf90d7064a62d57f663995b4 /modules | |
parent | ca7851d0e0d407d40af613fdd7de1c09bc9e76e7 (diff) | |
download | ampache-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.php | 9 |
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 |