提交 3383edbd authored 作者: Jeff Lenk's avatar Jeff Lenk
...@@ -34,9 +34,13 @@ class conference_conf extends fs_configuration { ...@@ -34,9 +34,13 @@ class conference_conf extends fs_configuration {
* @return void * @return void
*/ */
public function main() { public function main() {
$this -> xmlw -> startElement('configuration');
$this -> xmlw -> writeAttribute('name', 'conference.conf');
$this -> xmlw -> writeAttribute('description', 'Audio Conference');
$this -> write_advertises(); $this -> write_advertises();
$this -> write_controls(); if($this -> request['Controls']) {$this -> write_controls();}
$this -> write_profiles(); if($this -> request['profile_name']) {$this -> write_profiles();}
$this -> xmlw -> endElement();
} }
/** /**
...@@ -76,10 +80,9 @@ class conference_conf extends fs_configuration { ...@@ -76,10 +80,9 @@ class conference_conf extends fs_configuration {
* @return array * @return array
*/ */
private function get_profiles_array() { private function get_profiles_array() {
$query = sprintf('%s %s;'
, "SELECT * FROM conference_profiles" $prof = $this -> request['profile_name'];
, "ORDER BY profile_name" $query = "SELECT * FROM conference_profiles where profile_name='$prof'";
);
$res = $this -> db -> query($query); $res = $this -> db -> query($query);
if (FS_PDO::isError($res)) { if (FS_PDO::isError($res)) {
$this -> comment($query); $this -> comment($query);
...@@ -130,8 +133,9 @@ class conference_conf extends fs_configuration { ...@@ -130,8 +133,9 @@ class conference_conf extends fs_configuration {
* @return array * @return array
*/ */
private function get_controls_array() { private function get_controls_array() {
$cont = $this -> request['Controls'];
$query = sprintf( $query = sprintf(
"SELECT * FROM conference_controls ORDER BY conf_group" "SELECT * FROM conference_controls where conf_group = '$cont'"
); );
$res = $this -> db -> query($query); $res = $this -> db -> query($query);
if (FS_PDO::isError($res)) { if (FS_PDO::isError($res)) {
...@@ -174,6 +178,7 @@ class conference_conf extends fs_configuration { ...@@ -174,6 +178,7 @@ class conference_conf extends fs_configuration {
$this -> xmlw -> startElement('control'); $this -> xmlw -> startElement('control');
$this -> xmlw -> writeAttribute('action', $controls['action']); $this -> xmlw -> writeAttribute('action', $controls['action']);
$this -> xmlw -> writeAttribute('digits', $controls['digits']); $this -> xmlw -> writeAttribute('digits', $controls['digits']);
if($controls['data']) {$this -> xmlw -> writeAttribute('data', $controls['data']);}
$this -> xmlw -> endElement(); $this -> xmlw -> endElement();
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论