Update provision.php

This commit is contained in:
FusionPBX
2016-08-23 14:21:27 -06:00
committed by GitHub
parent b14c8a1d6f
commit a16483adb3
@@ -222,11 +222,11 @@ include "root.php";
} }
$numbers[] = array( $numbers[] = array(
line_numbe => $line['line_number'], line_number => $line['line_number'],
phone_label => $phone_label, phone_label => $phone_label,
phone_number => $row['phone_number'], phone_number => $row['phone_number'],
phone_extension => $row['phone_extension'], phone_extension => $row['phone_extension'],
phone_primar => $row['phone_primary'], phone_primary => $row['phone_primary'],
); );
$contact['phone_number_' . $phone_label] = $row['phone_number']; $contact['phone_number_' . $phone_label] = $row['phone_number'];
@@ -310,7 +310,7 @@ include "root.php";
if ($_SESSION['provision']['debug']['boolean'] == 'true'){ if ($_SESSION['provision']['debug']['boolean'] == 'true'){
echo "<br/>device disabled<br/>"; echo "<br/>device disabled<br/>";
} }
echo "327 file not found"; echo "file not found";
exit; exit;
} }
@@ -922,14 +922,14 @@ include "root.php";
$file = "{\$mac}.cfg"; $file = "{\$mac}.cfg";
} }
else { else {
echo "923 file not found"; echo "file not found";
exit; exit;
} }
} }
else { else {
//make sure the file exists //make sure the file exists
if (!file_exists($template_dir."/".$device_template ."/".$file)) { if (!file_exists($template_dir."/".$device_template ."/".$file)) {
echo "930 file not found ".$template_dir."/".$device_template ."/".$file; echo "file not found ".$template_dir."/".$device_template ."/".$file;
if ($_SESSION['provision']['debug']['boolean'] == 'true'){ if ($_SESSION['provision']['debug']['boolean'] == 'true'){
echo ":$template_dir/$device_template/$file<br/>"; echo ":$template_dir/$device_template/$file<br/>";
echo "template_dir: $template_dir<br/>"; echo "template_dir: $template_dir<br/>";