mobmash.click/lib/favicon.php
2024-08-08 22:42:04 +02:00

11 lines
No EOL
317 B
PHP

<?php
function getFaviconUrl($left, $right) {
$name = "/images/eggs/chimera/" .
strtolower(str_replace(" ", "_", $left["name"] . " " . $right["name"] . ".png"));
if (file_exists(__DIR__ . "/../html/" . $name)) {
return $name;
} else {
return "/images/eggs/spawn_egg.png";
}
}