- Change Sccp class driver

This commit is contained in:
Phantom
2019-08-13 10:41:06 +03:00
parent f8a1ed27d0
commit f6c9582b2c

View File

@@ -57,6 +57,9 @@ if ($print_debug == 'on') {
print("</pre>"); print("</pre>");
print_r("<br> Request:<br><pre>"); print_r("<br> Request:<br><pre>");
print_r($request); print_r($request);
// print_r("<br> All Files:<br><pre>");
// print_r($config['firmware']);
// print_r( find_all_files($config['firmware']));
print("</pre>"); print("</pre>");
} }
@@ -86,7 +89,7 @@ if (!empty($req_file)) {
$tmp_file = explode('.', $req_file_name); $tmp_file = explode('.', $req_file_name);
if (strpos_array($req_file_name, $fw_suffix,'any') !== FALSE) { // Firmware file was requested if (strpos_array($req_file_name, $fw_suffix,'any') !== FALSE) { // Firmware file was requested
$firmware_list = find_all_files($config['tftproot'].'/'.$config['firmware']); $firmware_list = find_all_files($config['firmware']);
$pos2 = strpos_array($firmware_list, $req_file_name, 'any'); // case unsensitive $pos2 = strpos_array($firmware_list, $req_file_name, 'any'); // case unsensitive
if ($pos2 !== FALSE) { // Request Firmware if ($pos2 !== FALSE) { // Request Firmware
$req_file_full_path = $firmware_list[$pos2]; $req_file_full_path = $firmware_list[$pos2];