LibreY/misc/footer.php
2025-02-21 21:50:36 +05:30

19 lines
713 B
PHP

<div class="footer-container">
<a href="./">FbIN</a>
<a href="https://git.flossboxin.org.in/FbIN/LibreY/" target="_blank"><?php printtext("source_code_link");?></a>
<a href="./settings.php"><?php printtext("settings_link");?></a>
<?php if(!$opts->disable_api) {
echo '<a href="./api.php" target="_blank">', printtext("api_link"), '</a>';
} ?>
</div>
<div class="git-container">
<?php
if (file_exists(".git/refs/heads/main")) {
$hash = file_get_contents(".git/refs/heads/main");
}
echo "<a href='https://git.flossboxin.org.in/FbIN/LibreY/commit/$hash' target='_blank'>" . printftext("latest_commit", $hash) . "</a>";
?>
</div>
</body>
</html>