Implemented auto-refresh if the page is empty
This commit is contained in:
@@ -65,6 +65,14 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
query("SELECT COUNT(`id`) as `count` FROM `for_stallman`;", function($row) {
|
||||
if($row["count"] <= 0) {
|
||||
echo "<meta http-equiv=\"refresh\" content=\"3\">";
|
||||
}
|
||||
});
|
||||
|
||||
?>
|
||||
<h1>Audience questions</h1>
|
||||
<p>
|
||||
<a href="/index.php">Load new questions</a>
|
||||
|
Reference in New Issue
Block a user