Commit 6321ad6c authored by David Morley's avatar David Morley

check pingdom url exists and is valid

parent fd67d8c4
......@@ -14,6 +14,14 @@ if (!$_POST['domain']){
echo "no pod domain given";
die;
}
if (!$_POST['pingdomurl']){
echo "no pingdom url for your stats";
die;
}
if (substr_count($_POST['pingdomurl'], '/') != 4){
echo "pingdom url bad, needs to look like http://stats.pingdom.com/xxxxxxxxxxx/xxxxxx";
die;
}
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
if (!$dbh) {
......
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