Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch-contrib
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch-contrib
Commits
3383edbd
提交
3383edbd
authored
2月 01, 2011
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
ssh://git.freeswitch.org/freeswitch-contrib
上级
31cd8f41
085c7eed
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
14 行增加
和
9 行删除
+14
-9
conference.conf.php
intralanman/PHP/fs_curl/configuration/conference.conf.php
+14
-9
没有找到文件。
intralanman/PHP/fs_curl/configuration/conference.conf.php
浏览文件 @
3383edbd
...
@@ -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
->
write_advertises
();
$this
->
xmlw
->
startElement
(
'configuration'
);
$this
->
write_controls
();
$this
->
xmlw
->
writeAttribute
(
'name'
,
'conference.conf'
);
$this
->
write_profiles
();
$this
->
xmlw
->
writeAttribute
(
'description'
,
'Audio Conference'
);
$this
->
write_advertises
();
if
(
$this
->
request
[
'Controls'
])
{
$this
->
write_controls
();}
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
()
{
$query
=
sprintf
(
$cont
=
$this
->
request
[
'Controls'
];
"SELECT * FROM conference_controls ORDER BY conf_group"
$query
=
sprintf
(
"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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论