Removed comment bloat

This commit is contained in:
2020-12-29 00:47:40 +01:00
parent 5c17a540ee
commit b026c4d7a7
3 changed files with 3 additions and 36 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class osu_cacher
public function get_cached_path(string $path) : string public function get_cached_path(string $path) : string
{ {
return str_replace($this->root, $this->cache_root, $path); return str_replace($this->root, $this->cache_root, $path) . ".json";
} }
public function is_cached(string $path) : bool public function is_cached(string $path) : bool
+1 -35
View File
@@ -201,38 +201,4 @@ else if ($display == "start")
} }
} }
echo $te->get_html(); echo $te->get_html();
// foreach ($lib->get_library() as $mapset)
// {
// echo '<div class="beatmapset">';
// echo '<h2>Beatmapset: ';
// if (!empty($mapset["id"])) echo $mapset["id"];
// else echo '???';
// echo '</h2>';
// foreach ($mapset["difficulties"] as $beatmap)
// {
// $beatmap["format-2"] = mb_substr($beatmap["format"] ?? "v1", 1);
// if (is_numeric(mb_substr($beatmap["format"] ?? "v1", 1)))
// {
// echo '<div class="beatmap">';
// echo '<h3>Title: ' . $beatmap["title"];
// if (!empty($beatmap["id"])) echo '<br />ID: ' . $beatmap["id"];
// echo '<br />Artist: ' . $beatmap["artist"];
// echo '<br />Mapper: ' . $beatmap["mapper"];
// echo '<br />Format: ' . $beatmap["format"];
// echo '</h3>';
// echo '<img class="small-background" src="./proxy.php?path=' . urlencode($mapset["path"] . "/" . $beatmap["background"]) . '" />';
// echo '</div>';
// }
// else
// {
// echo '<div class="beatmap">';
// echo '<h3>Extra: ' . $beatmap["format"];
// echo '</h3>';
// echo '</div>';
// }
// }
// echo '</div>';
// }
+1
View File
@@ -113,6 +113,7 @@ details.mapset summary::-webkit-details-marker {
} }
.warn h2 { .warn h2 {
margin: 0; margin: 0;
margin-bottom: 20px;
text-align: center; text-align: center;
} }
.warn { .warn {