Implemented auto-refresh if the page is empty
This commit is contained in:
@@ -65,6 +65,14 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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>
|
<h1>Audience questions</h1>
|
||||||
<p>
|
<p>
|
||||||
<a href="/index.php">Load new questions</a>
|
<a href="/index.php">Load new questions</a>
|
||||||
|
@@ -62,6 +62,13 @@
|
|||||||
padding-left: 4px;
|
padding-left: 4px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<?php
|
||||||
|
query("SELECT COUNT(`id`) as `count` FROM `for_moderation`;", function($row) {
|
||||||
|
if($row["count"] <= 0) {
|
||||||
|
echo "<meta http-equiv=\"refresh\" content=\"3\">";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Moderace otázek pro pana Stallmana</h1>
|
<h1>Moderace otázek pro pana Stallmana</h1>
|
||||||
|
Reference in New Issue
Block a user