2022-11-28 19:44:02 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
function localIcon($id) {
|
2023-04-26 15:44:39 +02:00
|
|
|
$directory = base_path("assets/favicon/icons");
|
2022-11-28 19:44:02 +01:00
|
|
|
$files = scandir($directory);
|
|
|
|
$pathinfo = "error.error";
|
|
|
|
foreach($files as $file) {
|
|
|
|
if (strpos($file, $id.'.') !== false) {
|
|
|
|
$pathinfo = $id. "." . pathinfo($file, PATHINFO_EXTENSION);
|
|
|
|
}}
|
|
|
|
return $pathinfo;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|