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

check pingdom url exists and is valid

parent fd67d8c4
......@@ -14,6 +14,14 @@ if (!$_POST['domain']){
echo "no pod domain given";
if (!$_POST['pingdomurl']){
echo "no pingdom url for your stats";
if (substr_count($_POST['pingdomurl'], '/') != 4){
echo "pingdom url bad, needs to look like";
$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