mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-19 22:47:59 +00:00
changed detection of local files
This commit is contained in:
@@ -42,7 +42,7 @@ echo "[i] Loading local files ..";
|
|||||||
while (false !== ($filename = readdir($dh))) {
|
while (false !== ($filename = readdir($dh))) {
|
||||||
$img = $dir.$filename.DS.$filename;
|
$img = $dir.$filename.DS.$filename;
|
||||||
if(!file_exists($img)) continue;
|
if(!file_exists($img)) continue;
|
||||||
$type = $pm->getTypeOfFile($img);
|
$type = pathinfo($img, PATHINFO_EXTENSION);
|
||||||
$type = $pm->isTypeAllowed($type);
|
$type = $pm->isTypeAllowed($type);
|
||||||
if($type)
|
if($type)
|
||||||
$localfiles[] = $filename;
|
$localfiles[] = $filename;
|
||||||
|
|||||||
Reference in New Issue
Block a user