This commit is contained in:
2020-05-07 10:16:15 +03:00
parent 18b2b70ef9
commit 5059a9ca96
44 changed files with 2121 additions and 1640 deletions

@ -355,10 +355,13 @@
: '';
}
function getExtension($file)
if (! function_exists('getExtension'))
{
$file = pathinfo($file);
return $file['extension'];
function getExtension($file)
{
$file = pathinfo($file);
return $file['extension'];
}
}
$valid_formats = array("jpg", "png", "gif", "bmp", "jpeg");