From 26169eabb2908da47f34784be884ab297015a037 Mon Sep 17 00:00:00 2001 From: Phantom Date: Thu, 14 Nov 2019 14:49:53 +0300 Subject: [PATCH] Update index.php - Wallpapers Bug Fix. --- tftpboot/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tftpboot/index.php b/tftpboot/index.php index 7d85e54..495d0ce 100644 --- a/tftpboot/index.php +++ b/tftpboot/index.php @@ -102,7 +102,7 @@ if (!empty($req_file)) { if (strpos(strtolower($req_file_name), '.cnf.xml') !== FALSE) { // Request Settings $tmp_file = $config['settings'].'/'.$req_file_name; } - else if (strpos(strtolower($req_file), '/desktops/') !== FALSE) { // Request Wallpapers + else if (strpos(strtolower($req_file), 'desktops/') !== FALSE) { // Request Wallpapers $tmp_file = $config['wallpapers'].'/'. $req_data_ar[$req_data_len-1].'/'. $req_file_name; } else if (strpos_array($ringtones_list, $req_file_name, 'any') !== FALSE) { // Request RingTones @@ -141,14 +141,14 @@ if (!empty($req_file)) { */ if ($print_debug == 'on'){ print_r('
File : '. $orig_req_file_name. ' not found.
');} if (empty($tmp_file)) { - if (!empty($config['log'])) { to_log(array('GET :'.$orig_req_file_name, 'no match found'),'E',$config['log']); } + if (!empty($config['log'])) { to_log(array('GET ('.$req_file.'):'.$orig_req_file_name, 'no match found'),'E',$config['log']); } header("HTTP/1.0 404 Not Found"); die('ERROR: no match found.'); } $req_file_full_path = $tmp_file; } } - if (!empty($config['log'])) { to_log(array('GET :'.$orig_req_file_name, 'Remap :'.$req_file_full_path),'i',$config['log']); } + if (!empty($config['log'])) { to_log(array('GET ('.$req_file.') :'.$orig_req_file_name, 'Remap :'.$req_file_full_path),'i',$config['log']); } if (!empty($req_file_full_path)) { if ($signed) {