<?php
if (eregi("YOUR_INCLUDED_PHP_FILE_NAME", $_SERVER['PHP_SELF'])) {
die("<h4>You don't have right permission to access this file directly.</h4>");
}
?>
поместите код выше в верхнюю часть вашего включенного php-файла.
ex:
<?php
if (eregi("some_functions.php", $_SERVER['PHP_SELF'])) {
die("<h4>You don't have right permission to access this file directly.</h4>");
}
// do something
?>
Вы могли бы сделать это, но, вероятно, есть гораздо лучший способ
$($('.placeholderbokehapp').css('height', '1700px'))
Если Bokeh загружается в html-теге iframe
, вы можете написать скрипт после загрузки всех других js-скриптов внизу html-страницы.
<script>
$('#tbc-id iframe').load(function(){
$('#tbc-id').css({height: 1700}) //make container height to 1700px
$(this).css({height: 1700}) //make iframe height match the container
});
</script>