Commit e0491bdb authored by David Morley's avatar David Morley

move external stats out of db and rename file

parent ffa4e65d
......@@ -86,7 +86,7 @@ $numrows = pg_num_rows($result);
if (strpos($row['pingdomurl'], 'pingdom.com')) {
$moreurl = $row['pingdomurl'];
} else {
$moreurl = '/db/showuptimerobot.php?domain=' . $row['domain'];
$moreurl = '/showstats.php?domain=' . $row['domain'];
}
echo '<td><div title="Last Check ' . $row['dateupdated'] . '" data-toggle="tooltip" data-placement="bottom"><a rel="facebox" href="' . $moreurl . '">' . $row['monthsmonitored'] . '</a></div></td>';
......
<?php
$debug = 1;
//* Copyright (c) 2011-2016, David Morley. This file is licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file. */
require_once __DIR__ . '/../config.php';
require_once __DIR__ . '/config.php';
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
$dbh || die('Error in connection: ' . pg_last_error());
......
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