mobmash.click/lib/favicon.php

11 lines
317 B
PHP
Raw Normal View History

2024-08-08 20:31:52 +00:00
<?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";
}
}