Commit 808b166a authored by David Morley's avatar David Morley

code errors

parent e6e2a14a
Pipeline #748 passed with stage
in 2 minutes and 58 seconds
......@@ -139,7 +139,7 @@ $navs = [
</div>
</main>
<footer class="ml-3 text-muted">
<small>Data refreshed <?php echo Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated', 'date_created'))->diffForHumans(); ?></small>
<small><a href="/status">Data refreshed <?php echo Carbon::createFromFormat('Y-m-d H:i:s.u', getMeta('pods_updated', 'date_created'))->diffForHumans(); ?></a></small>
</footer>
<input type="hidden" name="input" value="<?php echo $input ?>"/>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
......
......@@ -258,9 +258,10 @@ function getMeta($name, $select = 'value')
*
* @return bool
*/
function is_connected() {
function is_connected()
{
$connected = @fsockopen("www.google.com", 80);
if ($connected){
if ($connected) {
fclose($connected);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment