<?php 
if (basename($_SERVER['PHP_SELF'])==basename(__FILE__)) {
	exit();
}
?>
<footer class="main-footer">
  <div class="float-right d-none d-sm-block">
    <b>Version</b> 3.0.5
  </div>
  <strong>Copyright &copy; 2022-2023 <a href="http://websoft.com.tr">Websoft Bilişim Teknolojileri</a>.</strong> Tüm Hakları Saklıdır.
</footer>

<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
  <!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
 
<!-- jQuery -->
<script src="<?= admin_public_url(); ?>plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="<?= admin_public_url(); ?>plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- DataTables -->
<script src="<?= admin_public_url(); ?>plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<?= admin_public_url(); ?>plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="<?= admin_public_url(); ?>plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="<?= admin_public_url(); ?>plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<!-- page script -->
<script>

$.post('song.php',{ server: '<? echo $server; ?>', port: '<? echo $port; ?>' } ,function(data){ $('#song').html(data); });
intervalart = setInterval(function() {
$.post('song.php',{ server: '<? echo $server; ?>', port: '<? echo $port; ?>' } ,function(data){ $('#song').html(data); });
}, 20000); // 20 saniyede bir çaðýr.

</script>
 
<script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true,
      "autoWidth": false,
    });
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "responsive": true,
    });
  });
</script>
<!-- AdminLTE App -->
<script src="<?= admin_public_url(); ?>dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="<?= admin_public_url(); ?>dist/js/demo.js"></script>
 
<script src="<?= admin_public_url(); ?>plugins/sweet-alert.min.js"></script>
<?php if (isset($success)) { ?>
	<script type="text/javascript">
		swal("Başarılı.", "<?= $success ?>", "success").then(function() {window.location.href = '';});
	</script>
<?php } ?>
<?php if (isset($error)) { ?>
	<script type="text/javascript">
		swal("Hata.", "<?= $error ?>", "error").then(function() {window.location.href = '';});
	</script>
<?php } ?>
</body>
</html>