Update
This commit is contained in:
parent
884290378d
commit
2bfbce7ec8
|
|
@ -27,19 +27,24 @@
|
||||||
if ($domains_processed == 1) {
|
if ($domains_processed == 1) {
|
||||||
|
|
||||||
//set the directory
|
//set the directory
|
||||||
|
if (is_array($_SESSION["switch"]["conf"])) {
|
||||||
$xml_dir = $_SESSION["switch"]["conf"]["dir"].'/autoload_configs';
|
$xml_dir = $_SESSION["switch"]["conf"]["dir"].'/autoload_configs';
|
||||||
$xml_file = $xml_dir."/local_stream.conf";
|
$xml_file = $xml_dir."/local_stream.conf";
|
||||||
|
}
|
||||||
|
|
||||||
//rename the file
|
//rename the file
|
||||||
|
if (is_array($_SESSION["switch"]["conf"])) {
|
||||||
if (file_exists($xml_dir.'/local_stream.conf.xml')) {
|
if (file_exists($xml_dir.'/local_stream.conf.xml')) {
|
||||||
rename($xml_dir.'/local_stream.conf', $xml_dir.'/'.$xml_file);
|
rename($xml_dir.'/local_stream.conf', $xml_dir.'/'.$xml_file);
|
||||||
}
|
}
|
||||||
if (file_exists($xml_dir.'/local_stream.conf.xml.noload')) {
|
if (file_exists($xml_dir.'/local_stream.conf.xml.noload')) {
|
||||||
rename($xml_dir.'/local_stream.conf', $xml_dir.'/'.$xml_file);
|
rename($xml_dir.'/local_stream.conf', $xml_dir.'/'.$xml_file);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//add the music_on_hold list to the database
|
//add the music_on_hold list to the database
|
||||||
$sql = "select count(*) as num_rows from v_music_on_hold; ";
|
if (is_array($_SESSION["switch"]["conf"])) {
|
||||||
|
$sql = "select count(music_on_hold_uuid) as num_rows from v_music_on_hold; ";
|
||||||
$prep_statement = $db->prepare($sql);
|
$prep_statement = $db->prepare($sql);
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
|
|
@ -114,6 +119,7 @@
|
||||||
|
|
||||||
} //if num_rows
|
} //if num_rows
|
||||||
} //if prep_statement
|
} //if prep_statement
|
||||||
|
} //if is_array
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue