Files
Web-NibblePoker/commons/DOM/scripts.php
2023-12-20 01:59:26 +01:00

27 lines
819 B
PHP

<?php
// Making sure the file is included and not accessed directly.
if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
header('HTTP/1.1 403 Forbidden');
die();
}
if($enable_gallery) {
echo('<script src="/resources/SplideJs/dist/js/splide.min.js"></script>');
}
if($enable_code_highlight) {
echo('<script src="/resources/HighlightJS/highlight.min.js"></script>');
}
?>
<script src="/resources/NibblePoker/js/nibblepoker.min.js"></script>
<?php
if($enable_gallery) {
echo('<script src="/resources/NibblePoker/js/nibblepoker-splide.js"></script>');
}
if($enable_code_highlight) {
echo('<script src="/resources/NibblePoker/js/nibblepoker-code.min.js"></script>');
}
if($enable_kitty_and_doggo_sounds) {
echo('<script src="/resources/NibblePoker/js/nibblepoker-contributors.min.js"></script>');
}
?>