45 lines
1.0 KiB
PHP
45 lines
1.0 KiB
PHP
<?php
|
|
|
|
ini_set('display_errors', 1);
|
|
ini_set('display_startup_errors', 1);
|
|
error_reporting(E_ALL);
|
|
|
|
$rootpage = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : "index.php";
|
|
$orderby = isset($_GET['orderby']) ? $_GET['orderby'] : "lastplayed_desc";
|
|
$details = isset($_GET['details']) ? $_GET['details'] : "";
|
|
|
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="style.css">
|
|
<script type="text/javascript" src="updatethumbnail.js"></script>
|
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
|
|
<script type="text/javascript">
|
|
$( document ).ready(function(){
|
|
update();
|
|
});
|
|
function update() {
|
|
$.get('page.php?rootpage=<?php echo $rootpage ?>&orderby=<?php echo $orderby ?>&details=<?php echo $details ?>', function(data) {
|
|
$("#page").html(data);
|
|
window.setTimeout(update, 10000); // 10 secondes
|
|
});
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div id="message" style="display:none;"></div>
|
|
|
|
<div id="page">
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|
|
</body>
|
|
</html>
|