function printBodyTag() { if (isEmbedded()) { echo '<body>'; } else { echo '<body style="padding-top: 50px;">'; } }
<!DOCTYPE html> <html> <?php require_once 'components/head.html'; printBodyTag(); showNavigation(); ?> <div id="no-gpx" class="panel-body" hidden="hidden"> <div class='panel panel-info'> <div class='panel-heading'>No geocaches with location data found</div> <div class='panel-body'>None of the geocaches you have found contain location data. Upload your finds <a href="upload.php">here</a>.</div> </div> </div> <div id="map" hidden="hidden"></div> <?php if (isEmbedded()) { ?> <script type="text/javascript"> $('#map').height($(window).height()); addStationsFromDb(<?php echo "'" . getSessionUser() . "'"; ?> ); </script> <?php } else { ?> <script type="text/javascript"> $('#map').height($(window).height() - 50); addStationsFromDb(<?php echo "'" . getSessionUser() . "'";
<?php require_once 'general.php'; require_once 'connection.php'; require_once 'logger.php'; ?> <!DOCTYPE html> <html> <?php require_once 'components/head.html'; printBodyTag(); showNavigation(); ?> <div class="panel-body"> <?php if (!isEmbedded()) { ?> <div class='panel panel-info'> <div class='panel-heading'>Search logs of a user</div> <div class='panel-body'> <form class="form-inline"> <div class="form-group"> <input class="form-control" name="username" placeholder="Username"> </div> </form> </div> </div> <?php } if (isset($_GET['username']) && $_GET['username'] != '' || getSessionUser() != "") { if (isset($_GET['username']) && $_GET['username'] != '') {