Update sounds.php
This commit is contained in:
@@ -11,6 +11,7 @@ class sounds {
|
|||||||
* Called when the object is created
|
* Called when the object is created
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
public $domain_uuid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor
|
* Class constructor
|
||||||
@@ -44,11 +45,13 @@ class sounds {
|
|||||||
|
|
||||||
//miscellaneous
|
//miscellaneous
|
||||||
$x=0;
|
$x=0;
|
||||||
$array['miscellaneous'][$x]['name'] = "say";
|
if (if_group("superadmin")) {
|
||||||
$array['miscellaneous'][$x]['value'] = "say:";
|
$array['miscellaneous'][$x]['name'] = "say";
|
||||||
$x++;
|
$array['miscellaneous'][$x]['value'] = "say:";
|
||||||
$array['miscellaneous'][$x]['name'] = "tone_stream";
|
$x++;
|
||||||
$array['miscellaneous'][$x]['value'] = "tone_stream:";
|
$array['miscellaneous'][$x]['name'] = "tone_stream";
|
||||||
|
$array['miscellaneous'][$x]['value'] = "tone_stream:";
|
||||||
|
}
|
||||||
//recordings
|
//recordings
|
||||||
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/phrases/app_config.php")) {
|
if (file_exists($_SERVER["PROJECT_ROOT"]."/app/phrases/app_config.php")) {
|
||||||
$sql = "select recording_name, recording_filename from v_recordings ";
|
$sql = "select recording_name, recording_filename from v_recordings ";
|
||||||
@@ -75,7 +78,7 @@ class sounds {
|
|||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
if (count($result) > 0) {
|
if (count($result) > 0) {
|
||||||
foreach ($result as &$row) {
|
foreach ($result as &$row) {
|
||||||
$array['phrases'][$x]['name'] = "phrase:".$row["phrase_uuid"];
|
$array['phrases'][$x]['name'] = "phrase:".$row["phrase_name"];
|
||||||
$array['phrases'][$x]['value'] = "phrase:".$row["phrase_uuid"];
|
$array['phrases'][$x]['value'] = "phrase:".$row["phrase_uuid"];
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user